[collectd] Snmp exclude instances

Florian Forster octo at verplant.org
Sat Dec 20 11:42:27 CET 2008

Hi Mirko,

On Wed, Dec 17, 2008 at 04:12:59PM +0100, Mirko Buffoni wrote:
> The use of Table, walks over the subtree ifDescr. In my case it
> collects 18 nodes.  However I'm interested only in 2 of them.

I started to code something, that would work much like the `ignore list'
functionality found all over the place, i. e. something like:
  Instance "IF-MIB::ifDescr"
  Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
  Select "IF-MIB::ifDescr" "/FastEthernet/"
  IgnoreSelected false

This config should match each value of `IF-MIB::ifDescr' against the
regular expression `FastEthernet' and collect only those ``rows'' that
match. This would have the advantage, that you could also filter the
results by ``columns'' that are not the instance (for example

Unfortunatly this is not trivial (building those table structures is
annoying and error prone :().

The upcoming version 4.6 will have a much more generic filter mechanism.
It's not the same thing (you won't be able to filter by columns not used
as instance - yet), but it should cover many cases. Maybe this is
already powerful enough for your problem? For details see this posting
on the mailing list:

Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20081220/bcea57ab/attachment.pgp 

More information about the collectd mailing list