[rrd-users] Re: Text formatting.
Tobias Oetiker
oetiker at ee.ethz.ch
Thu Oct 7 08:14:53 MEST 1999
Today you sent me mail regarding [rrd-users] Re: Text formatting.:
*> > > LINE2:out_bits#0000FF:"output"
*> > > PRINT:out_bits:AVERAGE:"%3.2lf %sbits/sec ave"
*> > > PRINT:out_bits:MAX:"%3.2lf %sbits/sec max"
*> > > PRINT:out_bits:LAST:"%3.2lf %sbits/sec last\n">
*> > > <PRE>
*> > > input <RRD::PRINT 0> <RRD::PRINT 1> <RRD::PRINT 2>
*> > > output <RRD::PRINT 3> <RRD::PRINT 4> <RRD::PRINT 5>
*> > > </PRE>
*> > >
*> > > but I found that any <RRD::PRINT N> tag with values of N != 0 causes
*> > > the whole rrdcgi script to not work! (Although <RRD::PRINT 0> does
*> > > print leading spaces when necessary!)
*> > >
*> > This is strange. IMO it should work. Will try later on this week.
*> >
*>
*> I couldn't stop my mind from working so I tried it now.
*> Result: confirmation of the problem.
*>
*> I tried this script:
*> ------cut here-------
*> #!/usr/local/bin/rrdcgi
*> <HTML><HEAD><TITLE>TEST</TITLE></HEAD>
*> <BODY>
*> <RRD::GRAPH dummy.gif --title dummy
*> --imginfo ""
*> DEF:bla1=/home/rrdtool/data/time.rrd:hours:AVERAGE
*> PRINT:bla1:MAX:"%6.2lf %sxxx"
*> PRINT:bla1:MIN:"%6.2lf %sxxx"
*> PRINT:bla1:AVERAGE:"%6.2lf %sxxx"
*> DEF:bla2=/home/rrdtool/data/time.rrd:minutes:AVERAGE
*> PRINT:bla2:MAX:"%6.2lf %sxxx"
*> PRINT:bla2:MIN:"%6.2lf %sxxx"
*> PRINT:bla2:AVERAGE:"%6.2lf %sxxx"
*> >
*> <pre>
*> SS SSS SSS
*> ###.## ###.## ###.##
*> S S S
*> X X X
*> xxx xxx xxx
*> Line 1 <RRD::PRINT 0> <RRD::PRINT 1> <RRD::PRINT 2>
*> Line 2 <RRD::PRINT 3> <RRD::PRINT 4> <RRD::PRINT 5>
*> </pre>
*> </BODY></HTML>
*> ------end here-------
*>
*> and it produces the following output when run from the command line:
*> (note the seg fault!)
*>
*> -------cut here-------
*> [alex at host /home/httpd/cgi-bin]$ ./printtest.cgi < /dev/null
*> (offline mode: enter name=value pairs on standard input)
*> Content-Type: text/html
*> Content-Length: 388
*>
*> <HTML><HEAD><TITLE>TEST</TITLE></HEAD>
*> <BODY>
*>
*> <pre>
*> SS SSS SSS
*> ###.## ###.## ###.##
*> S S S
*> X X X
*> xxx xxx xxx
*> Line 1 22.08 xxx 83.33 mxxx 11.88 xxx
*> Line 2 27.50 xxx 27.50 xxx 27.50 xxx
*> </pre>
*> </BODY></HTML>
*> Segmentation fault (core dumped)
*> [alex at host /home/httpd/cgi-bin]$
*> -------end here-------
*>
*> This output is not good enough for the average httpd :-(
*>
*> "[Wed Oct 6 23:59:56 1999] access to /home/httpd/cgi-bin/printtest.cgi \
*> failed for localhost, reason: Premature end of script headers"
welll almost ... the interesting bit would be to see where in the code we
get the segfault ...
at the moment I am in a phase of recovery (having returned to my real job in
switzerland) therefore I can not realy investigat this at the moment ...
sorry
tobi
*>
*> Regards,
*> Alex
*>
*> --
*> * To unsubscribe from the rrd-users mailing list, send a message with the
*> subject: unsubscribe to rrd-users-request at list.ee.ethz.ch
*>
*>
--
______ __ _
/_ __/_ / / (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
/ // _ \/ _ \/ / TEL: +41(0)1-6325286 FAX:...1517 ICQ: 10419518
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker
--
* To unsubscribe from the rrd-users mailing list, send a message with the
subject: unsubscribe to rrd-users-request at list.ee.ethz.ch
More information about the rrd-users
mailing list