[Nagiosplug-devel] check_snmp OID numbers limited?

Thomas Guyot-Sionnest dermoth at aei.ca
Sat Jul 10 05:20:52 CEST 2010


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

On 10-07-09 09:08 PM, John Vincent wrote:
> On Fri, Jul 9, 2010 at 7:42 PM, Thomas Guyot-Sionnest <dermoth at aei.ca> wrote:

>>
>> You can edit plugins/check_snmp.c. Near the beginning you will see:
>>
>> #define MAX_OIDS 8
>>
>> You can change that to a bigger number and it should work ok. YMMV,
>> please report any bug you get while modifying this.
>>
>> The --help output won't change though, I just fixed that for the next
>> release.
>>
>> - --
>> Thomas
> 
> To be fair, at the point you need that many OIDs you should really
> start using the MIB files.

What difference would it make? There would still be the same limit, and
the performance when doing lots of snmp-based checks would be a lot
worse, especially since Net-SNMP doesn't yet support pre-compiled MIBs
so it has to parse and compile them all at each invocation.

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

iEYEARECAAYFAkw35w4ACgkQ6dZ+Kt5BchYqZACgz3hgtS6ia6BV6L4L5hB+gvFN
oiEAn0aGXclfuxv956Sn7MFZznJoSofN
=v72H
-----END PGP SIGNATURE-----




More information about the Devel mailing list