collectd + drraw + rrdtool
If you’re trying to use ddraw and rrdtool on Ubuntu 8.04 you have to make some minor changes on the drraw.cgi to get it work. I guess the rrdtool API has changed and since drraw’s latest realease is from 2005 there is something to do.
There error drraw prints out is “You must specify at least one RRA to add!”
drraw.cgi 2.1.3 <1.185.2.18>
Perl 5.008008
CGI.pm 3.15
RRDs.pm 1.2019
Here is the diff for drraw.cgi
1c1
< #! /usr/bin/perl -T
—
> #! /usr/local/bin/perl -T
2607c2607
< = RRDs::fetch($file, $cf, 0, 0);
—
> = RRDs::fetch($file, $cf, ‘-s’, 0, ‘-e’, 0);
2 comments so far
Leave a reply
![Waitekere Ranges [DSC_3331.JPG] Waitekere Ranges [DSC_3331.JPG]](http://farm3.static.flickr.com/2672/4142614436_d384031ae3_t.jpg)
![Auckland CBD [DSC_3266.JPG] Auckland CBD [DSC_3266.JPG]](http://farm3.static.flickr.com/2566/4132692494_2c467295fc_t.jpg)
![Anawhata [DSC_3204.JPG] Anawhata [DSC_3204.JPG]](http://farm3.static.flickr.com/2514/4120960235_8112f43c2e_t.jpg)

I’m sorry, I’m a little unclear on what you are saying to do. (I have the exact problem that this is designed to solve)
John, edit the file drraw.cgi, change the first line and let it point to your perl-binary for example
#! /usr/bin/perl -T
Then search for the line
= RRDs::fetch($file, $cf, ‘-s’, 0, ‘-e’, 0);
and replace it with
= RRDs::fetch($file, $cf, 0, 0);
Then run the graph configuration again.
hth
Mirko