[rrd-users] Re: CGI in Tcl using Rrd::graph

Kathy Kessey kkessey at excitehome.net
Tue Dec 11 21:12:44 MET 2001



I did this with a perl CGI, not Tcl, but it works and is so simple the
syntax by language shouldn't be an issue.  just print "Content-Type:
image/gif" and then make your graph call to dump the graph to stdout.  You
can always create a dummy gif and cat it to stdout as a test before adding
the rrd graphing functionality to see that it works.

hope this helps -
Kathy

---------------------------------------------------
Kathy Kessey                  kkessey at excitehome.net
Excite at Home                   650.556.5087

On Tue, 11 Dec 2001, Maarten van Gelder wrote:

>
> Hello rrd user,
>
> I 'd like to create a CGI in Tcl that returns a graph to a web-browser,
> without first writing it to disk.  RRD comes with a Tcl interface to
> rrdtool.  I managed to create a simple CGI script with the Rrd package that
> can return a graph to a web browser by having the script create a graph on
> disk and using an <img src> tag that references this file.  I know one can
> make Rrd::graph write the image to stdout, by using '-' instead of a
> filename.  Can anyone tell me if this feature can be used to return an
> image to a web browser?  If so, what would be the Tcl syntax for doing so?
>
> Thank you
>
> Maarten van Gelder
> mvgelder at vt.edu
>
>
> --
> 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
>
>


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