[collectd] rrdcached plugin question

Mark Moseley moseleymark at gmail.com
Thu Jan 14 01:04:19 CET 2010


I just started messing with rrdcached+collectd, so it's not impossible
that I've obtusely missed something in the docs.

* Is it possible to set RRARows and RRATimespan in the rrdcached
plugin like you can for rrdtool? If I try using them, collectd
complains that:

[2010-01-13 18:06:36] Plugin `rrdcached' did not register for value `RRARows'.
[2010-01-13 18:06:36] Plugin `rrdcached' did not register for value
`RRATimespan'.
[2010-01-13 18:06:36] Plugin `rrdcached' did not register for value
`RRATimespan'.
[2010-01-13 18:06:36] Plugin `rrdcached' did not register for value
`RRATimespan'.
[2010-01-13 18:06:36] Plugin `rrdcached' did not register for value
`RRATimespan'.
[2010-01-13 18:06:36] Plugin `rrdcached' did not register for value
`RRATimespan'.

And any rrd files created have the usual collectd defaults, instead of
what I put. And they only seem to be registered in src/rrdtool.c. I
also tried turning on the rrdtool plugin but without a "DataDir" in
the hopes it might have some effect. Is there a trick here that I'm
missing? We've got non-technical folks running reports from our rrd
data, and they balk at the built-in intervals, so I've got the
following because it falls on nice, grok-able datapoints, spaced by 5
mins, 1 day, etc.

Here's my rrdcached (pointers most welcome):

/usr/bin/rrdcached -l unix:/var/run/rrdcached/rrdcached.sock -b
/var/lib/collectd/rrd2 -j /var/run/rrdcached -w 3600 -z 3600 -f 7200
-t 10 -p /var/run/rrdcached/rrdcached.pid

I've been working with a super stripped-down collectd.conf, to try to
rule out other things. Here it is:

# Hostname	"localhost"
FQDNLookup	true
BaseDir		"/var/lib/collectd"
PIDFile		"/var/run/collectd/collectd.pid"
PluginDir	"/usr/lib/collectd"
TypesDB		"/usr/share/collectd/types.db"
Interval	30
ReadThreads	20

LoadPlugin logfile

<Plugin logfile>
	LogLevel error
	File STDOUT
	Timestamp true
</Plugin>

LoadPlugin network
# LoadPlugin rrdtool
LoadPlugin rrdcached


<Plugin network>
	Listen "10.20.2.2" "25826"
	TimeToLive 128
</Plugin>


# <Plugin rrdtool>
#	DataDir	"/var/lib/collectd/rrd"
#	CacheTimeout	300
#	CacheFlush	600
#	RandomTimeout	60
#
#	# StepSize	30
#	# HeartBeat	120
# 	WritesPerSecond 500
# 	RRARows 2400
# 	RRATimespan 4800
# 	RRATimespan 144000
# 	RRATimespan 720000
# 	RRATimespan 4320000
# 	RRATimespan 43200000
# </Plugin>

<Plugin rrdcached>
	DataDir	"/var/lib/collectd/rrd2"
	CreateFiles	true
	DaemonAddress	"unix:/var/run/rrdcached/rrdcached.sock"

	# StepSize	30
	# HeartBeat	120
	WritesPerSecond 500
	RRARows 2400
	RRATimespan 4800
	RRATimespan 144000
	RRATimespan 720000
	RRATimespan 4320000
	RRATimespan 43200000
</Plugin>



More information about the collectd mailing list