[Nagiosplug-devel] Problem with LINE thresholds always returning OK

John Lewis lewilists at gmail.com
Fri Apr 1 21:07:13 CEST 2011


I am new to nagios so if I am making a huge mistake in the way this plugin works please forgive me. I tried asking the users group a while back and I received no feedback and I was unable to find anything related by googling around for a while.

I am trying to put together a check to send out alerts if utility power from my local apc ups on the nagios server drops below a specific threshold. My system is ubuntu 10.10 fully patched, with network ups utilities, and an apc backUPS-XS 1500 attached via usb. Nut appears to be configured correctly and throws warnings when line power is removed from the UPS.

Here is some output from a few specific check_ups being manually run from command line.

./check_ups -H localhost -u apc -v LINE -w 200 -c 400
UPS OK - Status=Online, Charging Utility=115.0V Batt=83.0% Load=12.0% |voltage=115000mV;200000;400000;0 battery=83%;;;0;100 load=12%;;;0;100

Specified warning threshold is 200 volts, and critical is set at 400, both are not being met and should be throwing a critical status based on how I believe the plugin works based on my interpretation of the information available in check_ups -h

Here are a few more checks to use as control to establish functionality of NUT and the check_ups plugin.


./check_ups -H localhost -u apc -v LINE -w 50 -c 100
UPS OK - Status=Online, Charging Utility=114.0V Batt=82.0% Load=12.0% |voltage=114000mV;50000;100000;0 battery=82%;;;0;100 load=12%;;;0;100

./check_ups -H localhost -u apc -v BATTPCT -w 80 -c 50
UPS OK - Status=Online, Charging Utility=114.0V Batt=81.0% Load=12.0% |voltage=114000mV;;;0 battery=81%;80000;50000;0;100 load=12%;;;0;100

./check_ups -H localhost -u apc -v BATTPCT -w 95 -c 90
UPS CRITICAL - Status=Online, Charging Utility=114.0V Batt=81.0% Load=13.0% |voltage=114000mV;;;0 battery=81%;95000;90000;0;100 load=13%;;;0;100

./check_ups -H localhost -u apc -v LOADPCT -w 95 -c 90
UPS OK - Status=Online, Charging Utility=114.0V Batt=80.0% Load=12.0% |voltage=114000mV;;;0 battery=80%;;;0;100 load=12%;95000;90000;0;100

./check_ups -H localhost -u apc -v LOADPCT -w 5 -c 10
UPS CRITICAL - Status=Online, Charging Utility=114.0V Batt=80.0% Load=12.0% |voltage=114000mV;;;0 battery=80%;;;0;100 load=12%;5000;10000;0;100

I hope this provides enough information to isolate a problem.
Thanks

Lewis



More information about the Devel mailing list