[rrd-users] Re: printing last update and last values in web pages via rrdcgi?

Tobias Oetiker oetiker at ee.ethz.ch
Tue Sep 28 20:41:48 MEST 1999


Today you sent me mail regarding [rrd-users] Re: printing last update and...:

*>  > From: Alex van den Bogaerdt
*>  > >         AREA:line1#008000:"whatever it is  "
*>  > >         GPRINT:line1:MAX:"%10.2lf"
*>  > >         GPRINT:line1:MIN:"%10.2lf"
*>  > >         GPRINT:line1:AVERAGE:"%10.2lf"
*>  > >         GPRINT:line1:LAST:"%10.2lf\\n"
*>  > >         STACK:line4#C0C000:"and something else  "
*>  > >         GPRINT:line4:MAX:"%10.2lf"
*>  > >         GPRINT:line4:MIN:"%10.2lf"
*>  > >         GPRINT:line4:AVERAGE:"%10.2lf"
*>  > >         GPRINT:line4:LAST:"%10.2lf\\n"
*>  > > 
*>  > > Modify and align.
*>  > > 
*>  > Duh, forgot about the kb/s stuff:
*>  > 
*>  > GPRINT....MAX:"%10.2lf %sb/s"
*>  > GPRINT....MIN:"%10.2lf %Sb/s"
*>  > GPRINT....AVERAGE:"%10.2lf %Sb/s"
*>  > GPRINT....LAST:"%10.2lf %Sb/s"
*>  > 
*>  > %s will scale to blank/k/m/g/whatever. %S will use the same scale.
*> 
*> Well, that's cool but not what I want.  
*> 
*> Like Bryce as root <root at zen.ics.uwe.ac.uk> asked the other day,
*> can rrdcgi to generate *HTML* like the following?  If so, how?
*> 
*>  The statistics were last updated <B>Tuesday, 28 Sep 1999 at 13:25</B>
*>  [...]
*>  <TD ALIGN=right>
*>    <SMALL>Average<FONT COLOR=#00cc00>&nbsp;In:</FONT></SMALL>
*>  </TD>
*>  <TD ALIGN=right>
*>    <SMALL>1012.1 kbits/s</SMALL>
*>  </TD>

sure ... jsut replace GPRINT by PRINT

cheers
tobi
*> 
*> later
*> steve
*> - - -
*> systems guy
*> wiscnet.net
*> 
*> --
*> * 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