check_snmp and quoted oid's

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Mar 24 01:05:47 CET 2010


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

On 23/03/10 07:03 PM, Gius, Mark wrote:
> In my Nagios command definitions I always escape quote anything like this.  IE,
> 
> check_snmp <options> \'OID"b"\'

OIDs are always numeric; this notation is actually being interpreted
into numbers by net-snmp.

To get the numeric notation, use:

snmptranslate -On REDHAT-CLUSTER-MIB::rhcServiceRunningOnNode."service"

NB: that's a big "O", not a zero...

It's also faster to use numeric notation as the MIBs won't have to be
loaded - makes a real difference when polling many thousand OIDs per minute.


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

iD8DBQFLqVdb6dZ+Kt5BchYRAun4AJ9Qw4EOC7XEXX68LnGgLfFe6IIsygCgp9ic
eTx3Kfh2JbqS8+vCynVCtZo=
=DTvG
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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