Re: Issue with using use-gprint option.
"Kailasanathan, Vijaya Sankar (Cognizant)" <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Upon further debug I came to know that the timestamp which is getting printed as "last updated at" in the graph is causing this error. These are the debug logs captured in the http error_log which pointed out me this issue .. Unable to create graph: Garbage ':10:02 2006"' after command:, referer: http://10.237.2.50/cricket/grapher.cgi?target=%2FMpls-Links%2F10.70.12.2 32_fastethernet2_0;view=Octets The Garbage value reported was actually the last updated time stamp which is getting printed in the graph. Im not sure whether the colon character in the date timestamp is causing this error. Hence I just used a transliteration operation on the variable which holds the last updated timestamp and converted the ":" to "-". Now im properly getting the graph generated with GPRINT statements embedded in the graph. Added the transliteration operation on the variable $lasttime before the "push @gprints statement' and removed the comma, character in that line. Now the lines looks like this... $lasttime =~ tr/:/-/; push @gprints, "COMMENT:\\s", "COMMENT: Last Update at $now_day"; Not sure whether this is the correct approach, however this had resolved the issue I was facing. Best Regards Vijaya Sankar.K Sr. Engineer - NSS Cognizant Technology Solutions ________________________________ From: Kailasanathan, Vijaya Sankar (Cognizant) Sent: Thursday, November 16, 2006 4:06 PM To: '[email protected]' Subject: Issue with using use-gprint option. Hi, Im using cricket version 1.0.5 in linux. RRDTOOL version 1.2.15 . I would like to set the use-gprint option so that i can get the summary values plotted in the graph itself. However When "use-gprint" option is set to "true" im not getting the graph plotted. Getting "Failed to draw graph error". After turning on debug in grapher.cgi following is the log available from apache error_log. [Thu Nov 16 15:41:38 2006] [error] [client 10.237.9.108] [16-Nov-2006 15:41:38*] rrd graph: /tmp/cricket-cache/cricket-1ee573a4.png -a PNG --base 1024 --start -864000 --vertical-label bits per second --width 500 --height 200 DEF:ds0=/var/www/html/cricket-config/../cricket-data//Internet-Links/192 .168.1.1_fastethernet1_0_14.rrd:ds0:AVERAGE DEF:ds1=/var/www/html/cricket-config/../cricket-data//Internet-Links/192 .168.1.1_fastethernet1_0_14.rrd:ds1:AVERAGE CDEF:sds0=ds0,8,* CDEF:sds1=ds1,8,* AREA:sds0#00cc00:Average bits in LINE1:sds1#0000ff:Average bits out VRULE:1163356200#ff0000: COMMENT:\\s COMMENT:\\s --title TDL- 4Mb GPRINT:sds0:LAST:Average bits in Last\\: %8.1lf%S GPRINT:sds0:AVERAGE:Avg\\: %8.1lf%S GPRINT:sds0:MIN:Min\\: %8.1lf%s GPRINT:sds0:MAX:Max\\: %8.1lf%s\\l GPRINT:sds1:LAST:Average bits out Last\\: %8.1lf%S GPRINT:sds1:AVERAGE:Avg\\: %8.1lf%S GPRINT:sds1:MIN:Min\\: %8.1lf%s GPRINT:sds1:MAX:Max\\: %8.1lf%s\\l COMMENT:\\s COMMENT:Last updated at Thu Nov 16 15:40:02 2006 1, referer: http://10.237.2.50/cricket/grapher.cgi?target=%2FInternet-Links%2F192.16 8.1.1_fastethernet1_0_14;view=Octets When i dont use the use-gprint option, im able to get the graphs properly and this the log entry in the apache error_log. RRDs::graph /tmp/cricket-cache/cricket-1ee573a4.png -a PNG --base 1024 --start -864000 --vertical-label bits per second --width 500 --height 200 DEF:ds0=/var/www/html/cricket-config/../cricket-data//Internet-Links/192 .168.1.1_fastethernet1_0_14.rrd:ds0:AVERAGE DEF:ds1=/var/www/html/cricket-config/../cricket-data//Internet-Links/192 .168.1.1_fastethernet1_0_14.rrd:ds1:AVERAGE CDEF:sds0=ds0,8,* CDEF:sds1=ds1,8,* AREA:sds0#00cc00:Average bits in LINE1:sds1#0000ff:Average bits out VRULE:1163356200#ff0000:, referer: http://10.237.2.50/cricket/grapher.cgi?target=%2FInternet-Links%2F192.16 8.1.1_fastethernet1_0_14;view=Octets Could any one please let me know what is going on wrong here. Thanks in advance. -VJ Best Regards Vijaya Sankar.K This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV