[rrd-users] rrdcgi dynamic size of images

Stefan Bachmaier stefan at tracefog.de
Sat Apr 16 14:13:57 MEST 2005


Hello, i use a self scripted rrdcgi for use on my servers, it looks like
this:

<P><RRD::GRAPH /var/www/intern/system-rrd/memory_<RRD::CV RRD_TIME>.png
          --imginfo '<IMG SRC=/system-rrd/%s WIDTH=%lu HEIGHT=%lu >'
          -a PNG
          -w 1000 -h 230
          -s -1<RRD::CV RRD_TIME>
          -t "Memory/Swap"
          ....

It would be nice to get the size of the browser window (frame) and put it
in the -w parameter, so the generated image on the page doesn't produce a
horizontal scrollbar (and is the same size of the frame, as big as
possible). The parser of the file is rrdcgi and so javascript won't work,
because the image is processed on the server.

I can't find any solution about this on the web..

Greetings, Stefan

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