[rrd-users] RRDCGI example for manual

hendrik visage hvisage at is.co.za
Fri Jan 14 12:40:34 MET 2000


After my strugglings ;^)

EXAMPLE n:

This example shows how to handle the case where the RRD, graphs and
cgi-bins are seperate directories

#!/.../bin/rrdcgi
<HTML>
<HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>
<BODY>
<H1>RRDCGI test Page</H1>
<P>
<RRD::GRAPH
 /.../web/gifs/testhvt.gif
 --imginfo '<IMG SRC=/.../gifs/%s WIDTH=%lu HEIGHT=%lu >'
 --lazy --start -1d --end now
 DEF:http_src=/.../rrds/test.rrd:http_src:AVERAGE
AREA:http_src#00ff00:http_src
>
</P>
</BODY>
</HTML>

Note 1: Replace /.../ with the relevant directories
Note 2: The SRC=/.../gifs should be paths from the view of the
webserver/browser


Greetz
Hendrik

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



More information about the rrd-users mailing list