[collectd] collect Snmp exclude

Domagoj Mikac domagoj.mikac at metronet.hr
Mon Aug 17 17:43:44 CEST 2009


The following Chain is supposed to filter out all Loopback interfaces
while all others are forwarded to rrdtool plugin.
Unfortunately, I am doing something wrong, and cannot figure out where
is the problem. 
Please help. 

<Chain "Main">
        <Rule "ignore_Loopback">
                <Match "regex">
                        Plugininstance "^snmp$"
                        TypeInstance "Loopback"
                </Match>
                Target "stop"
        </Rule>
        

        #################################################3
        # default target
        <Target "write">
                 Plugin "rrdtool"
        </Target>
</Chain>




On Sat, 2009-08-15 at 16:47 +0200, Mariusz Gronczewski wrote:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090817/582d59dd/attachment.htm 


More information about the collectd mailing list