[collectd] filetr config

Andrés J. Díaz ajdiaz at connectical.com
Thu Jun 4 20:58:41 CEST 2009


Hi János

I can try your config to check the problem and works fine for me, this
is my test config:

<Chain "PostCache">
  <Rule "foo">
    <Match "regex">
     Host "^localhost$"
      Type "^load$"
      Plugin "^load$"
    </Match>
    <Target "write">
        Plugin "network"
    </Target>
  </Rule>
  <Target "write">
  Plugin "rrdtool"
  </Target>
</Chain>

And collectd send only data for specified match, using collectd.py I can see:

[1244139572] localhost/load/load [(1, 0.059999999999999998), (1,
0.27000000000000002), (1, 0.23000000000000001)]
[1244139582] localhost/load/load [(1, 0.12), (1, 0.28000000000000003),
(1, 0.23999999999999999)]
--------------------------------------------------------------------------------

But  I cannot get data about cpu plugin, for example (and it's enabled :D)

Maybe you forget the match_regex? It's a common error for me :)
If not, What version of collectd are you using? (I do the test in 4.7 branch)
Do check the debug output?

I hope to help you.

Regards,
  Andrés

2009/6/4 János Prepuk <prepuk.janos at gmail.com>:
> Hi all
>
> I would liek to try out the filter with the next config:
> PostCacheChain "PostCache"
> <Chain "PostCache">
>  <Rule "to_summpoller">
>   <Match "regex">
>      Host "^name.server.com$"
>      Plugin "^snmp$"
>      Type "^current_connections$"
>   </Match>
>   <Target "write">
>    Plugin "rrdcached"
>    Plugin "network"
>   </Target>
>  </Rule>
>  <Target "write">
>   Plugin "rrdcached"
>  </Target>
> </Chain>
>
> I would like to send the data "current_connections" about the
> "name.server.com" to the server via network plugin, and all datas of all
> hosts store locally (rrdcached). But with this config the client sends all
> datas about every host to the server via network plugin. (The rrdcached
> works well.)
> It seems the collectd ignore this config.
>
> How could I filter the network plugin?
>
> Thank you.
>
> Regards,
>
> Janos Prepuk
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
>
>



More information about the collectd mailing list