[rrd-users] display graphs generated with python bindings in html

Jean-Yves Avenard jyavenard at gmail.com
Tue Dec 15 00:34:33 CET 2009


Hi

2009/12/15 Clemens Weninger <clemens_weninger at gmx.net>:
> Hello everybody,
> I am trying to generate dynamic graphs with rrdtool python bindings
> and display them with a django web page.
> I don't want to save the created picture, but create them on the fly.
>
> In PHP there was the way of calling rrdtool graph - <options> and
> putting header("Content-type: image/gif"); in front of it.
>
> Is there a similar way with the python bindings to direct the output of
> rrdtool.graph() directly to the web page?

You should have a look at the pylons framework ; which let you do
stuff like that quite easily.

Otherwise, you can't modify html headers directly, as least not as
easily as with PHP

Jean-Yves



More information about the rrd-users mailing list