Hi, I have OCS Inventory. When I run the The ocsinventory-agent command manually, it populates everything correctly. But when it runs via cron certain items dissappear such as CPU MHZ and so on.
Is there a correct way to run ocsinventory-agent in cron? Below is my cron settings.
*/30 * * * * /usr/sbin/ocsinventory-agent --force /dev/null 2>&1
I am using "Ocsinventory unified agent for UNIX, Linux and MacOSX (2.3.1)"
I am using "OCSNG_UNIX_SERVER_2.5"
OS: Red Hat Linux 7.5
The errors I am seeing in httpd error logs are:
[Fri Nov 02 11:05:33.207543 2018] [:error] [pid 3298] [client 172.16.100.252:45795] PHP Warning: vsprintf(): Too few arguments in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 74, referer: http://**********/ocsreports/?function=visu_computers
[Fri Nov 02 11:05:33.207615 2018] [:error] [pid 3298] [client 172.16.100.252:45795] PHP Warning: mysqli_query(): Empty query in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 103, referer: http://**********/ocsreports/?function=visu_computers