-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23/11/09 07:10 PM, Brandon Williams wrote:
> Hey Guys I am trying to monitor a switch by using snmp.  When I run the
> check_snmp I get this result
> 
>  
> 
>  
> 
> ./check_snmp -H x.x.x.x -C c...@m -P 2c -o
> .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
> 
> SNMP problem - No data received from host
> 
> CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 2c [authpriv] 10.7.128.77:161 
> .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
> 
>  
> 
> If I were to run snmpget I am able to get results
> 
>  
> 
> su nagios -c "snmpget -t 1 -r 5 -m '' -v 2c -c c...@m x.x.x.x:161 
> .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1"
> 
> iso.3.6.1.4.1.6027.3.10.1.2.2.1.14.1 = Gauge32: 61
> 
>  
> 
> Any ideas on why check_snmp is having a problem?  The only odd thing I
> see is [authpriv] which I guess means it is hiding the community
> string.  The community string I am showing is not the actual one we
> use.  The one we use has letters and numbers.  Would that have anything
> to do with it?

Which version of check_snmp are you using? 1.4.14 should have better
handling of special characters than anything before... whichever version
you use it would be nice it you could try the other (1.4.14 vs older).

Besides that I don't see what wouldn't work. Maybe try with debug output
(-vvv).

NB: check_snmp v1.4.14 has broken support for multiple -o option, but
you can still pass multiple oids separated with commas.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLC2tT6dZ+Kt5BchYRAijpAKCKiByUCak8yBy0YcqaKQM/T0ynpwCbBYNm
G62RDLRz8ZYlKym02b4dUok=
=Mljf
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to