<br> thats all funny<br><br>i play around with collectd chains and collect values for just one server (bm-64-21.server.live)<br><br>now i'd like to collect cpu-values for "cpu-0" with a new hostname (prechache.server.live), by using a PreChacheChain<br>
<br>configuration:<br>TypesDB "/opt/collectd/share/collectd/types.db"<br>TypesDB "/opt/collectd/share/collectd/custom_types.db"<br>PluginDir "/opt/collectd/lib/collectd"<br>FQDNLookup "true"<br>
PIDFile "/opt/collectd/var/run/collectd.pid"<br>BaseDir "/opt/collectd/var/lib/collectd"<br>Hostname "bm-64-21.server.live"<br><br>LoadPlugin rrdcached<br><Plugin rrdcached><br> DaemonAddress "bm-64-21.server.live"<br>
DataDir "/opt/collectd/var/lib/collectd/rrd"<br> CreateFiles true<br> CollectStatistics true<br></Plugin><br><br>LoadPlugin logfile<br><Plugin logfile><br> LogLevel "debug"<br>
File "/opt/collectd/var/log/collectd.log"<br> Timestamp "true"<br></Plugin><br><br>LoadPlugin network<br><Plugin network><br> Listen "10.10.9.21" "25926"<br>
</Plugin><br><br>PreCacheChain "TestPreCache"<br>LoadPlugin match_regex<br>LoadPlugin target_set<br><br><Chain "TestPreCache"><br><br> <Rule "testrule1"><br> <Match "regex"><br>
Host "^bm-64-21.server.live$"<br> Plugin "^cpu$"<br> PluginInstance "^0$"<br> Type "^cpu$"<br>
TypeInstance "idle$"<br> </Match><br> <Target "set"><br> Host "prechache.server.live"<br> </Target><br>
<br> </Rule><br><br></Chain><br><br>i would expect just one file in the folder "/opt/collectd/var/lib/collectd/rrd/prechache.server.live" <br>prechache.server.live/cpu-0/cpu-idle.rrd ,<br>but there are lots of files and the daemon still collects values for bm-64-21.server.live/cpu-0/cpu-idle.rrd<br>
<br><br>ls -1d /opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/*<br>/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-0<br>/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-1<br>/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-2<br>
/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-3<br>/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-4<br>/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-5<br>/opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/cpu-6<br>
<br>ls -1d /opt/collectd/var/lib/collectd/rrd/prechache.server.live/*<br>/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-0<br>/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-1<br>/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-2<br>
/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-3<br>/opt/collectd/var/lib/collectd/rrd/prechache.server.live/cpu-4<br>.. and many more plugins, but not the complete list like in /opt/collectd/var/lib/collectd/rrd/bm-64-21.server.live/<br>
<br><br><br><br>when i try to use PostChacheChains, the collectd cannot establish a connection to the rrdcached<br><br>logfile: read-function of plugin `rrdcached' failed. Will suspend it for 80 seconds.<br><br><br>any explanations, or did i just misconfigured the chains ?<br>