[drraw-users] No data source for "AVERAGE" rra found in file?

Christophe Kalt kalt at taranis.org
Wed Mar 7 05:43:59 PST 2007


On Mar 07, Steve Barnes wrote:
| I'm trying to get started with drraw (2.2a2) and am having a bit of a
| problem. At this time I'm not sure if I'm just being very short-sighted
| or whether I have an incompatibility problem of sorts.
| 
| I have a plethora of rrd's created using NagiosGraph v0.8.2_1 and
| rrdtool v1.2.19.

You're in luck, someone just submitted a fix for your problem.
Try the attached diff.
-------------- next part --------------
--- drraw.cgi.dist      Mon Feb 26 17:49:30 2007
+++ drraw.cgi   Tue Feb 27 11:15:11 2007
@@ -2691,8 +2691,9 @@

     foreach $cf ( param('db_RRAS') ) {
         foreach $file ( param('db_FILES') ) {
+            my ($last) = RRDs::last($file);
             my ($start, $step, $DSnames, $data)
-                = RRDs::fetch($file, $cf, '-s', 0, '-e', 0);
+                = RRDs::fetch($file, $cf, '-s', $last, '-e', $last);
             my $ds;
             if ( defined($DSnames) && scalar(@{$DSnames}) > 0 ) {
                 foreach $ds ( @{$DSnames} ) {


More information about the drraw-users mailing list