[rrd-users] Newbie Help - RRDs::Graph and STDOUT
Block, Ryan FTL
RBlock at citco.com
Wed May 21 23:26:00 MEST 2003
I have a cgi script that is writing the output of RRDs::graph to STDOUT.
When I run the cgi from my web browser, all I get is a "cannot be displayed
error". The script runs fine from command line.
Any suggestions on how to accomplish this would be appreciated. Here is a
snippet of my code that is failing.
print "Content-type: image/png\n\n";
RRDs::graph("-", @args);
my $ERR = RRDs::error;
print "ERROR while creating $host: $ERR\n" if $ERR;
print qq(<img src="/cgi-bin/rrdgraph3.cgi" alt="">);
Ryan Block
WAN Engineer
Citco Technology Mgt.
rblock at citco.com
--
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