Hi All, <div><br></div><div>I'm trying to use the collectd snmp plugin to grab up information on switch port usage via the snmp plugin. The problem that i'm running into is that it seems the snmp plugin never writes. To troubleshoot this, I've recompilied with debug options, set the logging to debug, and change the write plugin to use csv. I can see that the rest of the plugins write with no issue (cpu, etc etc). However the snmp plugin never attempts to write any toughts on what could be causing this? </div>
<div><br></div><div>I can see the snmp plugin collecting what appears to be correct data but there's never a write line in the logs. The only thing that looks a bit bad is: </div><div><div><br></div><div>[debug] snmp plugin: host = sw1; data = std_traffic; Value 0 failed. It probably left its subtree.</div>
<div>[debug] snmp plugin: host = sw1; data = std_traffic; Value 1 failed. It probably left its subtree.</div></div><div><br></div><div><br></div><div><br></div><div>Here's what i've got in my config: </div><div><br>
</div><div><div>#</div><div># Config file for collectd(1).</div><div># Please read collectd.conf(5) for a list of options.</div><div># <a href="http://collectd.org/">http://collectd.org/</a></div><div>#</div><div><br></div>
<div>#Hostname    "localhost"</div><div>FQDNLookup   true</div><div>BaseDir     "/var/lib/collectd"</div><div>PIDFile     "/var/run/collectd.pid"</div><div>PluginDir   "/usr/lib/collectd"</div>
<div>TypesDB     "/usr/share/collectd/types.db"</div><div>Interval     10</div><div>ReadThreads  5</div><div><br></div><div>#LoadPlugin conntrack</div><div>#LoadPlugin cpu</div><div>#LoadPlugin df</div><div>#LoadPlugin disk</div>
<div>#LoadPlugin exec</div><div>#LoadPlugin interface</div><div>LoadPlugin irq</div><div>#LoadPlugin load</div><div>#LoadPlugin logfile</div><div>#LoadPlugin memory</div><div>#LoadPlugin network</div><div>#LoadPlugin ntpd</div>
<div>#LoadPlugin processes</div><div>#LoadPlugin tcpconns</div><div>#LoadPlugin swap</div><div>#LoadPlugin users</div><div><br></div><div>LoadPlugin syslog</div><div>LoadPlugin logfile</div><div><br></div><div><Plugin logfile></div>
<div>        LogLevel debug</div><div>        File  "/var/log/collectd.log"</div><div>        Timestamp true</div><div>        PrintSeverity true</div><div></Plugin></div></div><div><br></div><div><div>LoadPlugin snmp</div>
<div><Plugin snmp></div><div>   <Data "std_traffic"></div><div>      Type "if_octets"</div><div>      Table true</div><div>      Instance "IF-MIB::ifName"</div><div>      Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"</div>
<div>   </Data></div><div>   <Host "sw1"></div><div>      Address "192.168.0.4"</div><div>      Version 2</div><div>      Community "public"</div><div>      Collect "std_traffic"</div>
<div>   </Host></div><div></Plugin></div></div><div><br></div><div><div>LoadPlugin csv</div><div><Plugin "csv"></div><div>  DataDir "/var/lib/collectd/csv"</div><div>  StoreRates true</div>
<div></Plugin></div></div><div><br></div><div><br></div>