<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&#39;d like to collect cpu-values for &quot;cpu-0&quot; with a new hostname (prechache.server.live), by using a PreChacheChain<br>
<br>configuration:<br>TypesDB &quot;/opt/collectd/share/collectd/types.db&quot;<br>TypesDB &quot;/opt/collectd/share/collectd/custom_types.db&quot;<br>PluginDir &quot;/opt/collectd/lib/collectd&quot;<br>FQDNLookup &quot;true&quot;<br>
PIDFile &quot;/opt/collectd/var/run/collectd.pid&quot;<br>BaseDir &quot;/opt/collectd/var/lib/collectd&quot;<br>Hostname &quot;bm-64-21.server.live&quot;<br><br>LoadPlugin rrdcached<br>&lt;Plugin rrdcached&gt;<br>        DaemonAddress &quot;bm-64-21.server.live&quot;<br>
        DataDir &quot;/opt/collectd/var/lib/collectd/rrd&quot;<br>        CreateFiles true<br>        CollectStatistics true<br>&lt;/Plugin&gt;<br><br>LoadPlugin logfile<br>&lt;Plugin logfile&gt;<br>        LogLevel &quot;debug&quot;<br>
        File &quot;/opt/collectd/var/log/collectd.log&quot;<br>        Timestamp &quot;true&quot;<br>&lt;/Plugin&gt;<br><br>LoadPlugin network<br>&lt;Plugin network&gt;<br>        Listen &quot;10.10.9.21&quot; &quot;25926&quot;<br>
&lt;/Plugin&gt;<br><br>PreCacheChain &quot;TestPreCache&quot;<br>LoadPlugin match_regex<br>LoadPlugin target_set<br><br>&lt;Chain &quot;TestPreCache&quot;&gt;<br><br>        &lt;Rule &quot;testrule1&quot;&gt;<br>                &lt;Match &quot;regex&quot;&gt;<br>
                        Host &quot;^bm-64-21.server.live$&quot;<br>                        Plugin &quot;^cpu$&quot;<br>                        PluginInstance &quot;^0$&quot;<br>                        Type &quot;^cpu$&quot;<br>
                        TypeInstance &quot;idle$&quot;<br>                &lt;/Match&gt;<br>                &lt;Target &quot;set&quot;&gt;<br>                        Host &quot;prechache.server.live&quot;<br>                &lt;/Target&gt;<br>
<br>        &lt;/Rule&gt;<br><br>&lt;/Chain&gt;<br><br>i would expect just one file in the folder &quot;/opt/collectd/var/lib/collectd/rrd/prechache.server.live&quot; <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&#39; failed. Will suspend it for 80 seconds.<br><br><br>any explanations, or did i just misconfigured the chains ?<br>