[rrd-users] rrd support in collectl

Mark Seger Mark.Seger at hp.com
Tue Sep 4 17:07:37 CEST 2007

A while ago I had mentioned a system monitoring tool I developed a 
number of years ago called collectl - 
http://sourceforge.net/projects/collectl and I just wanted to let people 
on this list know I've added support for rrd, at least sort of.  
Collectl has the ability to generate data in plottable format as 
space-separated fields and so is easily plotted with tools like 
gnuplot.  However, this is not the format rrd likes and so by added 2 
new switches, one to change the time format and the other to change the 
field separator you can now directly genereate data that can be passed 
directly to the 'update' function.

For example, interactively you can do the following and perhaps pipe it 
to a simply tool that calls the rrd update function for each line passed 
to it:

[root at cag-dl380-01 root]# collectl --sep : --utc -P
waiting for 1 second sample...

if you don't want the headers you can always suppress them with the -oH 
switch.  Also note you can generate this data continuously as log files 
which will automatically roll over and be retained for a week or 
whatever other number of days you like.  These samples were generated 
every second, but  you can also use any other time interval of your 

The samples above are only for cpu, network and disk summary but you can 
also select a number of other types of data and even specific devices 
like cpus, disk, nics, and a couple of others.  There is a more detailed 
description on the collectl's souceforge webpage and in the man pages.

My longer term thought is to add a switch to collectl to allow you to 
point it to an rrd database and have it update it automatically, but I 
thought it might be a good thing to first put it out there the way it is 
to first see if there is any interest and second to get feedback on the 
best way to do this.

Anyhow, I'm posting this here with the hopes of getting feedback from 
real rrdtool users.


More information about the rrd-users mailing list