[Nagiosplug-devel] check_snmp OID numbers limited?
dermoth at aei.ca
Sat Jul 10 03:20:52 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
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
>> - --
> 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Nagiosplugin-devel