Thanks Octo - I'm still having issues though and I'm beginning to wonder if it's my implementation or a larger issue. I reduced my config to the standard table example in the default configuration:<br><br>   <Data "std_traffic"><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 "myhost"><br>
       Address "myhost"<br>       Version 2<br>       Community "communitystring"<br>       Collect "std_traffic"<br>   </Host><br><br>This simple configuration doesn't work. If my understanding is correct, "Instance" provides an iterator of sorts which is then used to get the values listed in "Values". tcpdump tells me all the calls are being done at once:<br>
<br>11:07:07.416822 IP collectd_server.48042 > myhost.snmp:  C=communitystring GetNextRequest(59)  interfaces.ifTable.ifEntry.ifInOctets interfaces.ifTable.ifEntry.ifOutOctets interfaces.ifTable.ifEntry.ifDescr<br><br>
As expected, this returns the first interface's information (as verified by a manual snmpgetnext):<br><br>IF-MIB::ifInOctets.1 = Counter32: 3740191310<br><br>Since the box has 3 interfaces, (lo, eth0, eth1), in my thinking this process should repeat 2 more times, which it does:<br>
<br>11:07:07.420375 IP myhost.snmp > collectd_server.48042:  C=communitystring GetResponse(74)  interfaces.ifTable.ifEntry.ifInOctets.1=3739077099 interfaces.ifTable.ifEntry.ifOutOctets.1=3739077099 interfaces.ifTable.ifEntry.ifDescr.1="lo"<br>
11:07:07.420816 IP collectd_server.48042 > myhost.snmp:  C=communitystring GetNextRequest(62)  interfaces.ifTable.ifEntry.ifInOctets.1 interfaces.ifTable.ifEntry.ifOutOctets.1 interfaces.ifTable.ifEntry.ifDescr.1<br>11:07:07.422980 IP myhost.snmp > collectd_server.48042:  C=communitystring GetResponse(76)  interfaces.ifTable.ifEntry.ifInOctets.2=3561114835 interfaces.ifTable.ifEntry.ifOutOctets.2=4032830435 interfaces.ifTable.ifEntry.ifDescr.2="eth0"<br>
11:07:07.423126 IP collectd_server.48042 > myhost.snmp:  C=communitystring GetNextRequest(62)  interfaces.ifTable.ifEntry.ifInOctets.2 interfaces.ifTable.ifEntry.ifOutOctets.2 interfaces.ifTable.ifEntry.ifDescr.2<br>11:07:07.425329 IP myhost.snmp > collectd_server.48042:  C=communitystring GetResponse(68)  interfaces.ifTable.ifEntry.ifInOctets.3=0 interfaces.ifTable.ifEntry.ifOutOctets.3=0 interfaces.ifTable.ifEntry.ifDescr.3="eth1"<br>
<br><br>Now, when I do an snmpwalk on those MIBs, that's where it ends:<br><br># snmpwalk -v 2c -c communitystring myhost IF-MIB::ifInOctets<br>IF-MIB::ifInOctets.1 = Counter32: 3740192294<br>IF-MIB::ifInOctets.2 = Counter32: 3775550612<br>
IF-MIB::ifInOctets.3 = Counter32: 0<br>#<br><br>I understand that GetNextRequest has no way of knowing that this is the end of the MIB so the next call is expected:<br><br>11:07:07.425426 IP collectd_server.48042 > myhost.snmp:  C=communitystring GetNextRequest(62)  interfaces.ifTable.ifEntry.ifInOctets.3 interfaces.ifTable.ifEntry.ifOutOctets.3 interfaces.ifTable.ifEntry.ifDescr.3<br>
11:07:07.427585 IP myhost.snmp > collectd_server.48042:  C=communitystring GetResponse(71)  interfaces.ifTable.ifEntry.ifInUcastPkts.1=32690775 interfaces.ifTable.ifEntry.ifOutUcastPkts.1=32690775 interfaces.ifTable.ifEntry.ifType.1=24<br>
<br>However, it seems to me that once it receives that data, it should stop because we're out of the ifInOctets subtree altogether now. Instead, it keeps going:<br><br>11:07:07.427790 IP collectd_server.48042 > myhost.snmp:  C=communitystring GetNextRequest(62)  interfaces.ifTable.ifEntry.ifInOctets.3 interfaces.ifTable.ifEntry.ifOutOctets.3 interfaces.ifTable.ifEntry.ifType.1<br>
11:07:07.429960 IP myhost.snmp > collectd_server.48042:  C=communitystring GetResponse(71)  interfaces.ifTable.ifEntry.ifInUcastPkts.1=32690775 interfaces.ifTable.ifEntry.ifOutUcastPkts.1=32690775 interfaces.ifTable.ifEntry.ifType.2=6<br>
11:07:07.430062 IP collectd_server.48042 > myhost.snmp:  C=communitystring GetNextRequest(62)  interfaces.ifTable.ifEntry.ifInOctets.3 interfaces.ifTable.ifEntry.ifOutOctets.3 interfaces.ifTable.ifEntry.ifType.2<br>11:07:07.432313 IP myhost.snmp > collectd_server.48042:  C=communitystring GetResponse(71)  interfaces.ifTable.ifEntry.ifInUcastPkts.1=32690775 interfaces.ifTable.ifEntry.ifOutUcastPkts.1=32690775 interfaces.ifTable.ifEntry.ifType.3=6<br>
<br>It keeps crawling the tree and never returns so I get no data. If I wait long enough, I can see it climbing up the processor tree...<br><br>11:09:01.595140 IP myhost.snmp > collectd_server.60949:  C=communitystring GetResponse(115)  interfaces.ifTable.ifEntry.ifInUcastPkts.1=32694434 interfaces.ifTable.ifEntry.ifOutUcastPkts.1=32694434 25.3.2.1.3.768="GenuineIntel: Intel(R) Xeon(TM) CPU 3.20GHz"<br>
11:09:01.595335 IP collectd_server.60949 > myhost.snmp:  C=communitystring GetNextRequest(64)  interfaces.ifTable.ifEntry.ifInOctets.3 interfaces.ifTable.ifEntry.ifOutOctets.3 25.3.2.1.3.768<br>11:09:01.596967 IP myhost.snmp > collectd_server.60949:  C=communitystring GetResponse(115)  interfaces.ifTable.ifEntry.ifInUcastPkts.1=32694434 interfaces.ifTable.ifEntry.ifOutUcastPkts.1=32694434 25.3.2.1.3.769="GenuineIntel: Intel(R) Xeon(TM) CPU 3.20GHz"<br>
11:09:01.597084 IP collectd_server.60949 > myhost.snmp:  C=communitystring GetNextRequest(64)  interfaces.ifTable.ifEntry.ifInOctets.3 interfaces.ifTable.ifEntry.ifOutOctets.3 25.3.2.1.3.769<br>11:09:01.598697 IP myhost.snmp > collectd_server.60949:  C=communitystring GetResponse(115)  interfaces.ifTable.ifEntry.ifInUcastPkts.1=32694434 interfaces.ifTable.ifEntry.ifOutUcastPkts.1=32694434 25.3.2.1.3.770="GenuineIntel: Intel(R) Xeon(TM) CPU 3.20GHz"<br>
11:09:01.598890 IP collectd_server.60949 > myhost.snmp:  C=communitystring GetNextRequest(64)  interfaces.ifTable.ifEntry.ifInOctets.3 interfaces.ifTable.ifEntry.ifOutOctets.3 25.3.2.1.3.770<br><br>Any ideas what might be going on here? Thanks,<br>
<br>Mark<br><br><br><br><br><div class="gmail_quote">On Fri, Sep 7, 2012 at 1:46 AM, Florian Forster <span dir="ltr"><<a href="mailto:octo@collectd.org" target="_blank">octo@collectd.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mark,<br>
<br>
thanks for your detailed information. I've added an appropriate check to<br>
the SNMP plugin, see <<a href="http://octo.cx/07739da" target="_blank">http://octo.cx/07739da</a>>. I've committed this to<br>
the collectd-4.10 branch, so it'll appear in the next bugfix releases.<br>
<br>
Best regards,<br>
—octo<br>
<span class="HOEnZb"><font color="#888888">--<br>
collectd – The system statistics collection daemon<br>
Website: <a href="http://collectd.org" target="_blank">http://collectd.org</a><br>
Google+: <a href="http://collectd.org/+" target="_blank">http://collectd.org/+</a><br>
GitHub:  <a href="https://github.com/collectd" target="_blank">https://github.com/collectd</a><br>
Twitter: <a href="http://twitter.com/collectd" target="_blank">http://twitter.com/collectd</a><br>
</font></span></blockquote></div><br>