check_snmp returning SNMP problem - No data received from ho


#1

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.


#2

Correction: we are running Nagios 2.5 with nagios-plugins 1.4.3 not NET-SNMP v5.0.9. The version of snmpget and check_snmp are 1.4.3


#3

When I run (as nagios UID): /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
No data received from host
CMD: /usr/sfw/bin/snmpget -t 1 -r 5 -m UCD_SNMP_MIB -v 1 -c mypub cremote1:161 dskPath.14 dskPercent.14 dskPercentNode.14

Then when I try to run manually (as nagios UID):
/usr/sfw/bin/snmpget -t 1 -r 5 -m UCD_SNMP_MIB -v 1 -c mypub remote1:161 dskPath.14 dskPercent.14 dskPercentNode.14
dskPath.14: Unknown Object Identifier (Sub-id not found: (top) -> dskPath)
dskPercent.14: Unknown Object Identifier (Sub-id not found: (top) -> dskPercent)
dskPercentNode.14: Unknown Object Identifier (Sub-id not found: (top) -> dskPercentNode)


#4

I also tried
/usr/sfw/bin/snmpget -t 1 -r 5 -m UCD_SNMP_MIB -v 2c -c mypub remove1161 1.3.6.1.4.1.2021.100

for version 2c (cacti monitoring) and got the following:
iso.3.6.1.4.1.2021.100 = No Such Object available on this agent at this OID

Does this mean that I would possible need to compile and run a subagent?