[collectd] Fwd: adsl monitoring via snmp

Phil White manx.biz at googlemail.com
Sat May 18 23:29:48 CEST 2013


Hi all,

I have recently obtained a new (for me) adsl terminal adapter - and would
rather like to keep an eye on it. The plan is to use snmp via collectd.
Unfortunately, it isn't quite working... Can anyone give me a hand?

Doing snmpwalk, I get (amongst other things) this:

IF-MIB::ifInOctets.1 = Counter32: 4192850
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 63017231
IF-MIB::ifInOctets.5 = Counter32: 1000
IF-MIB::ifOutOctets.1 = Counter32: 58867993
IF-MIB::ifOutOctets.2 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 2500412
IF-MIB::ifOutOctets.5 = Counter32: 1000

looking at the recipe at
https://collectd.org/wiki/index.php/Plugins:SNMP/Config I attempted to use
this:

<Plugin snmp>
    <Data "if">
       Type "if_octets"
       Table true
       Instance "IF-MIB::ifDescr"
       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
   </Data>

   <Host "gateway.local">
       Address "192.168.1.1"
       Version 1
       Community "public"
       Collect "if"
  </Host>
</Plugin>

Problem: This isn't collecting complete, reliable data, but instead gives
the following error:

[2013-05-17 20:05:56] [notice] uc_update: Value too old: name =
gateway.local/snmp/if_octets; value time = 1368817556.568; last cache
update = 1368817556.568;
[2013-05-17 20:05:56] [info] Filter subsystem: Built-in target `write':
Dispatching value to all write plugins failed with status -1.

Why? and, more importantly, how do I fix this?
>From the FAQ, this is down to a misconfiguration of the SNMP plugin.
Indeed, removing the 'Instance' line "fixes" the problem - but introduces
another: I go from monitoring adsl (WAN), eth (LAN) & VLAN traffic to
monitoring if_octets 1 through 5 *and* wan, lan & vlan., of which the first
5 are always empty! (which confuses me, since I only have 5 oids). What
gives?

Thanks,

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130518/2f62e802/attachment.html>


More information about the collectd mailing list