Pwrstatd
Pwrstatd
Pwrstatd (commonly known as powerpanel) is an application/service available from CyberPower to monitor their PSUs over USB. It is currently capable of reading the status of only one PSU connected via USB at a time. The powerpanel software is available here: https://www.cyberpowersystems.com/products/software/power-panel-personal/
SNMP Extend
-
Copy the python script, pwrstatd.py, to the desired host
wget https://github.com/librenms/librenms-agent/raw/master/snmp/pwrstatd.py -O /etc/snmp/pwrstatd.py
-
Make the script executable
chmod +x /etc/snmp/pwrstatd.py
-
Edit your snmpd.conf file and add:
extend pwrstatd /etc/snmp/pwrstatd.py
-
(Optional) Create a
/etc/snmp/pwrstatd.json
file and specify the path to the pwrstat executable [the default path is/sbin/pwrstat
]:{ "pwrstat_cmd": "/sbin/pwrstat" }
-
Restart snmpd.
sudo systemctl restart snmpd