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

  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.

    hth
    Mirko


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: