APC UPS Monitoring Setup.

jmoseley at corp.xanadoo.com jmoseley at corp.xanadoo.com
Mon Apr 13 04:26:49 CEST 2009


Remember to CC the nagios users' list...  From looking at the script, it
doesn't look like there are any options for setting critical/warning
thresholds for temperature, load, etc.  It appears they are all predefined.

In that case, the command configuration would look something like:

define command {
  command_name check_apcups
  command_line $USER1$/check_snmp_apcups -H $HOSTADDRESS$ -C $ARG1$
}

The service check configuration would look like:

define service{         use
generic-service         host_name                      apc-smart-ups 
service_description     APC_STATUS         check_command
check_apcups!public
        }

Obviously, you would replace 'public' above with whatever SNMP community
string you have setup...

The host group and host defintions you supplied earlier should be fine.
Remember, this script is fairly elementary in that it appears it
predetermines all the critical/warning levels for things like temp, battery
capacity, input/output voltage, etc.  So, there's nothing else you need to
do.  It will either return an 'OK' value or generate a critical or warning
alert with the simple configuration above.  Obviously, you could edit the
script to change any of the thresholds by hardcoding them into the script,
or you could modify it to accept warning/critical threshold limits as
variables.



James Moseley




                                                                           
             "David A."                                                    
             <ti1ion2005 at gmail                                             
             .com>                                                      To 
                                       jmoseley at corp.xanadoo.com           
             04/12/2009 07:19                                           cc 
             PM                                                            
                                                                   Subject 
                                       Re: [Nagios-users] APC UPS          
                                       Monitoring Setup.                   
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Thanks again.

The command I issue in the libexec folder is:

./check_snmp_apcups -H xxx.xxx.xxx.xxx -C public (I changed that to
something different)

The reply from the system is:

Status is OK - Symmetra xxxx - BATTERY:(capacity 100%, temperature 38 C,
runtime 40 minutes, 00.00) INPUT:(voltage 120 V, frequency 59 Hz)
OUTPUT:(voltage 119 V, frequency 59 Hz, load 18%) SELF TEST:(Passed on
04/02/2009) LAST EVENT:(UPS self test)

What I am trying to do is display this information in the web interface
under its own device type.


Thank you for any help you can provide.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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