Hi All
I am trying to write a perl script which queries the RRD and displays the graph
on the standard output... i.e. my webpage which called this perl file...
But no image is displayed.... only junk characters....
Something like below...
1sJh rÆ#¡1A ANZíÅYoÞýCq$9h !`V{qÖwÿÁPÉòANcÌÆH 4! ÆÌ)Æ
Æ`L0&À` rÒ*±Ôi Æ`LÁ¤4f#SBc`Ó`L0F 1&1Áä¤Õ^õæÝ0G!!
rÒj/Îzóî?#Y^ÿ10HiÆ#Ƥ AJ[1] ÁB0Æ`FÊ C0ÈI«4ÆRc¤)ÆLiÌ4Ð`
rJc¨4ÆÐi Æ`L0& rÒj/[EMAIL PROTECTED]
My code is...
my(@args) = ( "--start","$start",
"--end","$end",
"--imgformat","GIF",
"--height","150",
"--width","540",
"--color","BACK#FFE2C6",
"--color","MGRID#000000",
"--color","SHADEA#999999",
"--color","SHADEB#000000",
"--color","GRID#999999",
"-t $cust $host $ifindex $ran",
"-v $t1",
@DEF1,
@DRAW
);
#print "Content-type: image/gif\r\n\r\n";
RRDs::graph( '-', @args);
my $ERR=RRDs::error;
print "$ERR" if $ERR;
I tried putting Content type to image but its still giving junk characters...
Any ideas...
Regards
Chitman
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi