RE: [cricket-users] FIX: grapher.cgi broken with rrdtool 1.0.9

From: Phil Pierotti (phil.pierotti@QUOKKA.com)
Date: Wed Jan 05 2000 - 19:15:04 PST


(sigh)
Ok, that's
        percent ell eff
not
        percent one eff

That works fine!
Thanks,
Phil P

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

----
             ICH LIEBE RICH - I`m really crazy about having dough.
----------------------------------------------------------------------------
----
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 (_/

> -----Original Message----- > From: Michael S. Fischer [mailto:michael@auctionwatch.com] > Sent: Wednesday, January 05, 2000 6:47 PM > To: 'Phil Pierotti'; 'cricket-users@onelist.com' > Subject: RE: [cricket-users] FIX: grapher.cgi broken with > rrdtool 1.0.9 > > > I found the problem by simply peppering "warn;" statements all over > grapher.cgi, running it through Apache and checking the > error_log until I > found the offending code fragment. > > You might want to try the same. > > And yes, I meant "%lf"...brain tired...too much work.... > > --Michael > > -----Original Message----- > From: Phil Pierotti [mailto:phil.pierotti@QUOKKA.com] > Sent: Wednesday, January 05, 2000 6:44 PM > To: 'cricket-users@onelist.com' > Subject: RE: [cricket-users] FIX: grapher.cgi broken with > rrdtool 1.0.9 > > > you mean %f ? > Well, I tried that , and it's still broken. > (sigh) > > Thanks, > Phil P > > -------------------------------------------------------------- > -------------- > ---- > The Space People will contact us when they can make > money by doing so. > -------------------------------------------------------------- > -------------- > ---- > 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 > (_/ > > > > > -----Original Message----- > > From: Michael S. Fischer [mailto:michael@auctionwatch.com] > > Sent: Wednesday, January 05, 2000 6:14 PM > > To: 'Phil Pierotti'; Michael S. Fischer; 'cricket-users@onelist.com' > > Subject: RE: [cricket-users] FIX: grapher.cgi broken with > > rrdtool 1.0.9 > > > > > > My guess is that somehow the text file got munged via email. > > Basically, the > > changes are around lines 884-885; change %d to %ld and you'll > > be all set. > > :-) > > > > --Michael > > > > -----Original Message----- > > From: Phil Pierotti [mailto:phil.pierotti@QUOKKA.com] > > Sent: Wednesday, January 05, 2000 5:57 PM > > To: 'Michael S. Fischer'; 'cricket-users@onelist.com' > > Subject: RE: [cricket-users] FIX: grapher.cgi broken with > > rrdtool 1.0.9 > > > > > > when I apply the patch to 0.70 , why do I get > > > > patching file `cricket-0.70/grapher.cgi' > > patch: **** malformed patch at line 14: > > "DEF:ds1=$rrdfile:ds$dsnum:MAX", > > > > Thanks, > > Phil P > > > > -------------------------------------------------------------- > > -------------- > > ---- > > When you love someone all your saved wishes start > coming out. > > -- Elizabeth Bowen > > -------------------------------------------------------------- > > -------------- > > ---- > > 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 > > (_/ > > > > > > > > > -----Original Message----- > > > From: Michael S. Fischer [mailto:michael@auctionwatch.com] > > > Sent: Wednesday, January 05, 2000 3:09 PM > > > To: 'cricket-users@onelist.com' > > > Subject: [cricket-users] FIX: grapher.cgi broken with > rrdtool 1.0.9 > > > > > > > > > It turns out that grapher.cgi in Cricket 0.70 exploits a bug > > > in rrdtool > > > 1.0.9 that causes the graphing component to crash, leading to > > > virtually > > > silent but deadly errors when attempting to access graphs. > > > This is probably > > > the reason many of you are getting "Premature end of script > > > headers" or > > > similar errors in your server logs. > > > > > > A patch follows. Note that my patch includes the 'use lib' > > statement > > > necessary if you used the standard install for rrdtool in > > > /usr/local; you > > > may not need this at your site. > > > > > > ---CUT HERE--- > > > > > > --- grapher.cgi.0.70 Wed Jan 5 14:39:33 2000 > > > +++ grapher.cgi Wed Jan 5 14:40:23 2000 > > > @@ -43,6 +43,7 @@ > > > } > > > > > > use lib "$Common::global::gInstallRoot/lib"; > > > +use lib "/usr/local/rrdtool/lib/perl"; > > > > > > use CGI qw(fatalsToBrowser); > > > use RRDs; > > > @@ -880,8 +881,8 @@ > > > > > > "DEF:ds1=$rrdfile:ds$dsnum:MAX", > > > > > > "CDEF:sds0=ds0,$scale", > > > > > > "CDEF:sds1=ds1,$scale", > > > - > > > "PRINT:sds0:AVERAGE:\%f", > > > - > > > "PRINT:sds1:MAX:\%f" > > > ); > > > + > > > "PRINT:sds0:AVERAGE:\%lf", > > > + > > > "PRINT:sds1:MAX:\%lf" ); > > > > > > ($mmax, > > > undef, undef) = > > > RRDs::graph @args; > > > ---CUT HERE--- > > > > > > -- > > > Michael S. Fischer <michael@auctionwatch.com> > > > Sr. Engineer, AuctionWatch.com > > > Phone: +1 650 808 5842 FAX: +1 650 875 0915 > > > require Std::Disclaimer; > > > "From the bricks of shame is built the hope"--Alan Wilder > > > > > > --------------------------- 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> > > > > > > -------------------------------------------------------------- > > > ---------- > > > > > > -- > > > > > > > > > ============================================================== > > > ========== > > > To UNSUBSCRIBE from this community, send an email to: > > > cricket-users-unsubscribe@onelist.com > > > and reply to the confirmation email we send you. > > > ============================================================== > > > ========== > > > > > > > --------------------------- 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> > > -------------------------------------------------------------- > ---------- >

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

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



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