[rrd-users] Problem with filenames under rrdcgi
Peter Woell
peter.woell at db.com
Tue Mar 14 16:29:15 MET 2000
Hi,
when I try to generate graphs with rrdcgi I have problems with the
filename of the rrd.db
when I have a db-file like "10.5.230.5_129.rrd" then rrdcgi don't work
If I change the name of the db-file to "A10.5.230.5_129.rrd" than it
works
I use rrdtool-1.0.13
Thanks
Peter
DEUTSCHE BANK AG
Global Technology and Services
NWD / NCC
Alfred-Herrhausen-Allee 16-24
D-65760 Eschborn
+49 (69) 910-66906 Phone
+49 (69) 910-67664 Fax
e-Mail: peter.woell at db.com
-----------------
example:
erzeuge-graph.cgi < test.txt
(offline mode: enter name=value pairs on standard input)
Speicherzugriffsfehler
---- test.txt ----
RRD_NAME=10.5.230.5_129.rrd
RRD_START_DAY=13
RRD_START_MONTH=03
RRD_START_YEAR=2000
RRD_START_HOUR=00
RRD_START_MIN=01
RRD_END_DAY=15
RRD_END_MONTH=03
RRD_END_YEAR=2000
RRD_END_HOUR=00
RRD_END_MIN=01
---- erzeuge-graph.cgi ----
#!/usr/local/rrdtool/bin/rrdcgi
<HTML>
<HEAD><TITLE>RRDCGI </TITLE></HEAD>
<BODY><CENTER>
<H1><RRD::CV RRD_NAME></H1>
<H1>Utilization from <RRD::CV RRD_START_DAY>.<RRD::CV
RRD_START_MONTH>.<RRD::CV RRD_START_YEAR> <RRD::CV
RRD_START_HOUR>:<RRD::CV RRD_START_MIN> to <RRD::CV
RRD_END_DAY>.<RRD::CV RRD_END_MONTH>.<RRD::CV RRD_END_YEAR> <RRD::CV
RRD_END_HOUR>:<RRD::CV RRD_END_MIN></H1>
</CENTER>
<HR>
<P>
<RRD::GRAPH <RRD::CV::PATH RRD_NAME>.<RRD::CV RRD_START_DAY><RRD::CV
RRD_START_MONTH><RRD::CV RRD_START_YEAR><RRD::CV RRD_START_HOUR><RRD::CV
RRD_START_MIN>.<RRD::CV RRD_END_DAY><RRD::CV RRD_END_MONTH><RRD::CV
RRD_END_YEAR><RRD::CV RRD_END_HOUR><RRD::CV RRD_END_MIN>.png
--title "Utilization <RRD::CV::QUOTE RRD_NAME> from <RRD::CV
RRD_START_DAY>.<RRD::CV RRD_START_MONTH>.<RRD::CV RRD_START_YEAR>
<RRD::CV RRD_START_HOUR>:<RRD::CV RRD_START_MIN> to <RRD::CV
RRD_END_DAY>.<RRD::CV RRD_END_MONTH>.<RRD::CV RRD_END_YEAR> <RRD::CV
RRD_END_HOUR>:<RRD::CV RRD_END_MIN>"
-v "bits/s"
-w 900
-h 300
-s "<RRD::CV RRD_START_DAY>.<RRD::CV RRD_START_MONTH>.<RRD::CV
RRD_START_YEAR> <RRD::CV RRD_START_HOUR>:<RRD::CV RRD_START_MIN>"
-e "<RRD::CV RRD_END_DAY>.<RRD::CV RRD_END_MONTH>.<RRD::CV
RRD_END_YEAR> <RRD::CV RRD_END_HOUR>:<RRD::CV RRD_END_MIN>"
DEF:in=../data/<RRD::CV::QUOTE RRD_NAME>:input:AVERAGE
CDEF:in8=in,8,*
DEF:out=../data/<RRD::CV::QUOTE RRD_NAME>:output:AVERAGE
CDEF:out8=out,8,*
DEF:bandwith=../data/<RRD::CV::QUOTE RRD_NAME>:bandwith:AVERAGE
LINE3:in8#00FF00:"in"\l
LINE1:out8#0000FF:"out"\l
LINE1:bandwith#FF0000:"Bandwith"\l
GPRINT:in8:MAX:"Max In %le bits/s "
GPRINT:in8:AVERAGE:"Average In %le bits/s "
GPRINT:in8:LAST:"Current In %le bits/s "\l
GPRINT:out8:MAX:"Max Out %le bits/s "
GPRINT:out8:AVERAGE:"Average Out %le bits/s "
GPRINT:out8:LAST:"Current Out %le bits/s ">
</P>
</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
More information about the rrd-users
mailing list