[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Ê C0È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