[rrd-users] Re: Fix for Tcl binding

Tobias Oetiker oetiker at ee.ethz.ch
Fri Oct 7 09:22:04 MEST 2005


Hi Dave,

thanks for the tcl patch ...

> 2.)
>
> I've messed with mailgraph and written a simple cgi using rrdtool.
> What you need is an API that lets a perl/tcl/etc. binding get the
> output of rrdgraph directly -- skip the file stuff.  After all, if
> I have to write an image file and then turn around a read it so the
> cgi can deliver the image to the client, why bother with a specialized
> .so?  ...Just run the rrdgraph program.   Yes, I know it's a little
> more efficient to load the .so once rather than run the program multiple
> times... but it would be even better if the whole "writing the image
> to a file" could be avoided in the first place.  It also avoids the whole
> business of picking a suitable "tmp" directory.
>
> Even the other functions (rrdlast, rrdfetch, etc.) would be easier to
> deal with if they did not insist on writing the result to stdout.
>
> I think providing some interface to avoid the "write to stdout" or
> "write a file" would be appreciated by all who want to embed rrd.
> Certainly with .png files, it's possible to capture the image without
> writing a file; I haven't looked, but it can't be too hard for the
> others.

the api can already write to an arbitrary fd ... check out the code
...

maybe this helps ...

cheers
tobi

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286

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