<div dir="ltr"><div class="gmail_quote"><span dir="ltr"></span>Hi all,<br><div dir="ltr"><div><div><div><div><div><br></div>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?<br>

<br></div>Doing snmpwalk, I get (amongst other things) this:<br><br>IF-MIB::ifInOctets.1 = Counter32: 4192850<br>IF-MIB::ifInOctets.2 = Counter32: 0<br>IF-MIB::ifInOctets.3 = Counter32: 0<br>IF-MIB::ifInOctets.4 = Counter32: 63017231<br>

IF-MIB::ifInOctets.5 = Counter32: 1000<br>IF-MIB::ifOutOctets.1 = Counter32: 58867993<br>IF-MIB::ifOutOctets.2 = Counter32: 0<br>IF-MIB::ifOutOctets.3 = Counter32: 0<br>IF-MIB::ifOutOctets.4 = Counter32: 2500412<br>IF-MIB::ifOutOctets.5 = Counter32: 1000<br>

<br></div>looking at the recipe at <a href="https://collectd.org/wiki/index.php/Plugins:SNMP/Config" target="_blank">https://collectd.org/wiki/index.php/Plugins:SNMP/Config</a> I attempted to use this:<br><br><Plugin snmp><br>
    <Data "if"><br>
       Type "if_octets"<br>       Table true<br>       Instance "IF-MIB::ifDescr"<br>       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"<br>   </Data><br><br>   <Host "gateway.local"><br>

       Address "192.168.1.1"<br>       Version 1<br>       Community "public"<br>       Collect "if"<br>  </Host><br></Plugin><br><br></div>Problem: This isn't collecting complete, reliable data, but instead gives the following error:<br>

<br>[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;<br>[2013-05-17 20:05:56] [info] Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.<br>

<br></div>Why? and, more importantly, how do I fix this?<br></div><div>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?<br>
</div><div dir="ltr"><br>Thanks,<br><br>Phil<br><br></div>
</div><br></div>