[rrd-users] Re: increase performance

Simon Leinen simon at limmat.switch.ch
Wed Aug 29 10:35:42 MEST 2001


>>>>> "avdb" == Alex van den Bogaerdt <alex at slot.hollandcasino.nl> writes:
> Loading all the modules, such as SNMP_util and friends, together
> with perl itself does impact the machine.  I'm not talking a modern
> machine here, I'm talking home machine with 4 years of uptime.

Yes, but you could write a Perl script that loads the SNMP library
once, and then does your every-five-minutes stuff in an endless loop.

> Nah,  I usually do it quick and dirty:

> snmpget host public 2.2.1.10.2 2.2.1.16.2 | \
> [...]

For me, snmpget has significant startup overhead as well, because it
reads and parses a default set of MIB files.  Since you use a numeric
OID, you could prevent that by setting the environment variable MIBS
to the empty string when calling snmpget.  Possibly you'd have to
fully qualify the OID then (.1.3.6.1.2.2.1.10.2 2.2.1.16.2).
-- 
Simon.

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list