Scott, <br>Is there anything in /usr/lib/collectd or are all your plugins in /usr/lib64/collectd? <br><br><div class="gmail_quote">On Sun, Mar 30, 2008 at 11:01 PM, Scott Harris <<a href="mailto:collectd@webhounds.net">collectd@webhounds.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Howdy all,<br>
I've searched the mailing list archives, one by one ;)<br>
and can't seem to find why I'm having this issue. I can't get<br>
any of the file output plugins to work. I'm trying csv and rrd.<br>
<br>
<br>
The relevant portion of my collectd.conf has these settings:<br>
<br>
FQDNLookup true<br>
BaseDir "/var/lib/collectd"<br>
PIDFile "/var/run/collectd.pid"<br>
PluginDir "/usr/lib/collectd"<br>
TypesDB "/var/lib64/collectd/types.db"<br>
LoadPlugin csv<br>
LoadPlugin rrdtool<br>
<br>
<Plugin rrdtool><br>
DataDir "/var/lib/collectd/rrd"<br>
</Plugin><br>
<br>
<Plugin csv><br>
DataDir "/var/lib/collectd/csv"<br>
StoreRates false<br>
</Plugin><br>
<br>
All the directories for output exist and are world writable.<br>
ls -la /var/lib/collectd/<br>
total 1744<br>
drwxrwxrwx 4 root root 4096 2008-03-30 15:10 .<br>
drwxr-xr-x 51 root root 4096 2008-03-24 16:44 ..<br>
-rw-r--r-- 1 root root 1753829 2008-03-30 20:11 collectd.log<br>
drwxrwxrwx 2 root root 4096 2008-03-30 14:47 csv<br>
drwxrwxrwx 2 root root 4096 2008-03-30 15:15 rrd<br>
<br>
<br>
I've compiled with support for both plugins and verified by<br>
the output of my configure command which is:<br>
./configure --enable-rrdtool --enable-debug<br>
librrd . . . . . . yes<br>
debug . . . . . . . yes<br>
csv . . . . . . . . yes<br>
rrdtool . . . . . . yes<br>
<br>
I run manually with the following command:<br>
/usr/sbin/collectd -f -C /etc/collectd.conf<br>
<br>
And in the log that is generated I see that it is at<br>
least trying to use the rrd plugin:<br>
<br>
[2008-03-30 20:16:12] return (0)<br>
[2008-03-30 20:16:12] type = logfile, key = Timestamp, value = true<br>
[2008-03-30 20:16:12] return (0)<br>
[2008-03-30 20:16:12] type = rrdtool, key = DataDir, value =<br>
/var/lib/collectd/rrd<br>
[2008-03-30 20:16:12] return (0)<br>
[2008-03-30 20:16:12] interval_g = 10;<br>
[2008-03-30 20:16:12] hostname_g = xxx.xxx.local;<br>
[2008-03-30 20:16:12] [thread #1084229968] plugin: plugin_read_thread:<br>
Waiting on read_cond.<br>
[2008-03-30 20:16:12] [thread #1094719824] plugin: plugin_read_thread:<br>
Waiting on read_cond.<br>
[2008-03-30 20:16:12] [thread #1105209680] plugin: plugin_read_thread:<br>
Waiting on read_cond.<br>
[2008-03-30 20:16:12] [thread #1115699536] plugin: plugin_read_thread:<br>
Waiting on read_cond.<br>
[2008-03-30 20:16:12] [thread #1126189392] plugin: plugin_read_thread:<br>
Waiting on read_cond.<br>
[2008-03-30 20:16:12] Looking at /proc/partitions...<br>
[2008-03-30 20:16:12] Skipping unknown major 0<br>
[2008-03-30 20:16:12] Found disk: sda (8:0).<br>
[2008-03-30 20:16:12] Found disk: sdb (8:16).<br>
[2008-03-30 20:16:12] Skipping unknown major 253<br>
[2008-03-30 20:16:12] Skipping unknown major 253<br>
[2008-03-30 20:16:12] Found disk: sdc (8:32).<br>
[2008-03-30 20:16:12] rrdtool plugin: rrd_init: datadir =<br>
/var/lib/collectd/rrd; stepsize = 0; heartbeat = 0; rrarows = 1<br>
200; xff = 0.100000;<br>
[2008-03-30 20:16:12] plugin: plugin_read_all: Signalling `read_cond'<br>
<br>
lsof shows that the the rrdtool and csv plugin are both part of the<br>
running process:<br>
lsof -p 13061 | egrep "rrd|csv"<br>
collectd 13061 root mem REG 8,2 21423 4423827<br>
/usr/lib64/collectd/csv.so<br>
collectd 13061 root mem REG 8,2 47146 4423934<br>
/usr/lib64/collectd/rrdtool.so<br>
collectd 13061 root mem REG 8,2 230032 5963792<br>
/usr/lib64/librrd_th.so.2.0.10<br>
<br>
Next step is to start strace ;)<br>
<br>
This is Fedora Cora 8, x86_64 running kernel 2.6.24.3-34.<br>
<br>
Any help would be greatly appreciated!<br>
<br>
Thanks,<br>
<br>
Scott<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanks, <br><br>Richard Shade<br>RightScale<br><a href="http://www.rightscale.com/">http://www.rightscale.com/</a>