[Nagiosplug-help] check_snmp won't play :(

Michael Firkins michael at lyppard.com.au
Sun Dec 1 21:37:20 CET 2002


Hi.

I'm mystified by the problem I am having with snmp. I'd like to use it 
to pick up some data from printers around the place and use it on 
nagios, but it just won't play ball. Plugins are 
nagios-plugins-1.3.0-beta2

Here is my model snmpget  command and output:

# snmpget -m ALL 192.168.163.91 -c public 43.10.2.1.4.1.1
43.10.2.1.4.1.1 = 472764 (That's the page count from a Lexmark Optra S 
Printer)

And here is the command and output from check_snmp

# ./check_snmp -v -H 192.168.163.91 -C public -o 43.10.2.1.4.1.1
/usr/bin/snmpget -m ALL -v 1 -c public 192.168.163.91:161  
43.10.2.1.4.1.1

SNMP problem - No data recieved from host
CMD: /usr/bin/snmpget -m ALL -v 1 -c public 192.168.163.91:161  
43.10.2.1.4.1.1

Having the port appended to the host id is the problem, if I run 
snmpget with the same command line, but without the :161 it runs fine:

# /usr/bin/snmpget -m ALL -v 1 -c public 192.168.163.91  43.10.2.1.4.1.1
43.10.2.1.4.1.1 = 472790

# which snmpget
/usr/bin/snmpget

rpm -qa|grep snmp
ucd-snmp-4.1.1-2
ucd-snmp-utils-4.1.1-2

System is a RedHat 6.2 box running kernel 2.2.14  (I know, I can't - 
it's locked down by a legacy database!)

regards and thanks,

Michael





More information about the Help mailing list