Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1


Remember Me

Directory Tree


4 votes
check_ups_alarm.plNagios plugin
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks various properties of a Liebert NPower UPS
Checks the following properties of an NPower UPS:
Battery Status - The current status of the battery
Battery Minutes Remaining - How long it can run on batteries
Battery Runtime (Seconds) - How long the UPS has been running on batteries
Battery Temperature - The temperature of the battery
Input Line Bads - The number of times the utility power has gone away
Output Load Percent - The load on the UPS
Alarm Count - Current number of alarms present
Reviews (3)
bychriscamm, January 2, 2014
1 of 1 people found this review helpful
Great plugin

If you get the following error:

Insecure dependency in printf while running with -T switch at ./ line 266.

Edit the script and on Line 1 change
#!/usr/bin/perl -wT



Then above

use scrict;

Add the following line

use warnings;
use scrict;

This corrects the error and I can now run all of the checks.


I use it with Opsview Core (latest release as of this writing). I ended up removing taint checking as I was getting the script bailing with a failed check on line 268.

If you're getting "255 out of bounds" as a result check the following:

* Your Nagios console IP address has been added to the SNMP v1 access list of the UPS unit; you can add it as a FQDN but that means DNS has to be configured on each UPS.
* The SNMP community name is right. I created a new attribute in Opsview for this.
* When you've changed the unit settings, go through the restart process on the UPS. My results were inconsistent until I did.

Two of the checks I wasn't able to get working:

batteryTemperature - not supported on our units. Oops.

outputLoadPercent - the OID appears to be incorrect. I'm still tracking it down.

Overall, good work!
Has anyone been able to get this to work through the app. I'm able to get this to work fine through the command line, but when running through nagios i get Return Code 255 Out of Bounds. When i run with echo $ at the end on command line i get the same output as if i don't put it there.

Any help would be greatly appreciated