mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add pwrstatd application (#14365)
* Add pwrstatd application * Adding pwrstatd test json and correcting pwrstatd snmprec file. Pwrstatd tests pass.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user