[rrd-users] Re: Recursive use of rrdcgi ?

Simon Hobson linux at thehobsons.co.uk
Thu Jul 6 16:51:19 MEST 2006


Tobias Oetiker wrote:

>this should work fine ...

Hmm, I must have been doing something wrong earlier because I 
couldn't get any variable substitutions to work - but that is working 
now. I think I must just be having an 'off day' - it's darned hot in 
the office this week :-(


I am still stuck with "#!/usr/bin/rrdcgi" appearing on the pages, or 
if I don't head the included file with this then I just get the 
contents of the file instead of the graph. Eg :

Mainfile contains :
><RRD::SETVAR timescale 31d>
><RRD::SETVAR timescaletitle "Previous Month">
><p><RRD::INCLUDE graph-single.inc></p>

Included file contains :
>#!/usr/bin/rrdcgi
><RRD::GRAPH /var/www/graphs/test-<RRD::GETVAR timescale>.png --lazy
>   --title="Global I/F througput - <RRD::GETVAR timescaletitle>" -v 
>"bytes/second"
>   --end now --start end-<RRD::GETVAR timescale>
>   --lazy
>   --width 600 --height 200
>   --imginfo '<IMG SRC=../graphs/%s width=%lu height=%lu>'
>   DEF:globinave=/var/rrd/netstats.rrd:global-in:AVERAGE
>   DEF:globinmax=/var/rrd/netstats.rrd:global-in:MAX
>...


As written the output contains :

><p>#!/usr/bin/rrdcgi
><IMG SRC=../graphs/test-31d.png width=697 height=349>
></p>

or if I delete "#!/usr/bin/rrdcgi" I get :

><p><RRD::GRAPH /var/www/graphs/test-31d.png --lazy
>   --title="Global I/F througput - Previous Month" -v "bytes/second"
>   --end now --start end-31d
>   --lazy
>   --width 600 --height 200
>   --imginfo '<IMG SRC=../graphs/%s width=%lu height=%lu>'
>   DEF:globinave=/var/rrd/netstats.rrd:global-in:AVERAGE
>   DEF:globinmax=/var/rrd/netstats.rrd:global-in:MAX
>...


Looking though the changelist, I can't see anything obviously 
relating to this between 1.2.11 and 1.2.13.

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