UPS-apcups
A small shell script that exports apcacess ups status.
SNMP Extend
-
Copy the shell script, unbound, to the desired host
wget https://github.com/librenms/librenms-agent/raw/master/snmp/ups-apcups -O /etc/snmp/ups-apcups -
Make the script executable.
chmod +x /etc/snmp/ups-apcups -
Edit your
snmpd.conffile, usually/etc/snmp/snmpd.conf, and add:extend ups-apcups /etc/snmp/ups-apcupsIf
apcaccessis not in the PATH variable of snmpd, use a line like the one below.extend ups-apcups/usr/bin/env PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin /etc/snmp/ups-apcups -
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.