[Nagiosplug-help] check_snmp problems

Andreas Ericsson ae at op5.se
Fri Jul 1 02:32:04 CEST 2005


Jan Dierkes wrote:
> Sorry, that doesn't fix it. The error message is the same.
>

Strip the trailing one then. check_snmp prints that error either because 
snmpget returns non-zero or there is output on stderr. I've hacked up a 
replacement that's a bit more clever. It's available at 
http://oss.op5.se/nagios/op5plugins.tar.gz

You can try that if you like.

> 
>>>Hello list,
>>>
>>> 
>>>
>>>I get the following error when I run check_snmp from the shell:
>>>
>>> 
>>>
>>>./check_snmp -H XXX.XXX.44.181 -o 1.3.6.1.2.1.1.3.0 -C xxxxx
>>>
>>>SNMP Problem - No data received from host
>>>
>>>CMD: /usr/local/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c xxxxx
>>>XXX.XXX.44.181:161 1.3.6.1.2.1.1.3.0.
>>>
>>
>>You need a leading dot in the oid.
>>
>>
>>> 
>>>
>>>When I then type in that CMD string directly it works correctly and  
>>>returns the timeticks just as requested:
>>>
>>> 
>>>
>>>snmpget -t 1 -r 5 -m ALL -v 1 -c xxxxx XXX.XXX.44.181:161 
>>>1.3.6.1.2.1.1.3.0.
>>>
>>>SNMPv2-MIB:sysUpTime.0 = Timeticks: (xxxxxxxxx) xx
>>>
>>> 
>>>
>>>I am running Suse Linux 9.3 and using the nagios-plugins 1.4 .
>>>
>>> 
>>>
>>>Anyone having a clue where the error is? Thanks in advance,
>>>
>>> 
>>>
>>>Jan
>>>
>>>
>>
>>-- 
>>Andreas Ericsson                   andreas.ericsson at op5.se
>>OP5 AB                             www.op5.se
>>Lead Developer
> 
> 
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Help mailing list