[drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA?

Ruttenberg, Tanya Tanya.Ruttenberg at ssa.gov
Wed May 16 13:58:11 EDT 2007


I don't have that code.  Here's what I have starting at line 2601

  2601  sub DBChooser
  2602  {
  2603      my ( %rrd, %evt );
  2604      my $file;
  2605      foreach $file ( sort(@rrdfiles) ) {
  2606          if ( $file =~ /^(.+)\/\/(.+)\.rrd$/ ) {
  2607              $rrd{$file} = $datadirs{$1} . " " . $2;
  2608          } else {
  2609              die "Bad (rrd) filename in DBChooser: $file\n";
  2610          }
  2611      }

-----Original Message-----
From: Andy Mayhew [mailto:am at moka5.com] 
Sent: Wednesday, May 16, 2007 1:46 PM
To: Ruttenberg, Tanya
Cc: drraw-users at taranis.org
Subject: Re: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find
RRA?

I've been making this change to the drraw.cgi around line 2608:
$ diff drraw.cgi-orig drraw.cgi-mine
2608c2608,2609
<                 = RRDs::fetch($file, $cf, '-s', 0, '-e', 0);
---
 >                 = RRDs::fetch($file, $cf);
 > #                = RRDs::fetch($file, $cf, '-s', 0, '-e', 0);

The problem appears to be that rrd is actually returning a error of an
invalid data/time range for the file.

--Andy

Ruttenberg, Tanya wrote:
> I can't believe I just did that.  Check out the *real* version number 
> in the subject line.
> 
>
------------------------------------------------------------------------
>     *From:* drraw-users-bounces at taranis.org
>     [mailto:drraw-users-bounces at taranis.org] *On Behalf Of
*Ruttenberg,
>     Tanya
>     *Sent:* Wednesday, May 16, 2007 1:34 PM
>     *To:* drraw-users at taranis.org
>     *Subject:* [drraw-users] Drraw-2.23a -- cannot find RRA?
> 
>     Hi,
> 
>     I just attempted a long-overdue upgrade of drraw.  I am on
Solaris8
>     with perl 5.8.7 and RRDtool 1.2.12.
> 
>     When I go to create a new graph, I click on "Add DB to data
sources"
>     I get an error such as this:
> 
>     No data source for "AVERAGE" RRA found in file
>     "/data/cricket-data//1min/ssa-cam-ncc-l0b905_port10_if.rrd"!
> 
>     The RRA is definitely there as indicated by rrdtool info
>     <filename>.  I get the same error no matter which RRD file I
choose
>     and no matter which RRA I choose.
> 
>     Here is the error from error.log:
> 
>     [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value
in
>     concatenation (.) or string at
/usr/local/apache2/cgi-bin/drraw.cgi
>     line 2607.
> 
>     [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value
in
>     concatenation (.) or string at
/usr/local/apache2/cgi-bin/drraw.cgi
>     line 2607.
> 
>     I have fiddled with %datadirs.  Here is the latest definition of
it:
> 
>     %datadirs = ('/data/cricket-data'  => '[Label1] ',
>                  '/local/data/cricket-data' => '[Label2] ',
>                 );
> 
>     I've also tried this:
> 
>     %datadirs = ('/local/data/cricket-data' => '[cricket] ',);
> 
>     Same outcome every time.
>     ???
> 
>     Tanya Ruttenberg - RSIS Contractor
>     OTSO/DNE/NMPEB
>     tanya.ruttenberg at ssa.gov
>     410-965-9605
>     SMC Home Page: ___http://smc.ba.ssa.gov_
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> drraw-users mailing list
> drraw-users at taranis.org
> http://web.taranis.org/mailman/listinfo/drraw-users


More information about the drraw-users mailing list