Closed klabacita closed 3 years ago
Hi. Try execute:
/bin/php /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php
Hi firemdkfighter.
Thanks for your answer.
The first time I run this command I got a error, but forget to copy here.
Latter I move to the directory where crontab_all_software.php exist and repeat the command.
root@bos-ocsserver:/usr/share/ocsinventory-reports/ocsreports/crontab# /bin/php ./cron_all_software.php Please wait, software processing is in progress. It could take a few minutes ...
Now I can see the software, Do I have to manually run this command every N time?
Thanks again!!!
I'm find this solution into https://github.com/OCSInventory-NG/OCSInventory-Server/issues/343, and i'm add run script to crontab
Here is the error if we run the command:
/bin/php /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php PHP Warning: require_once(../var.php): failed to open stream: No such file or directory in /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php on line 3 PHP Fatal error: require_once(): Failed opening required '../var.php' (include_path='.:/usr/share/php') in /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php on line 3
The path is right.
I have to move to the directory ../crontab and run the command and will work.
Just to update this issue, thanks!!!
I'm find this solution into #343, and i'm add run script to crontab
Got it, I will follow the instructions, thanks again budy!!!
Hi,
I close this issue.
Regards, Charlene
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
General informations
Operating system : Linux Ubuntu 20.04.2 LTS
Server informations
Perl version : 5.30 Mysql / Mariadb / Percona version : MariaDB 10.3.30
OCS Inventory informations
Ocs server version : 2.9.1
Problem's description
If I try to display from the menu Inventory -> All Software I get nothing. If I chose any client I can see the software of each one. Don't know if this has a relation with the Dashboard which show 0 in the field software. Something I need to setup first?
Regards!!!