PluginsOCSInventory-NG / greenit

GreenIT - power consumption information
GNU General Public License v2.0
0 stars 0 forks source link

cron_stats.php not found #5

Open ThomboSupergott opened 1 year ago

ThomboSupergott commented 1 year ago

Hello,

the documentation says that there are 2 cron-jobs needs to be added. The pathes are: /usr/share/ocsinventory-reports/ocsreports/extensions/greenit/script/cron_stats.php

But these files does not exist. I found the "cron_stats.php" in the folder: /usr/share/ocsinventory-reports/ocsreports/extensions/greenit/crontab/cron_stats.php

To i think the documentation (or the folders in the zip) needs to be changed?

BTW: I love the idea behind this plugin :-)

EA-Anthony-IT commented 12 months ago

Bonjour,

En effet, le chemin des tâches cron indiqué dans la documentation n'est pas le bon. En lien avec cela, pour ma part, les tâches cron :

0 5 * * 1 php /usr/share/ocsinventory-reports/ocsreports/extensions/greenit/crontab/cron_stats.php --mode full 0 * * * * php /usr/share/ocsinventory-reports/ocsreports/extensions/greenit/crontab/cron_stats.php --mode delta

Me retournent toutes les deux "No data".

Je suis perdue, j'ai revu en boucle la documentation pour voir si je n'ai pas fait d'erreur, mais il semble que non.

Atineon commented 10 months ago

Hi @ThomboSupergott and @EA-Anthony-IT,

Referring to your problem @EA-Anthony-IT, we are currently working on a new version of the plugin which will refactor the crontab : https://github.com/PluginsOCSInventory-NG/greenit/tree/update_version_2.0

We also made a full documentation of the new version : https://github.com/OCSInventory-NG/Wiki/blob/add_greenit/english/15.GreenIT/index.md

Thanks for giving us your feedbacks.

Best regards, Antoine ROBIN