13. 02. 2012 Patrick Zambelli Nagios-Plugins

UPS Monitoring: Include of the APC MIBs

An update of the previous script for monitoring the UPS health status includes now also the APC MIB base. ( Blog article )

The monitoring features for APC include now the monitoring of the Battery capacity %, Temperature and voltage. A comparison against the settable limits in terms of input lines ( availability ) and the load on the output lines ( load in % ).

The call configuration

/usr/lib/nagios/plugins/check_snmp_ups.pl -H 192.168.0.1 -C public -T apcups -f -O 70,80 -A 210

(nagios) OK – All seems fine Batt. Level: 97 % Batt.: 215 V Load1: 15 % Load2: 6 % Load3: 31 % Input1 233 V Input2 232 V Input3 236 V| capacity=97;80;50;0;100 batt_temp=33;45;55;0;100 batt_volt=215;0;210;; load1=15;70;80;0;100 load2=6;70;80;0;100 load3=31;70;80;0;100 in_voltage1=233;210;0;0;380 in_voltage2=232;210;0;0;380 in_voltage3=236;210;0;0;380

Command returned exit status 0

The used arguments are: -f ( enable perfdata ), -O to set the warning and critical limit of the load on the output lines, -A the lower limit of the acceptable Voltage ( this value is used for Battery voltage and input lines ).

The warning/critical values for battery temp are by default 45 and 55, its capacity 80% and 50%

Monitoring results

The performance graphs obtained from the command call for battery capacity, temperature and voltage:

The input load ( 3 lines ):

The output line load ( capacity usage % ):

Download

check_snmp_ups.tar.gz

 

Patrick Zambelli

Patrick Zambelli

Product Manager at Würth Phoenix
After my graduation in Applied Computer Science at the Free University of Bolzano I decided to start my professional career outside the province. With a bit of good timing and good luck I went into the booming IT-Dept. of Geox in the shoe district of Montebelluna, where I realized how a big IT infrastructure has to grow and adapt to quickly changing requirements. During this experience I had also the nice possibility to travel the world, while setting up the various production and retail areas of this company. Arrived at Würth Phoenix I started developing on our monitoring solution NetEye. Today, in my position as Product Manager, I aim to continuously improve our solutions and to adapt them to actual market requirements.

Author

Patrick Zambelli

After my graduation in Applied Computer Science at the Free University of Bolzano I decided to start my professional career outside the province. With a bit of good timing and good luck I went into the booming IT-Dept. of Geox in the shoe district of Montebelluna, where I realized how a big IT infrastructure has to grow and adapt to quickly changing requirements. During this experience I had also the nice possibility to travel the world, while setting up the various production and retail areas of this company. Arrived at Würth Phoenix I started developing on our monitoring solution NetEye. Today, in my position as Product Manager, I aim to continuously improve our solutions and to adapt them to actual market requirements.

One Reply to “UPS Monitoring: Include of the APC MIBs”

  1. Alberto says:

    Could you please post the nagiosgraph definitions to obtain this graphs?

    Thank in advance.

    Best regards.

Leave a Reply

Your email address will not be published. Required fields are marked *

Archive