Only returns "ups_state" #5

Open
opened 2023-01-09 17:58:04 -05:00 by rthinkel · 2 comments
rthinkel commented 2023-01-09 17:58:04 -05:00 (Migrated from github.com)

Hey there, thanks for making an exporter for pwrstat. My only issue is that I seem to only get the value for "ups_state" and nothing else.

Hey there, thanks for making an exporter for pwrstat. My only issue is that I seem to only get the value for "ups_state" and nothing else.
arcenik commented 2024-07-11 11:23:57 -04:00 (Migrated from github.com)

Same for me.

Looks like the pwrstatd daemon fails to communicate with the UPS.

# cat /var/log/pwrstatd.log 
2024/07/11 15:19:30 PM  Daemon startups.
2024/07/11 15:19:44 PM  The H2C device can't be used, because the linux system does not support libusb or libusb version is too old.
2024/07/11 15:20:48 PM  Communication is established.
2024/07/11 15:20:51 PM  Utility failed.
2024/07/11 15:20:51 PM  Begin to shutdown PC immediately!
2024/07/11 15:20:57 PM  Communication is lost.
Same for me. Looks like the pwrstatd daemon fails to communicate with the UPS. ```sh # cat /var/log/pwrstatd.log 2024/07/11 15:19:30 PM Daemon startups. 2024/07/11 15:19:44 PM The H2C device can't be used, because the linux system does not support libusb or libusb version is too old. 2024/07/11 15:20:48 PM Communication is established. 2024/07/11 15:20:51 PM Utility failed. 2024/07/11 15:20:51 PM Begin to shutdown PC immediately! 2024/07/11 15:20:57 PM Communication is lost. ```
krispayne commented 2024-07-13 15:05:30 -04:00 (Migrated from github.com)

@arcenik that sounds like a connection issue, not an issue with the exporter. Make sure that the exporter can see the device and that the device is reliably connected.

I just set this up (docker-compose method) and it is working flawlessly!

@arcenik that sounds like a connection issue, not an issue with the exporter. Make sure that the exporter can see the device and that the device is reliably connected. I just set this up (docker-compose method) and it is working flawlessly!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
maxpeterkaya/pwrstat-exporter#5
No description provided.