APC UPS Monitoring Setup.

jmoseley at corp.xanadoo.com jmoseley at corp.xanadoo.com
Mon Apr 13 01:37:46 CEST 2009


The instructions you are referring to use check_snmp and have nothing to do
with the plugin you are trying to use.  I'm not familiar with that plugin,
but you should be able to get all the status you want with a single service
entry.  If you'll give me an example of the command line call, I'll give
you an example service and command definition.


James Moseley




                                                                           
             "David A."                                                    
             <ti1ion2005 at gmail                                             
             .com>                                                      To 
                                       nagios-users at lists.sourceforge.net  
             04/12/2009 01:52                                           cc 
             PM                                                            
                                                                   Subject 
                                       [Nagios-users] APC UPS Monitoring   
                                       Setup.                              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hello,

I have been searching for help in setting up SNMP monitoring of an APC
UPS.  I found a plug-in called check_snmp_apcups and have been trying to
configure it -- with no success.  I am using nagios 3.0.6 and plugins
1.4.13

I placed check_snmp_apcups into the libexec folder and ran it from the
command line.  It worked well, giving me UPS information.  However, I
cannot figure out what to do to make it work in the web interface.

The latest instructions I found (and followed) were from the wiki:
http://community.nagios.org/wiki/index.php/Howtos:snmp-apc-smart-ups

Now, these instructions refer to the check_snmp command, but this did not
work from the command line for me.  It got no response from the UPS.  So, I
changed the command to check_snmp_apcups.  I added the command definitions
to the command.cfg file and then created a ups.cfg file with the following:

#### HOST ####
define host{         use                     generic-host 
host_name               apc-smart-ups         alias
apc-smart-ups         address                 192.168.1.10 
hostgroups              ups         }

#### HOST GROUP ####
define hostgroup{         hostgoup_name           ups 
alias                   ups         }

#### SERVICES ####
define service{         use
generic-service         host_name                       apc-smart-ups 
service_description             Environment-Temperature 
check_command                   snmp_ups_envtemp!nagmon         }

define service{         use
generic-service         host_name                       apc-smart-ups 
service_description             Battery-Status 
check_command                   snmp_ups_stat!nagmon         }

define service{         use
generic-service         host_name                       apc-smart-ups 
service_description             Battery-Status 
check_command                   snmp_ups_capa!nagmon         }

define service{         use
generic-service         host_name                       apc-smart-ups 
service_description             Battery-Status 
check_command                   snmp_ups_freq!nagmon         }

define service{         use
generic-service         host_name                       apc-smart-ups 
service_description             Battery-Status 
check_command                   snmp_ups_volt!nagmon         }

define service{         use
generic-service         host_name                       apc-smart-ups 
service_description             Battery-Status 
check_command                   snmp_ups_current!nagmon         }

define service{         use
generic-service         host_name                       apc-smart-ups 
service_description             Battery-Status 
check_command                   snmp_ups_load!nagmon         }


I then modified the nagios.cfg file to point to to the ups.cfg file.  Next,
I ran the verification command and received a warning of NULL value in the
line that points to my ups.cfg file.  I don't know what is wrong with it,
or what I am missing.

Could anyone give me some pointers as to what I am doing wrong?

Thanks.
------------------------------------------------------------------------------

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


------------------------------------------------------------------------------
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