[collectd] rrdcached+collectd

Bastian Ballmann bastian.ballmann at inf.ethz.ch
Mon Mar 4 16:40:22 CET 2013


Hi,

i had the same error a few weeks ago and guess that the user rrdcached 
is running under (usually rrdcached) has no write permission to the rrd 
files.

Greets

Basti


Am 04.03.2013 14:52, schrieb Benjamin Wang (gendwang):
>
> Hi,
>
>    I have updated my configuration as following:
>
> LoadPlugin rrdcached
>
> <Plugin rrdcached>
>
>         DaemonAddress "unix:/tmp/rrdcached.sock"
>
>         DataDir "/opt/collectd/var/lib/collectd"
>
>         CreateFiles true
>
>         CollectStatistics false
>
> </Plugin>
>
> The rrdcached start script is as following:
>
> rrdcached -F -b /opt/collectd/var/lib/collectd -j 
> /root/tools/rrdcached/cached -p /root/tools/rrdcached/rrdcached.pid  
> -l unix:/tmp/rrdcached.sock -l 10.74.125.141
>
> Now the log is as following:
>
> [2013-03-04 21:48:17] rrdcached plugin: rrdc_update 
> (/opt/collectd/var/lib/collectd/10.74.125.141/memory/memory-used.rrd, 
> [1362404897:4414480384.000000], 1) failed with status -1.
>
> [2013-03-04 21:48:17] Filter subsystem: Built-in target `write': 
> Dispatching value to all write plugins failed with status -1.
>
> [2013-03-04 21:48:17] rrdcached plugin: rrdc_update 
> (/opt/collectd/var/lib/collectd/10.74.125.141/memory/memory-buffered.rrd, 
> [1362404897:363593728.000000], 1) failed with status -1.
>
> [2013-03-04 21:48:17] Filter subsystem: Built-in target `write': 
> Dispatching value to all write plugins failed with status -1.
>
> [2013-03-04 21:48:17] rrdcached plugin: rrdc_update 
> (/opt/collectd/var/lib/collectd/10.74.125.141/cpu-0/cpu-user.rrd, 
> [1362404897:9553163], 1) failed with status -1.
>
> [2013-03-04 21:48:17] Filter subsystem: Built-in target `write': 
> Dispatching value to all write plugins failed with status -1.
>
> B.R.
>
> Benjamin Wang
>
> *From:*Cyril Feraudet [mailto:collectd at feraudet.com]
> *Sent:* 2013?3?4?21:46
> *To:* Benjamin Wang (gendwang)
> *Cc:* collectd at verplant.org; jmauro at anti.net; jmauro at autidot.net; Yang 
> Zhou (yangzho)
> *Subject:* Re: [collectd] rrdcached+collectd
>
> You don't need both rrdtool and rrdcached plugin.
>
> Cyril
>
> http://perfwatcher.org/
>
> On 4 mars 2013, at 14:38, Benjamin Wang (gendwang) <gendwang at cisco.com 
> <mailto:gendwang at cisco.com>> wrote:
>
>
>
> Hi,
>
>   I try to setup rrdcached and collectd in one VM(Redhat 6.2). 
> rrdcached also listens on the network port for remote query.
>
> rrdtool: 1.4.7
>
> collectd: 5.2.0
>
> The collectd.conf is as following:
>
> LoadPlugin rrdcached
>
> LoadPlugin rrdtool
>
> <Plugin rrdcached>
>
>         DaemonAddress "unix:/tmp/rrdcached.sock"
>
>         DataDir "/root/tools/rrdcached"
>
>         CreateFiles true
>
> </Plugin>
>
> <Plugin rrdtool>
>
>         DataDir "/opt/collectd/var/lib/collectd"
>
> </Plugin>
>
> The rrdcached start script is as following:
>
> rrdcached -F -b /root/tools/rrdcached -j /root/tools/rrdcached/cached 
> -p /root/tools/rrdcached/rrdcached.pid  -l unix:/tmp/rrdcached.sock -l 
> 10.74.125.141
>
> But the collectd log always show the error:
>
> [2013-03-04 21:24:56] rrdcached plugin: rrdc_update 
> (/root/tools/rrdcached/10.74.125.141/memory/memory-used.rrd, 
> [1362403496:4414574592.000000], 1) failed with status -1.
>
> [2013-03-04 21:24:56] rrdcached plugin: rrdc_update 
> (/root/tools/rrdcached/10.74.125.141/memory/memory-buffered.rrd, 
> [1362403496:363573248.000000], 1) failed with status -1.
>
> [2013-03-04 21:24:56] rrdcached plugin: rrdc_update 
> (/root/tools/rrdcached/10.74.125.141/memory/memory-cached.rrd, 
> [1362403496:1231032320.000000], 1) failed with status -1.
>
> I have gone through the old threads and have tried "chmod 777 
> /root/tools/rrdcached". But it doesn't work.
>
> What is the problem?
>
> B.R.
>
> Benjamin Wang
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org <mailto:collectd at verplant.org>
> http://mailman.verplant.org/listinfo/collectd
>
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd


-- 
ETH Zürich, Bastian Ballmann, IT Service Group
CAB E 44.1, Universitätsstrasse 6, CH-8092 Zürich
Tel +41 44 632 72 04

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130304/6e59faf3/attachment-0001.html>


More information about the collectd mailing list