[collectd] collect Snmp exclude

Mariusz Gronczewski xani666 at gmail.com
Sat Aug 15 16:47:47 CEST 2009


2009/8/15 Domagoj Mikac <domagoj.mikac at metronet.hr>:
> Hi,
>
> I'am using a snmp plugin to collect traffic statistics from network
> interfaces in our network.
>
> In situations when using a Table parametar = true, the plugin simply walks
> all interfaces.
> In my case it is about 1000 interfaces on a single device, and I would like
> to collect snmp data from only 100 interfaces.
>
> So my question is, is it possible to filter out some of the interfaces in
> SNMP Plugin for collectd.
> More precisely I would like to exclude all the interfaces that contain
> expression "vlan" in their description.
>
> Currently I'm using a following configuration:
>
>     <Data "unicast_traffic64">
>         Type "if_octets64"
>         Table true
>         Instance "IF-MIB::ifDescr"
>         Values "IF-MIB::ifHCInOctets" "IF-MIB::ifHCOutOctets"
>         Scale 8
>    </Data>
>
>
Hi

dunno if u can do it in snmp plugin but u can do it using filters
http://collectd.org/wiki/index.php/Chains



More information about the collectd mailing list