I have several Solaris 10 servers runing NET-SNMP version 5.0.9, and recently bounced the snmpd. After bouncing, my nagios (version 2.5) server started reporting errors: SNMP problem - No data recieved from host, yet I am getting nagios updates from the remote server.
I believe I have isolated this down to my checkcommands.cfg which has an entry for:
define command {
command_name check-fs-cap
command_line $USER1$/check_snmp -m UCD-SNMP-MIB -H $HOSTADDRESS$ -C $
ARG1$ -o dskPath.$ARG2$,dskPercent.$ARG2$,dskPercentNode.$ARG2$ -u -,%\ used,%
files\ used -w ,$ARG4$,$ARG6$ -c ,$ARG3$,$ARG5$
}
Within my services.cfg (for this specific server and command_name) is:
define service {
use dba-service
service_description remote1:/oraarch capacity
host_name remote1
check_command check-fs-cap!mypub!14!99!97!0:idea:0:
}
When I try to run the command manually, either as root or as nagios, I get the same error. The command I am trying to run is: /usr/local/nagios/libexec/check_snmp -m UCD-SNMP-MIB -H remote1 -C mypub -o dskPath.14,dskPercent.14,dskPercentNode.14 -u -,%\ files\ used -w 0:98 -c 0:99
When I try to run just: /usr/local/nagios/libexec/check_snmp -H localhost or the ip address of my local machine, I get SNMP problem - No data received from host
yet the snmpd is running locally.
Any ideas? Do I need to send any more info to help diagnose?
Thank you in advance.