Hello,<br><br>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<br>
<br>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.<br><br>The latest instructions I found (and followed) were from the wiki: <a href="http://community.nagios.org/wiki/index.php/Howtos:snmp-apc-smart-ups">http://community.nagios.org/wiki/index.php/Howtos:snmp-apc-smart-ups</a><br>
<br>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:<br>
<br>#### HOST ####<br>define host{<br> use generic-host<br> host_name apc-smart-ups<br> alias apc-smart-ups<br> address 192.168.1.10<br>
hostgroups ups<br> }<br><br>#### HOST GROUP ####<br>define hostgroup{<br> hostgoup_name ups<br> alias ups<br> }<br><br>#### SERVICES ####<br>define service{<br>
use generic-service<br> host_name apc-smart-ups<br> service_description Environment-Temperature<br> check_command snmp_ups_envtemp!nagmon<br>
}<br><br>define service{<br> use generic-service<br> host_name apc-smart-ups<br> service_description Battery-Status<br> check_command snmp_ups_stat!nagmon<br>
}<br><br>define service{<br> use generic-service<br> host_name apc-smart-ups<br> service_description Battery-Status<br> check_command snmp_ups_capa!nagmon<br>
}<br><br>define service{<br> use generic-service<br> host_name apc-smart-ups<br> service_description Battery-Status<br> check_command snmp_ups_freq!nagmon<br>
}<br><br>define service{<br> use generic-service<br> host_name apc-smart-ups<br> service_description Battery-Status<br> check_command snmp_ups_volt!nagmon<br>
}<br><br>define service{<br> use generic-service<br> host_name apc-smart-ups<br> service_description Battery-Status<br> check_command snmp_ups_current!nagmon<br>
}<br><br>define service{<br> use generic-service<br> host_name apc-smart-ups<br> service_description Battery-Status<br> check_command snmp_ups_load!nagmon<br>
}<br><br><br>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.<br>
<br>Could anyone give me some pointers as to what I am doing wrong?<br><br>Thanks.<br><br>