[collectd] collectd chains

lftgl table v.lftgl at googlemail.com
Fri Sep 18 11:07:44 CEST 2009


 thats all funny

i play around with collectd chains and collect values for just one server
(bm-64-21.server.live)

now i'd like to collect cpu-values for "cpu-0" with a new hostname
(prechache.server.live), by using a PreChacheChain

configuration:
TypesDB "/opt/collectd/share/collectd/types.db"
TypesDB "/opt/collectd/share/collectd/custom_types.db"
PluginDir "/opt/collectd/lib/collectd"
FQDNLookup "true"
PIDFile "/opt/collectd/var/run/collectd.pid"
BaseDir "/opt/collectd/var/lib/collectd"
Hostname "bm-64-21.server.live"

LoadPlugin rrdcached
<Plugin rrdcached>
        DaemonAddress "bm-64-21.server.live"
        DataDir "/opt/collectd/var/lib/collectd/rrd"
        CreateFiles true
        CollectStatistics true
</Plugin>

LoadPlugin logfile
<Plugin logfile>
        LogLevel "debug"
        File "/opt/collectd/var/log/collectd.log"
        Timestamp "true"
</Plugin>

LoadPlugin network
<Plugin network>
        Listen "10.10.9.21" "25926"
</Plugin>

PreCacheChain "TestPreCache"
LoadPlugin match_regex
LoadPlugin target_set

<Chain "TestPreCache">

        <Rule "testrule1">
                <Match "regex">
                        Host "^bm-64-21.server.live$"
                        Plugin "^cpu$"
                        PluginInstance "^0$"
                        Type "^cpu$"
                        TypeInstance "idle$"
                </Match>
                <Target "set">
                        Host "prechache.server.live"
                </Target>

        </Rule>

</Chain>

i would expect just one file in the folder
"/opt/collectd/var/lib/collectd/rrd/prechache.server.live"
prechache.server.live/cpu-0/cpu-idle.rrd ,
but there are lots of files and the daemon still collects values for
bm-64-21.server.live/cpu-0/cpu-idle.rrd


ls -1d  /opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/*
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-0
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-1
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-2
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-3
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-4
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-5
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-6

ls -1d  /opt/collectd/var/lib/collectd/rrd/prechache.server.live/*
/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-0
/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-1
/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-2
/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-3
/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-4
.. and many more plugins, but not the complete list like in
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/




when i try to use PostChacheChains, the collectd cannot establish a
connection to the rrdcached

logfile: read-function of plugin `rrdcached' failed. Will suspend it for 80
seconds.


any explanations, or did i just misconfigured the chains ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090918/42472fa8/attachment-0001.htm 


More information about the collectd mailing list