[rrd-users] rrdcgi: parameter problem
Beat Zahnd
beat.zahnd at phim.unibe.ch
Tue Dec 17 12:59:15 MET 2002
Hello all,
I use rrdcgi in a unusual way. The cgi called from httpd is a shell
script generating some http headers and calling the rrdcgi script:
$ cat pressure_plot.cgi
#!/bin/sh
echo "Pragma: no-cache"
echo "Cache-control: no-cache"
echo "Content-type: image/png"
echo ""
./pressure_plot
pressure_plot is the rrdcgi script which sends the generated image to
stdout:
$ cat pressure_plot
#!/usr/bin/rrdcgi
<RRD::GRAPH -
--imgformat PNG
--vertical-label "pressure [mbar]"
--start <RRD::CV start>
--end <RRD::CV end>
--width 705 --height 245
--logarithmic
--lower-limit 1.0e-8
--alt-autoscale
DEF:p1=../../data/balzers.rrd:pres_1:AVERAGE
DEF:p2=../../data/balzers.rrd:pres_2:AVERAGE
DEF:p3=../../data/stabil_ion.rrd:pres:AVERAGE
LINE2:p1#0000FF:ColdCathode
LINE2:p2#000000:Pirani
LINE2:p3#FF0000:Stabil-Ion
>
This fails for QUERY_STRING's with negative arguments
("start=-2h&end=0h") with the following message:
[ERROR: start time: There should be number after '-']
If i change pressure_plot to --start -<RRD::CV start> it works for
QUERY_STRING's with positive arguments.
Thanks and regards,
Beat
--
Beat ZAHND
Physics Institute
University of Bern phone +41 31 631 3466
Sidlerstrasse 5 fax +41 31 631 4405
CH-3012 Bern (Switzerland) mailto:beat.zahnd at phim.unibe.ch
http://www.phim.unibe.ch/rosina/rosina.html
http://rosetta.esa.int/
--
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