Re: [cricket-users] ugrading to cricket ver 0.71

From: shanman@shanman.net
Date: Mon Jan 10 2000 - 08:44:09 PST


From: shanman@shanman.net

I had the same problem.

Tracked it down to the line (in grapher.cgi):

my($vname, $dss) = split(/\*:\s*/, $v, 2);

Which I changed to (the previous version):

my($vname, $dss) = split(/:\s+/, $v, 2);

I don't think that any of our ds lines start with an *, so the first
pattern match never matches anything.

Shannon

On Mon, 10 Jan 2000, Phil Pierotti wrote:

> From: Phil Pierotti <phil.pierotti@QUOKKA.com>
>
> Ok, so I upgraded RRDTool from 1.09 to 1.10 - and everything is fine.
> Then I installed cricket 0.71 (previously 0.70 with "crashing grapher" fix).
> Not fine.
> Everything works except I get empty graphs.
> Error messages in httpd/error_log saying things like....
>
> Operator or semicolon missing before %numDSs at
> /home/cricket/public_html/./grapher.cgi line 1412.
> Ambiguous use of % resolved as operator % at
> /home/cricket/public_html/./grapher.cgi line 1412.
> [10-Jan-2000 08:29:46*] Failed to get dslist from view name.
> Use of uninitialized value at
> /home/cricket/public_html/./grapher.cgi line 795.
> Operator or semicolon missing before %numDSs at
> /home/cricket/public_html/./grapher.cgi line 1412.
> Ambiguous use of % resolved as operator % at
> /home/cricket/public_html/./grapher.cgi line 1412.
> Operator or semicolon missing before %numDSs at
> /home/cricket/public_html/./grapher.cgi line 1412.
> Ambiguous use of % resolved as operator % at
> /home/cricket/public_html/./grapher.cgi line 1412.
> Use of uninitialized value at
> /home/cricket/public_html/./grapher.cgi line 1194.
> Use of uninitialized value at
> /home/cricket/public_html/./grapher.cgi line 1194.
> Use of uninitialized value at
> /home/cricket/public_html/./grapher.cgi line 1278.
> Use of uninitialized value at
> /home/cricket/public_html/./grapher.cgi line 1278.
> [10-Jan-2000 08:29:48*] No graph to make?
> [10-Jan-2000 08:29:48*] No graph to make?
>
> And then , the usual
> [10-Jan-2000 08:29:48*] Actual graph width (595) differs from
> width-hint (596).
> [10-Jan-2000 08:29:48*] Actual graph height (255) differs from
> height-hint (267).
> [10-Jan-2000 08:29:48*] Actual graph width (595) differs from
> width-hint (596).
> [10-Jan-2000 08:29:48*] Actual graph height (255) differs from
> height-hint (267).
>
>
> The code where line 1412 is says:
>
> while ($i < ($ct-1)) {
> $i++;
> my($nameme);
> # 1412 follows
> if ($scaled{$dslist[$i %numDSs]}) {
> $nameme = "sds";
> } else {
> $nameme = "ds";
> }
> push @{$dsnames[$i % $numDSs]}, "$nameme$i";
> push @{$mxnames[$i % $numDSs]}, "mx$i";
> }
>
>
> Looks like a missing $ after the % on line 1412 - however I tried that and
> it didn't fix the problem.
>
> Ideas, anyone?
>
> Thanks,
> Phil P
> ----------------------------------------------------------------------------
> ----
> Speak, friend, and enter. If you don`t press enter, nothing happens.
> ----------------------------------------------------------------------------
> ----
> Quokka Sports, Inc. Phil Pierotti
> Ground Floor, Senior Network Engineer
> 525 Brannan St, phil.pierotti@quokka.com
> San Francisco CA 94107 Ph: +1 415 977 2390
> Fx: +1 415 908 1841
>
> o_o
> http://www.quokka.com/ / )o
> (_/
>
>
>
> --------------------------- ONElist Sponsor ----------------------------
>
> Hey Freelancers: Find your next project through JobSwarm!
> You can even make money in your sleep by referring friends.
> <a href=" http://clickme.onelist.com/ad/jobswarm1 ">Click Here</a>
>
> ------------------------------------------------------------------------
>

--------------------------- ONElist Sponsor ----------------------------

Independent contractors: Find your next project gig through JobSwarm!
        You can even make money by referring friends.
<a href=" http://clickme.onelist.com/ad/jobswarm2 ">Click Here</a>

------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:09 PST