[rrd-users] rrdcgi options not working..

Ole Turvoll ole.turvoll at db.com
Wed Jan 21 10:27:50 MET 2004


I can't get my options, goodfor or refresh to work for the rrdcgi script 
(adapter from example 2):

I have tried -rg300 etc...

----- Start CGI script ----
#!/usr/bin/rrdcgi --goodfor 300 --refresh
<HTML>
<HEAD>
  <TITLE>RRDCGI Demo</TITLE>
  <META HTTP-EQUIV="Refresh" CONTENT="150">
</HEAD>
<BODY>
<H1>RRDCGI Example Page for <RRD::CV RRD_NAME></H1>
<H2>Selection</H2>
<FORM><INPUT NAME=RRD_NAME TYPE=RADIO VALUE=sedsb1> sedsb1,
        <INPUT NAME=RRD_NAME TYPE=RADIO VALUE=sedsb2> sedsb2.
        <INPUT TYPE=SUBMIT></FORM>
<H2>Graph</H2>
<P>
        <RRD::GRAPH /srv/www/htdocs/images/graphs/<RRD::CV::PATH 
RRD_NAME>.gif
        --lazy
        --title "Ping Time for "<RRD::CV::QUOTE RRD_NAME>
        --imginfo '<IMG SRC=/images/graphs/Ping.gif>'
        --start now-1h
        --end now

        DEF:ping=/home/Ole/db/test/day/<RRD::CV::PATH 
RRD_NAME>.rrd:Ping:MAX
        LINE2:ping#ff0000:"Ping time"
        >
    >
</P>
</BODY>
</HTML>

----- end CGI script -----

I get the following error from apache my  %tail -f 
/var/log/httpd/error_log:

/usr/bin/rrdcgi: unrecognized option `--goodfor 300 --refresh'
[Wed Jan 21 08:28:52 2004] [error] [client 127.0.0.2] malformed header 
from script. Bad header=unknown commandline option '--: 
/srv/www/cgi-bin/rrd/graph3.cg

Ole at omlette:~/src/cgi-bin/rrd> rrdtool -V
RRDtool 1.0.40  Copyright 1997-2001 by Tobias Oetiker <tobi at oetiker.ch>
...


Please help thanks... :-)

Ole 

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