PluginsOCSInventory-NG / greenit

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

The plugin doesn't work #4

Open beegospl opened 1 year ago

beegospl commented 1 year ago

The plugin looks installed properly but none of the options below are available in the console:

"These statistics are presented in a dashboard format, which can be accessed by navigating to Inventory > GreenIT manager. Configuration options for this dashboard can be found under Manage > GreenIT."

I am also not sure if the agent/service works fine. My configuration is: {"COLLECT_INFO_PERIOD":"1","UPLOAD_PERIOD":"5","SAVE_INFO_PERIOD":"1"} but all I have collected during two days is: "2023-07-18": {"CONSUMPTION":"0","UPTIME":"3"}, "2023-07-19": {"CONSUMPTION":"0","UPTIME":"304"} The Power Consumption table under Miscellaneous for the computer is empty.

ThomboSupergott commented 1 year ago

Ho @beegospl,

maybe the cron-jobs are not running?

Please refer to my reported issue: https://github.com/PluginsOCSInventory-NG/greenit/issues/5

beegospl commented 1 year ago

Maybe, but the windows service also doesnt work properly. Moreover the agent use "openhardwaremonitor" which is abandoned and have not been updated since 2020, it means that many of new processors/chipsets/motherboards are not supported. The idea of the plugin is great but the plugin itself is rather useless.

ThomboSupergott commented 1 year ago

Indeed. It seems "my" agent are also not collecting any data

`C:\Windows\System32>"C:\Program Files (x86)\GreenIT Service\GreenIT.exe"

Configuration Result:

[Success] Name GreenITService [Success] DisplayName GreenIT Service [Success] Description Return power consumption of the machine [Success] ServiceName GreenITService Topshelf v4.3.0.0, .NET 6.0.20 (6.0.20) [INFO] 04.08.2023 12:53:49: Starting engines... [INFO] 04.08.2023 12:53:49: Service engine started [INFO] 04.08.2023 12:53:49: Save engine started [INFO] 04.08.2023 12:53:49: OpenHardwareMonitor engine started [INFO] 04.08.2023 12:53:50: All engines started The GreenITService service is now running, press Control+C to exit. [INFO] 04.08.2023 12:53:51: Working on OpenHardwareMonitor engine`

ThomboSupergott commented 1 year ago

Instead of using the outdated "OpenHardweareMonitorLib", maybe a switch to the forked and active maintend "LibreHardwareMonitorLib" https://github.com/LibreHardwareMonitor will cover new hardware? @Atineon @Lea9250

Atineon commented 10 months ago

Hi @beegospl and @ThomboSupergott,

Concerning your problem @beegospl, the current release you are using is a pre-production version. Of course the current library we use to get data doesn't support every hardware types. Virtual machines are not allowed to get consumption data by the way. Also, we are working on a new version which will fix the plugin : https://github.com/PluginsOCSInventory-NG/greenit/tree/update_version_2.0

Regarding your issue @ThomboSupergott, we created a task in Backlog to change the current libary and support more hardware types. It should be changed in the future.

Thanks for giving us your feedbacks.

Best regards, Antoine ROBIN