[mrtg] SNMP WaLK question
s.shipway at auckland.ac.nz
Thu Apr 29 04:13:59 CEST 2010
If I remember right, the 'first subID too big' error came from an older versionof the BER.pm library. Try upgrading to MRTG 2.16.2 and you'll get the upgraded BER.pm which should avoid this problem.
However, this wont really help you, since the WaLK option retrieves only the COUNT of the number of sub-tems, not their total. For example, you could use it to get the number of active TCP connections by walking the appropriate table.
To get what you want, a total of values within an OID tree, you'll need to write a data collection plugin. If you're familiar with Perl its a fairly simple one, just a ingle bulk retrieve from SNMP and iterate the returned table summing as you go.
From: mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch [mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of Christian Ludwig [cludwig at net.t-labs.tu-berlin.de]
cannot encode Object ID 18.104.22.168: first subid too big in Object ID
22.214.171.124 at /usr/bin/mrtg line 2049
Use of uninitialized value in split at /usr/bin/mrtg line 2049.
More information about the mrtg