[collectd] Complex data flow filtering.

Domagoj Mikac domagoj.mikac at metronet.hr
Thu Aug 20 16:12:28 CEST 2009


Hi Sergey, 

If you are using rrdtool as an output plugin, the solution below might
help you:

LoadPlugin match_regex
<Chain "PostCache">
        <Rule "write_ethernet">
                <Match "regex">
                        TypeInstance "[Ee]thernet"
                </Match>
	        <Target "write">
	                 Plugin "rrdtool"
	        </Target>
        </Rule>

        # default target
        Target "stop"
</Chain>



On Thu, 2009-08-20 at 17:41 +0400, Sergey Vinogradov wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi, list.
> Is there any way to set up a complex filter to control data gathered by
> snmp plugin? Here's the thing: I want to get ifInOctets and ifOutOctets
> only from interfaces with ifType = ethernetCsmacd(6) or
> gigabitEthernet(117). I've read man page repeatedly, but nothing came to
> my mind. Any ideas?
> 
> - --
> wbr,
> Boo
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkqNUocACgkQCt8hfbw1Gpa26QCdF9/xl/Al+mGqpBpPDhNUmxKJ
> q9kAn0DHXuU6K3YfccV4K5cihYjEOUfy
> =dvpy
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd



More information about the collectd mailing list