pnp4nagios, check_snmp, and the `-m' flag

David Krider david at davidkrider.com
Wed Nov 18 19:46:36 CET 2009


On Wed, 2009-11-18 at 11:17 -0500, Thomas Guyot-Sionnest wrote:
> This is very strange. I can understand that loading a single MIB is
> fast, but check_snmp should force a blank mib list (-m '') when only a
> numeric OID is broken. some time ago I fixed it when using multiple
> numerical oids separated with commas, but this behaviour with a single
> OID should be very old.

I'm on Gentoo, and the current version here is 3.0.6. The latest version
(3.2.0) is available if I "unmask" it from being labeled as "unstable."
I have the plugins at 1.4.13. Again, the latest version is available.

> Can you please show be your version, send the verbose output for the 1st
> one and try the same with this switch:
> - -m ''

temporary ~ # /usr/lib/nagios/plugins/check_snmp -V
check_snmp v2021 (nagios-plugins 1.4.13)


temporary ~ # time /usr/lib/nagios/plugins/check_snmp -v -H 10.1.25.11
-o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 -w 10:20 -c 20:30
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 -c public
10.1.25.11:161  .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1
iso.3.6.1.4.1.534.8.3.1.5.1.1.4.1 = INTEGER: 28

SNMP WARNING - *28* | iso.3.6.1.4.1.534.8.3.1.5.1.1.4.1=28  

real	0m0.190s
user	0m0.080s
sys	0m0.010s


temporary ~ # time /usr/lib/nagios/plugins/check_snmp -v -H 10.1.25.11
-m '' -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 -w 10:20 -c 20:30
/usr/bin/snmpget -t 1 -r 5 -m  -v 1 -c public
10.1.25.11:161  .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1

SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m  -v 1 [authpriv]
10.1.25.11:161  .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1

real	0m0.112s
user	0m0.000s
sys	0m0.000s


Note that the second one breaks.

Thanks for being so helpful with this!
dk



------------------------------------------------------------------------------
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
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list