<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
</HEAD>
<BODY>
<BR>
The following Chain is supposed to filter out all Loopback interfaces while all others are forwarded to rrdtool plugin.<BR>
Unfortunately, I am doing something wrong, and cannot figure out where is the problem. <BR>
Please help. <BR>
<BR>
<Chain "Main"><BR>
<Rule "ignore_Loopback"><BR>
<Match "regex"><BR>
Plugininstance "^snmp$"<BR>
TypeInstance "Loopback"<BR>
</Match><BR>
Target "stop"<BR>
</Rule><BR>
<BR>
<BR>
#################################################3<BR>
# default target<BR>
<Target "write"><BR>
Plugin "rrdtool"<BR>
</Target><BR>
</Chain><BR>
<BR>
<BR>
<BR>
<BR>
On Sat, 2009-08-15 at 16:47 +0200, Mariusz Gronczewski wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
2009/8/15 Domagoj Mikac <<A HREF="mailto:domagoj.mikac@metronet.hr">domagoj.mikac@metronet.hr</A>>:
> 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
<A HREF="http://collectd.org/wiki/index.php/Chains">http://collectd.org/wiki/index.php/Chains</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>