SNMTP Monitoring: UPS Support
It would be very nice to have a native SNMP support for UPS. In my datacenter I have an APC with a network card, and I shutdown some network devices without usb cables, but through network.
Bob Alfson commented
I thought I would refer folks to Marcus' post on the User BB, but he's already copied it here. Thanks, Marcus!
Cheers - Bob
Marcus Schenk commented
This is even possible using their already exisiting NUT (Network UPS Tools) package. I have tried adding the snmp-ups driver and have it query several APCs with "Network Management Card" and "Network Management Card 2" - It runs OK in the background, but no front end and no battery level is visible in UTM GUI. Please add support for snmp-ups and make it gui configurable.
For 9.103-5 which I assume is a SLES 11 SP3 or OpenSuse 10.2 you need to get the following modules:
rpm -i these and edit /etc/ups/ups.conf
comment out section [ups] and create a new entry like this one:
driver = snmp-ups
port = 192.168.101.71
community = public
snmp_version = v1
mibs = apcc
pollfreq = 15
desc = "UPS"
You can test the connection by invoking:
/usr/lib/ups/driver/snmp-ups -a ups
Make sure you make a Firewall Exception to allow outbound SNMP Traffic
If it works invoke /usr/lib/ups/driver/upsdrvctl start
and run upsd and upsmon
Next you can check your UPS via upsc ups@localhost
Also good to check you system log: tail -f /var/log/system.log