check_ups -v LINE

John Lewis lewilists at gmail.com
Wed Mar 16 22:58:28 CET 2011


I am trying to setup some alerts for a UPS attached to the external nagios box in my office to send alerts about power state in the office building.  Nut seems to be setup and working, I have created some service checks for check_ups and a command definition. I noticed I wasn't able to generate alerts based on LINE which I believe is utility voltage.

Here is a manual check I am kicking off from the command line that should be generating a UPS CRITICAL. 

boxy:/usr/local/nagios/libexec$ ./check_ups -u apc -v LINE -w 200 -c 150
UPS OK - Status=Online, Charging Utility=116.0V Batt=91.0% Load=22.0% |voltage=116000mV;200000;150000;0 battery=91%;;;0;100 load=22%;;;0;100
boxy:/usr/local/nagios/libexec$ 

The UPS is named apc, attached via USB.

Here are a few working examples just to validate that my check is indeed working with my nut config.

boxy:/usr/local/nagios/libexec$ ./check_ups -u apc -v BATTPCT -w 97 -c 95
UPS CRITICAL - Status=Online, Charging Utility=116.0V Batt=91.0% Load=22.0% |voltage=116000mV;;;0 battery=91%;97000;95000;0;100 load=22%;;;0;100

boxy:/usr/local/nagios/libexec$ ./check_ups -u apc -v BATTPCT -w 85 -c 80
UPS OK - Status=Online, Charging Utility=116.0V Batt=92.0% Load=22.0% |voltage=116000mV;;;0 battery=92%;85000;80000;0;100 load=22%;;;0;100

Am I doing something wrong?

Thanks
Lewis
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list