[Nagiosplug-devel] check_snmp OID numbers limited?
nagiosplug-devel at lusis.org
Sun Jul 11 04:51:56 CEST 2010
On Sat, Jul 10, 2010 at 2:34 AM, William Leibzon <william at leibzon.org> wrote:
> On Fri, Jul 9, 2010 at 8:20 PM, Thomas Guyot-Sionnest <dermoth at aei.ca> wrote:
>>> 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 is right. Since chances of OID changing are close to none, you
> should use numbers or you can just assign oid number to some variable
> with proper name directly in your code. And for those who need better
> support there is snmptt:
> And perhaps we should increase default to 10 instead of 5, I've ran
> into that myself too. Would other people who want it and those who
> object please tell, so we could do a quick poll here.
Those are fair statements. I was thinking more along the lines of
readability and check command length. I can't remember if there was a
maxlength issue anymore with a command object. I also second snmptt.
More information about the Devel