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. ========================================================================
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:08 PST