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

Subhendu Ghosh sghosh at sghosh.org
Mon Dec 2 08:14:14 CET 2002


On Mon, 2 Dec 2002, Michael Firkins wrote:

> 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

upgrade the ucd-snmp to at least the latest 4.2.x rpm  (they support the 
host:port notation and it is standard for the 5.x release).  

Also ucd-snmp-4.1.x has know security issues in the snmpd so an upgrade is 
warranted anyway.

http://rhn.redhat.com/errata/RHSA-2001-163.html

-sg


> 
> 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