Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.5 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Unix Agent on RHEL - items mysteriously disappear

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] 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] PHP Warning:  mysqli_query(): Empty query in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 103, referer: http://

asked in OCS Inventory NG agent for Unix by (180 points)

Please log in or register to answer this question.

Powered by Question2Answer