[collectd] Problem configuring snmp plugin.

Krist van Besien krist at vanbesien.org
Mon Sep 24 12:09:22 CEST 2007


Hello,

I want to use the snmp plugin in collectd to collect data from my
firewall. so far I'm not having a lot of success.

I first configured collectd like this:

<Plugin snmp>
   <Data "std_traffic">
       Type "if_octets"
       Table true
       Instance "IF-MIB::ifDescr"
       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
   </Data>
   <Host "M0n0Wall_router_2">
       Address "192.168.1.1"
       Version 1
       Community "public"
       Collect "std_traffic"
       Interval 120
   </Host>
</Plugin>

The result was that collectd created a directory
M0n0Wall_router_2/snmp in it's rrd dir, with the following subdirs:

if_octets-lo0.rrd
if_octets-sis0.rrd
if_octets-sis1.rrd
if_octets-sis2.rrd

So collectd correctly detects the interfaces on my firewall, and
creates the rrd's for it. But it appeared no data was logged.

Using "rrdtool info" I looked at what got put in to the rrd, and found
out that rrd updates did take place, but the problem was that the
rrd's created had a heartbeat of 20. Since the rrd was updated only
every 120 seconds or so (as this is the interval set in the snmp
plugin config) all data points remained "unknown".

I then reduced "interval" to 10, but this didn't help, as updates
still only happened at long intervals. further investigation turned up
that the update interval was exactly 130 seconds...

Where does this 130 seconds come from? Is the "interval" setting in
the snmp config being ignored?

Is there a way to change the heartbeat (and possibly the xfiles
factor) only for the snmp rrd's? Is there a way to get the snmp plugin
to sample more often?

How do I get this to work?

(I'm using version 4.1.1 on Ubuntu Linux)

Krist

krist at vanbesien.org

Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?



More information about the collectd mailing list