Re: [rrd-users] Creating dynamic graphs in HTML

This is a discussion on Re: [rrd-users] Creating dynamic graphs in HTML within the RRD Users forums, part of the Networking and Network Related category; Hi, Its not about "stucturing" arguments or things like that... you need to change the output-mode of ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-22-2007
Rene Fritzsche
 
Posts: n/a
Default Re: [rrd-users] Creating dynamic graphs in HTML

Hi,

Its not about "stucturing" arguments or things like that...
you need to change the output-mode of your STDOUT-queue to binary..
this seems to be necessary on some systems (dont ask why, but i had
to do this on Debian and on FreeBSD...)

the second solution wont work either on systems like this - so
i replaced the following lines

> print $cgi->header(-type=>'image/png');
> RRDs::graph...


with

print "Content-type: image/png\n\n";
binmode STDOUT
RRDs::graph...

> This basically works for me (rrdtool-1.2.12). I structure my arguments
> a little differently for readability, but I use "-" for output and it
> works. For reference here is my code:
>

....
> RRDs::graph(@args, @DEFS, @DRAW, @GPRINTS);


>> print $cgi->header(-type=>'image/png');
>> RRDs::graph ("-","-s","-1week","-a","PNG","--width","600","--
>> height","400","DEF:vtot=file.rrd:total:MAX","AREA: vtot#00FFFF:Total","DE
>> F:vused=file.rrd:active:MAX","AREA:vused#0000FF:Us ed");


HTH
Rene

__________________________________________________ ___________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071...d=000000000066

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0