[rrd-users] Re: How to call rrd_cgi.exe correctly?

Tobias Oetiker oetiker at ee.ethz.ch
Mon Aug 21 08:53:49 MEST 2000


Today you sent me mail regarding [rrd-users] How to call rrd_cgi.exe correctly?:

*> 
*> Sorry for this probably simple newby question.
*> 
*> How do I call the rrd_cgi examples (what is the accompanying URL) from the
*> rrd_cgi manual?
*> I'm fresh to rrd and cgi and wasn't able to figure this out from the
*> manuals.
*> 
*> I've tried to make an example of my own (like example 1) but it doesn't show
*> up yet.
*> 
*> #!/usr/local/bin/rrd_cgi
*>  <HTML>
*>  <HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>
*>  <BODY>
*>  <H1>RRDCGI Example Page</H1>
*>  <P>
*>  <RRD::GRAPH demo.gif --lazy --title="Radius Requests"
*> 	DEF:TAR=radius1.rrd:TotAccReq:AVERAGE
*> 	DEF:TAA=radius1.rrd:TotAccAcc:AVERAGE 
*> 	DEF:TARej=radius1.rrd:TotAccRej:AVERAGE
*> 	AREA:TAR#00FF00:"Total Access Requests"
*> 	LINE1:TAA#0000FF:"Total Access Accepts"
*> 	LINE1:TARej#FF0000:"Total Access Rejects"
*>  </P>
*> <H2> END </END>
*>  </BODY>
*>  </HTML>

the problem is that your html is broken ... 

try:


 #!/usr/local/bin/rrd_cgi
  <HTML>
  <HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>
  <BODY>
  <H1>RRDCGI Example Page</H1>
  <P>
  <RRD::GRAPH demo.gif --lazy --title="Radius Requests"
    DEF:TAR=radius1.rrd:TotAccReq:AVERAGE
    DEF:TAA=radius1.rrd:TotAccAcc:AVERAGE
    DEF:TARej=radius1.rrd:TotAccRej:AVERAGE
    AREA:TAR#00FF00:"Total Access Requests"
    LINE1:TAA#0000FF:"Total Access Accepts"
    LINE1:TARej#FF0000:"Total Access Rejects"
  >
  </P>
  <H2> END </H2>
  </BODY>
  </HTML>

cheers
tobi

-- 
 ______    __   _
/_  __/_  / /  (_) 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


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list