[rrd-users] rrdcgi with <RRD::GOODFOR 60> not working

Daniel Herrington danielh at ftc.agilent.com
Mon Oct 2 22:21:35 MEST 2000


Has anyone had problems getting the GOODFOR option to work with
rrdcgi?  I run the following cgi through rrdcgi to filter it, and it
returns a blank line where I had the <RRD::GOODFOR 60> option.  I
would expect some information about "last modified," etc.  Am I doing
something wrong?

Regards,
  Daniel Herrington

-- 
------------------------------------------------------------------
Agilent Technologies          Email: danielh at ftc.agilent.com
4380 S. Ziegler Road 	      Phone: 970-288-0661                 
MS 72			      Fax:   970-288-6580                 
Fort Collins, CO  80525-9790  http://www.agilent.com
------------------------------------------------------------------



testrrd.cgi:
------------
#!/usr/local/rrdtool-1.0.28/bin/rrdcgi
<HTML>
<HEAD><TITLE>Vital Signs</TITLE></HEAD>
 <BODY>
   <RRD::GOODFOR 60>
   <center>
   Current Time:<RRD::TIME::NOW %c>
   <p>
   Last  Update:<RRD::TIME::LAST /home/httpd/html/rrds/battery.rrd %c>
   <H1>Batteries</H1>
    <RRD::GRAPH /home/httpd/html/gifs/battery.gif
     --imginfo '<IMG SRC=/gifs/battery.gif>'
     --start -1d --end now
     --lower-limit 8
     --upper-limit 16
     --rigid
     --lazy
     --width 600
     --height 300
     DEF:battery1=/home/httpd/html/rrds/battery.rrd:bat1:AVERAGE
     DEF:battery2=/home/httpd/html/rrds/battery.rrd:bat2:AVERAGE
     LINE2:battery1#ff0000:Battery1
     LINE2:battery2#0000ff:Battery2
    >
   </center>
 </BODY>
</HTML>



result of running "rrdcgi --filter testrrd.cgi":
------------------------------------------------
<HTML>
<HEAD><TITLE>Vital Signs</TITLE></HEAD>
 <BODY>
   
   <center>
   Current Time:Mon Oct  2 14:18:10 2000
   <p>
   Last  Update:Mon Oct  2 14:15:06 2000
   <H1>Batteries</H1>
    <IMG SRC=/gifs/battery.gif>
   </center>
 </BODY>
</HTML>


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