[rrd-users] RRDCGI: RRD::TIME inside graphs
Hendrik Visage
hvisage at is.co.za
Thu Apr 6 15:20:40 MEST 2000
Hi there,
Below a script I'm using for generating a graph & web page.
The problem I'm experiencing, is the <RRD::TIME:LAST...> INSIDE the <RRD:GRAPH>.
Outside it it's working fine, but not in side (I'd like to know when the graph
itself was generated)
GReetz
HEndrik
------------------------------------------------------------------------
#!/bin/rrdcgi -r --goodfor 10
<RRD::GOODFOR -10>
<RRD::SETENV TZ Africa/Johannesburg>
<HTML>
<BODY>
<H1>report Page</H1>
<H1>Current date: <RRD::TIME::NOW "%C"></H1>
<H2>Incoming Bandwidth daily</H2>
<RRD::GRAPH /gifs/report-in-d.gif --imginfo
'<IMG SRC=/%s WIDTH=%lu HEIGHT=%lu >' -l 0 --start end-1d
DEF:d_in_http_src=/RRDs/report.rrd:in_http_src:AVERAGE
CDEF:in_http_src=d_in_http_src,8,*
COMMENT:"Last update: <RRD::TIME:LAST /RRDs/report.rrd "%C">\n"
AREA:in_http_src#00fff0:in_http_src
GPRINT:in_http_src:AVERAGE:"avg %lf %s\n"
>
--
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