APC UPS Monitoring Setup.
David A.
ti1ion2005 at gmail.com
Sun Apr 12 20:52:54 CEST 2009
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090412/e5c3120a/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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