[rrd-users] Logarithmic graphs with rrdcgi

Beat Zahnd beat.zahnd at phim.unibe.ch
Fri Feb 3 14:29:16 MET 2006


Hello,

I use rrdtool since v1.0.xx to graph temperatures and pressures on our 
various test facilities. Now I'm trying to update rrdcgi.

The syntax for rrdcgi seems to have changed a bit as my old stuff is not 
working with  1.2.12. an example:

> #!/usr/local/bin/rrdcgi
> 
> <RRD::GRAPH -
>         --imgformat PNG
>         --vertical-label "pressure [mbar]"
>         --start <RRD::CV::QUOTE start>
>         --end <RRD::CV::QUOTE end>
>         --width <RRD::CV width> --height <RRD::CV height>
>         --logarithmic
>         DEF:p3=/var/scada/balzers.rrd:pres_3:AVERAGE
>         DEF:p5=/var/scada/stabil_ion.rrd:pres:AVERAGE
>         LINE2:p3#0000FF:"ColdCathode Chamber"
>         LINE2:p5#FF0000:"Stabil-Ion"
>         COMMENT:"\n"
>         COMMENT:"Graph updated: <RRD::TIME::NOW "%a, %d %b %Y %H:%M:%S %Z">\r">

As you can see, I do not let rrdcgi create any HTML and the image output 
is feed directly to stdout. This script is called by a wrapper script 
which is the real cgi called by the webserver:

> #!/bin/sh
> 
> echo "Pragma: no-cache"
> echo "Cache-control: no-cache"
> echo "Content-Type: image/png"
> echo "Expires: 0"
> echo ""
> 
> ./pressure_2_plot

This 'real time setup worked perfectly. But not with v1.2.12... I can 
get rrdcgi to generate plots if the script looks like this:

> #!/usr/local/bin/rrdcgi
> 
> <RRD::GRAPH out.png
>         --vertical-label "pressure [mbar]"
>         --start <RRD::CV::QUOTE start>
>         --end <RRD::CV::QUOTE end>
>         --width <RRD::CV width> --height <RRD::CV height>
>         DEF:p3=/var/scada/balzers.rrd:pres_3:AVERAGE
>         DEF:p5=/var/scada/stabil_ion.rrd:pres:AVERAGE
>         LINE2:p3#0000FF:"ColdCathode Chamber"
>         LINE2:p5#FF0000:"Stabil-Ion">

Now, rrdcgi is used in its usual way, creating a file and generating an 
<img> tag on stdout. OK. BUT: as soon as I try to use the logarithmic 
parameter or the COMMENT stuff, no image is created, no error message 
somewhere, just nothing ...

Any Ideas?

Beat

-- 
Beat ZAHND
Physics Institute
Space Research & Planetary Sciences
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

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list