Add pwrstatd application (#14365)

* Add pwrstatd application

* Adding pwrstatd test json and correcting pwrstatd snmprec file.  Pwrstatd tests pass.
This commit is contained in:
bnerickson
2022-10-12 02:01:09 -07:00
committed by GitHub
parent 3cdbf35a86
commit 4efbb83d9b
11 changed files with 357 additions and 0 deletions

View File

@@ -1778,6 +1778,38 @@ systemctl reload snmpd
7. You're now ready to enable the application in LibreNMS.
## 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
1. 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
```
2. Make the script executable
```
chmod +x /etc/snmp/pwrstatd.py
```
3. Edit your snmpd.conf file and add:
```
extend pwrstatd /etc/snmp/pwrstatd.py
```
4. (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"
}
```
5. Restart snmpd.
## Proxmox
1. For Proxmox 4.4+ install the libpve-apiclient-perl package