[rrd-users] Creating dynamic graphs in HTML

Mike Rykowski rykowski at northwestern.edu
Tue Nov 20 22:07:49 CET 2007


Hello,

I'm trying to create inline graphs using rrdtool 1.2.23 (RRDs).

I have something like this in a perl script:

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","DEF:vused=file.rrd:active:MAX","AREA:vused#0000FF:Used");

If I substitute "-" with a file name, it produces a file that I can
view, but when I try to do this inline I get an error saying there are
errors in the image.

I used to do this with gif format in 1.0.49 and it worked just fine.

Any ideas? 

TIA
-- 
Mike Rykowski
NU-IT Telecommunications and Network Services




More information about the rrd-users mailing list