<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Can I see you rrdcached command line ?</p>
<p>Le 07.06.2012 16:57, Jeremy MAURO a écrit :</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><span style="font-family: 'Trebuchet MS';">Here are the permissions:<br /> # ls -al /var/run/*sock<br /> srwxrwxrwx 1 root root 0 Jun 7 16:52 /var/run/rrdcached.sock<br /><br /> but still having the issue :(<br /><br /> [pid 14433] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 14433] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 14433] read(6, "update /var/lib/collectd/rrd/ext"..., 8192) = 101<br /> [pid 14433] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 14433] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 14433] read(6, "update /var/lib/collectd/rrd/ext"..., 8192) = 100<br /> [pid 14433] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 14433] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 14433] read(6, "update /var/lib/collectd/rrd/ext"..., 8192) = 94<br /> [pid 14433] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 14433] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 0 (Timeout)<br /> [pid 14433] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500 <br /> [pid 14254] ) = 0 (Timeout)<br /> [pid 14254] poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000 <br /> [pid 14433] ) = 0 (Timeout)<br /> [pid 14433] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 0 (Timeout)<br /> [pid 14433] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500 <br /> [pid 14254] ) = 0 (Timeout)<br /> [pid 14254] poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000 <br /> [pid 14433] ) = 0 (Timeout)<br /><br /><br /><br /><br /><br /><br /></span>
<pre class="moz-signature">Regards,
JM
</pre>
On 06/07/12 16:46, Cyril Feraudet wrote:
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">
<p>This look like a permission problem on the unix socket of rrdcached ...</p>
<blockquote style="padding-left: 5px; border-left: #1010ff 2px solid; margin-left: 5px; width: 100%;">Hi,<br /><br /> thx for the tip:<br /> [pid 12990] ) = 0 (Timeout)<br /> [pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 12990] read(6, "STATS\n", 8192) = 6<br /> [pid 12990] write(6, "9 Statistics follow\n", 20) = 20<br /> [pid 12990] write(6, "QueueLength: 0\nUpdatesReceived: "..., 158) = 158<br /> [pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 108<br /> [pid 12990] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 100<br /> [pid 12990] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 117<br /> [pid 12990] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 113<br /> [pid 12990] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 113<br /> [pid 12990] write(6, "-1 Permission denied\n", 21) = 21<br /> [pid 12990] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])<br /> [pid 12990] read(6, "update /var/lib/collectd/rrd/XXX"..., 8192) = 115<br /><br /> 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'.<br /><br /><br /><br /><br /><br />
<pre class="moz-signature">Regards,
JM
</pre>
On 06/07/12 15:28, Cyril Feraudet wrote:
<blockquote style="padding-left: 5px; border-left: #1010ff 2px solid; margin-left: 5px; width: 100%;">
<blockquote style="padding-left: 5px; margin-left: 5px; width: 100%;">
<pre>Hi everyone,
I am trying to setup collectd+rrdcached on a debian squeeze, so here is
the setup:
[root@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@XXX]:/ # cat /etc/collectd.d/rrdcached.conf
LoadPlugin rrdcached
DaemonAddress "unix:/var/run/rrdcached.sock"
DataDir "/var/lib/collectd/rrd"
CreateFiles true
[root@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?
</pre>
</blockquote>
<p>Hi alone,</p>
<p>The quickest method IMHO to know why is to use strace -s 100 -f -p </p>
<p>I've already try to make error from rrdcached available in collectd logs, but rrdcached need to be patched ...</p>
<p>Cyril</p>
<div> </div>
<br /><fieldset class="mimeAttachmentHeader"></fieldset><br />
<pre>_______________________________________________
collectd mailing list
<a class="moz-txt-link-abbreviated" href="mailto:collectd@verplant.org">collectd@verplant.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.verplant.org/listinfo/collectd">http://mailman.verplant.org/listinfo/collectd</a>
</pre>
</blockquote>
</blockquote>
<p> </p>
<div> </div>
</blockquote>
</blockquote>
<p> </p>
<div> </div>
</body></html>