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 <>

Perl 5.008008 3.15 1.2019

Here is the diff for drraw.cgi

< #! /usr/bin/perl -T

> #! /usr/local/bin/perl -T
<           = RRDs::fetch($file, $cf, 0, 0);

>                 = RRDs::fetch($file, $cf, ‘-s’, 0, ‘-e’, 0);

2 comments so far

  1. John on

    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)

  2. excowboy on

    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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: