[rrd-users] Junk characters instead of graph
Chitman Kaur
chitmankaur at yahoo.com
Thu Nov 13 10:29:19 MET 2003
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/Îzóî?#IA$@BCä¤Õ^õæÝ0G²¼
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: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