UPS-nut
A small shell script that exports nut ups status.
SNMP Extend
-
Copy the shell script, unbound, to the desired host
wget https://github.com/librenms/librenms-agent/raw/master/snmp/ups-nut.sh -O /etc/snmp/ups-nut.sh -
Make the script executable.
chmod +x /etc/snmp/ups-nut.sh -
Edit your
snmpd.conffile, usually/etc/snmp/snmpd.conf, and add:extend ups-nut /etc/snmp/ups-nut.sh -
Restart snmpd on your host.
LibreNMS discovers the application automatically, as described at the top of the page. If the discovery fails, do the steps under the SNMP Extend heading at the top of the page.
Optionally if you have multiple UPS or your UPS is not named APCUPS you can specify its name as an argument into /etc/snmp/ups-nut.sh
```bash
extend ups-nut /etc/snmp/ups-nut.sh ups1
extend ups-nut /etc/snmp/ups-nut.sh ups2
```