[collectd] snmp plugin not writing rrd's

Matt Peterson matt at peterson.org
Fri Sep 28 08:03:52 CEST 2007


Howdy,

First off, thanks for the fine work Florian.  I'm using the 4.1.1
version on an FC6/x86_64 box.  The standard plugins (n.g. df, cpu,
memory, load) work fine against the localhost, creating both the CSV
dumps and updating RRA's in various RRD files.

My specific interest is graphing SNMP variables (n.g. interfaces,
temperature, etc) from a network switch, a Cisco 6509 in this case.
While the pulling works fine for both of these into CSV files, and the
debug version of collectd claims it's updating the RRD files, I find the
data in them null (NaN with rrdtool dump).  What's a good way to debug
this further?  Thanks!  Here's a sniplet of the config..

<Plugin snmp>
    <Data "cat6500_module_6_outlet_temperature">
       Type "voltage"
       Table false
       Instance "module_6_outlet_temperature"
       Values "SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.4"
   </Data>
   <Data "if_octetsHC">
        Type "if_octets"
        Table true
        Instance "IF-MIB::ifDescr"
        Values "IF-MIB::ifHCInOctets" "IF-MIB::ifHCOutOctets"
   </Data>
   <Data "if_octets">
       Type "if_octets"
       Table true
       Instance "IF-MIB::ifDescr"
       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
   </Data>
   <Host "edge1.sfo">
       Address "X.X.X.X"
       Version 2
       Community "pUbl1c"
       Collect "if_octets" "cat6500_module_6_outlet_temperature"
       Interval 60
   </Host>
</Plugin>

...an example of getting the temp & updating (or claiming to?)

snmp plugin: csnmp_read_value (host = edge1.sfo, data =
cat6500_module_6_outlet_temperature)
snmp plugin: Got this variable: SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.4
= Gauge32: 30
snmp plugin: Parsed int32 value is 30.
snmp plugin: -> plugin_dispatch_values (voltage, &vl);
plugin: plugin_dispatch_values: time = 1190959086; interval = 60; host =
edge1.sfo; plugin = snmp; plugin_instance = ; type = voltage;
type_instance = module_6_outlet_temperature;
csv plugin: csv_write: filename =
edge1.sfo/snmp/voltage-module_6_outlet_temperature-2007-09-27;
rrd_cache_insert
(/usr/local/var/lib/collectd/rrd/edge1.sfo/snmp/voltage-module_6_outlet_temperature.rrd,
1190959086:30.000000, 1190959086) = 0x2aaab80008c0
return (0);
Exiting normally

csv plugin: csv_write: filename =
edge1.sfo/snmp/if_octets-GigabitEthernet9_18-2007-09-27;
rrd_cache_insert
(/usr/local/var/lib/collectd/rrd/edge1.sfo/snmp/if_octets-GigabitEthernet9_18.rrd,
1190959322:479604906:2497571510, 1190959322) = 0x712e30
plugin: plugin_dispatch_values: time = 1190959322; interval = 60; host =
edge1.sfo; plugin = snmp; plugin_instance = ; type = if_octets;
type_instance = GigabitEthernet9_19;

--Matt



More information about the collectd mailing list