[collectd] rrdcached+collectd

Jeremy MAURO jmauro at antidot.net
Thu Jun 7 16:20:24 CEST 2012


Hi,

thx for the tip:
[pid 12990] <... poll resumed> )        = 0 (Timeout)
[pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, 
revents=POLLIN}])
[pid 12990] read(6, "STATS\n", 8192)    = 6
[pid 12990] write(6, "9 Statistics follow\n", 20) = 20
[pid 12990] write(6, "QueueLength: 0\nUpdatesReceived: "..., 158) = 158
[pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, 
revents=POLLIN}])
[pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 108
[pid 12990] write(6, "-1 Permission denied\n", 21) = 21
[pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, 
revents=POLLIN}])
[pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 100
[pid 12990] write(6, "-1 Permission denied\n", 21) = 21
[pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, 
revents=POLLIN}])
[pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 117
[pid 12990] write(6, "-1 Permission denied\n", 21) = 21
[pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, 
revents=POLLIN}])
[pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 113
[pid 12990] write(6, "-1 Permission denied\n", 21) = 21
[pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, 
revents=POLLIN}])
[pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 113
[pid 12990] write(6, "-1 Permission denied\n", 21) = 21
[pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, 
revents=POLLIN}])
[pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 115

But I did a 'chmod 777 -R /var/lib/collectd/rrd', how could that be 
possible? And what's more, both deamon run as 'root'.





Regards,
JM


On 06/07/12 15:28, Cyril Feraudet wrote:
>> Hi everyone,
>>
>>
>> I am trying to setup collectd+rrdcached on a debian squeeze, so here is
>> the setup:
>>
>> [root at XXX]:/ # dpkg -l |egrep 'collectd|rrdca'
>> ii  collectd
>> 4.10.1-1+squeeze2            statistics collection and monitoring daemon
>> ii  collectd-core
>> 4.10.1-1+squeeze2            statistics collection and monitoring daemon
>> (core system)
>> ii  collectd-utils
>> 4.10.1-1+squeeze2            statistics collection and monitoring daemon
>> (utilities)
>> ii  libcollectdclient0
>> 4.10.1-1+squeeze2            client library for collectd's control interface
>> ii  rrdcached
>> 1.4.3-1                      data caching daemon for RRDtool
>>
>>
>> So here are the configuration files:
>> [root at XXX]:/ # cat /etc/collectd.d/rrdcached.conf
>> LoadPlugin rrdcached
>>
>>           DaemonAddress "unix:/var/run/rrdcached.sock"
>>           DataDir "/var/lib/collectd/rrd"
>>           CreateFiles true
>>
>> [root at XXX]:/# ps -edf|grep rrdc
>> root     11661     1  0 15:11 ?        00:00:00 /usr/bin/rrdcached -l
>> unix:/var/run/rrdcached.sock -j /var/lib/rrdcached/journal/ -F -b
>> /var/lib/rrdcached/db/ -B -p /var/run/rrdcached.pid
>>
>>
>> And when I am trying to start collectd here are the error log:
>> Jun  7 15:11:07 extranet collectd[11692]: rrdcached plugin: rrdc_update
>> (/var/lib/collectd/rrd/XXX/processes/ps_state-sleeping.rrd,
>> [1339074667:107.000000], 1) failed with status -1.
>> Jun  7 15:11:07 extranet collectd[11692]: rrdcached plugin: rrdc_update
>> (/var/lib/collectd/rrd/XXX/processes/ps_state-zombies.rrd,
>> [1339074667:0.000000], 1) failed with status -1.
>>
>> For every plugin defined in collectd.
>>
>>
>> So anyone has any idea?
>>
>>
>>
>
> Hi alone,
>
> The quickest method IMHO to know why is to use strace -s 100 -f -p 
> <pid_of_rrdcached>
>
> I've already try to make error from rrdcached available in collectd 
> logs, but rrdcached need to be patched ...
>
> Cyril
>
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120607/928880e0/attachment.html>


More information about the collectd mailing list