[collectd] Can't write csv or rrd files, only log file

Richard Shade rshade at rightscale.com
Mon Mar 31 06:10:47 CEST 2008


Scott,
Is there anything in /usr/lib/collectd or are all your plugins in
/usr/lib64/collectd?

On Sun, Mar 30, 2008 at 11:01 PM, Scott Harris <collectd at webhounds.net>
wrote:

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



-- 
Thanks,

Richard Shade
RightScale
http://www.rightscale.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20080330/f92cfad8/attachment-0001.htm 


More information about the collectd mailing list