[collectd] collectd snmp plugin never writes

Ryan Frizzell ry.frizzell at gmail.com
Fri Jan 4 20:06:36 CET 2013


I've got an odd issue which I can't seem to get to the bottom of. I'm
trying to collect snmp data using collectd and it seems that it never
writes (looking at the log file). I've changed the storage to csv
temporarily while I try to work out the issues.

Here's what my conf looks like:

#
# Config file for collectd(1).
# Please read collectd.conf(5) for a list of options.
# http://collectd.org/
#

#Hostname    "localhost"
FQDNLookup   true
BaseDir     "/var/lib/collectd"
PIDFile     "/var/run/collectd.pid"
PluginDir   "/usr/lib/collectd"
TypesDB     "/usr/share/collectd/types.db"
Interval     10
ReadThreads  5

LoadPlugin syslog
LoadPlugin logfile

<Plugin logfile>
        LogLevel debug
        File  "/var/log/collectd.log"
        Timestamp true
        PrintSeverity true
</Plugin>


LoadPlugin snmp
<Plugin snmp>
   <Data "std_traffic">
      Type "if_octets"
      Table true
      Instance "IF-MIB::ifName"
      Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
   </Data>
   <Host "sw1">
      Address "192.168.0.1"
      Version 2
      Community "public"
      Collect "std_traffic"
   </Host>
</Plugin>

LoadPlugin csv
<Plugin "csv">
  DataDir "/var/lib/collectd/csv"
  StoreRates true
</Plugin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130104/832b743d/attachment.html>


More information about the collectd mailing list