[Nagiosplug-help] check_snmp problem "No data received from host"

Israel Brewster israel at frontierflying.com
Thu May 15 17:57:50 CEST 2008




On May 15, 2008, at 5:03 AM, Sergio Belkin wrote:

> Hi, I am a beginner in the nagios world, and I want to use check_snmp
> plugin. But first I wanted to test in the command line, so I issued:
>
> 10.1.0.4 is IP address of one of a network switch.
>
> /usr/lib64/nagios/plugins/check_snmp -H 10.1.0.4 -o 1.3.6.1.2.1.1.5.0
> --community="soyou" -m /usr/share/snmp/mibs/RAPID-CITY.txt
> --protocol=2c
>
> it outputs:
>
> SNMP problem - No data received from host
> CMD: /usr/bin/snmpget -t 1 -r 5 -m /usr/share/snmp/mibs/RAPID-CITY.txt
> -v 2c [authpriv] 10.1.0.4:161  1.3.6.1.2.1.1.5.0
>
> Despite of this, snmp net-snmp-utils-5.3.1-19.el5_1.4 is installed,
> and more, I can run:
>
> /usr/bin/snmpget  -v1  10.1.0.4:161  1.3.6.1.2.1.1.5.0 -c "soyou" -m
> /usr/share/snmp/mibs/RAPID-CITY.txt
>
> and I get:
>
> RFC1213-MIB::sysName.0 = STRING: "NiceSwitch-1"
>
> Please, could you tell me what's wrong?

Well, the obvious difference: the snmpget command you issued is using  
SNMP version 1 (-v1) while the check_snmp command is using version 2c  
(--protocol=2c and, in the actual snmpget command it issues, -v 2c).  
It is entierly possible, perhaps even likely, that the switch in  
question only supports version 1. Try changing the check_snmp command  
to use version 1 and see if that works.
-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
>
>
> Thanks in advance!
>
> -- 
> --
> Open Kairos http://www.openkairos.com
> Watch More TV http://sebelk.blogspot.com
> Sergio Belkin -
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any  
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null





More information about the Help mailing list