Monitoring PowerWare 9120 UPSes with NUT
Alexander Mamchenkov
Finally I have managed to set up a monitoring of two PowerWare 9120 USPes with NUT (Network UPS Tools). The point is that the standard software which comes with this UPS sucks in all ways and I needed something to take data from UPSes and then pass it to Nagios. So here is how we go about it:
1. Install nut and (if you are going to read data about UPS from same machine, nut-client)
yum install nut nut-client
2. Connect UPS(es) with serial cables (I assume there is not optional networking module installed on UPSes)
3. Add your UPSes to /etc/ups/ups.conf file as follows:
[ups1]
driver = upscode2
port = /dev/ttyS0
baudrate = 9600
manufacturer = PowerWare
desc = "UPS 1"
4. Modify /etc/sysconfig/ups to contain these two lines
SERVER=yes
MODEL=upsdrvctl
5. If you don’t want upsmon to act in any ways corresponding to your UPS(es) state, disable it by putting the next line in /etc/ups/upsmon.conf (otherwise edit it as described in it)
MINSUPPLIES 0
6. Enable upsd to start automatically
chkconfig --level 2345 ups on
7. Start the service
service ups on
8. Check it up
upsc ups1@localhost
That’s it. Now you can get the data anytime with upsc command as in step 8.
Posted in Technology, Linux, OS, Hardware |
No Comments »