UPS

check_ups

Description:

check_ups script that uses UPS-MIB (Tripplite) (ePN complient)

Current Version

Last Release Date

June 11, 2009

Compatible With


Project Files
Project Notes
Requires Net::SNMP. Returns CRITICAL on most conditions. Returns OK on normal output and batter status. Returns WARNING on booster and reducer output conditions. Returns WARNING on low or depleted battery condition. Check UPS status via SNMP. Usage: check_ups.pl -H -C check_ups.pl --help check_ups.pl --version -H (--hostname) Hostname to query - (required) -C (--community) SNMP read community or v3 auth (defaults to public) (v3 specified as username:authpassword:... ) username = SNMPv3 security name authpassword = SNMPv3 authentication pass phrase (or hexidecimal key) authprotocol = SNMPv3 authentication protocol (md5 (default) or sha) privpassword = SNMPv3 privacy pass phrase (or hexidecmal key) privprotocol = SNMPv3 privacy protocol (des (default) or aes) -v (--snmp_version) 1 for SNMP v1 2 for SNMP v2c (default) 3 for SNMP v3 -V (--version) Plugin version -h (--help) usage help Primary MIB reference - UPS-MIB
Reviews (3) Add a Review
Works fine after minor tweaks
by JimW, June 30, 2013

As with the first review, I had to filter the script through dos2unix and change the library location as I had stuck utils.pm in /usr/local/nagios/libexec. Other than that, it just works. I haven't had a UPS in a state other than OK so far so I can't say for certain it works in all cases, but I'm just happy I didn't have to write my own check script for a handful of TrippLite UPS's.



Works great, with minor tweaks
by ryan_breneman, October 31, 2012

Worked great, with a few minor tweaks. I had to run dos2unix on the file in order for it to be read correctly. Once I did that I was able to get correct status information when running from the command line, however Nagios when running as a service would display null. I had to edit the plugin file and change the "use lib" line to be "/usr/local/nagios/libexec". Once I did those two changes the plugin worked fine. Thanks for your contribution!



Won't work. :-(
by dagibbs, June 30, 2012

I can't get this to work on a relatively new HP UPS. Even when I modify the OID's in the script to reflect the ones HP use, I get the following error UNKNOWN - SNMP error: Received noSuchName(2) error-status at error-index 1 Bit of a bummer, because this would give me exactly what my boss wants out of this damn HP UPS!



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (4)
Favorites
1
Views
112,319