[rrd-users] Re: line breaks with shared rrd
Warnes, Jason SktnHR
jason.warnes at saskatoonhealthregion.ca
Wed Sep 17 04:57:12 MEST 2003
I don't believe that the "\n" is a possible escape sequence for either the
PRINT or GPRINT statements. What I've had to do in order to get a line
break between items is add a couple of "COMMENT:\\s" fields like. Using
your Perl script, try this one out:
RRDs::graph ("img.gif","-s","-86400",
"-v","bits por segundo","-t","Política qos-policy", "-w","500","-h","200",
"DEF:mibMatchany=Matchany166-5.rrd:msinbytes:AVERAGE",
"CDEF:bmibMatchany=mibMatchany,8,*",
"LINE2:bmibMatchany#006699: Match any in",
"COMMENT:Max:",
"GPRINT:bmibMatchany:MAX:%2.2lf%s \n",
"COMMENT:\\s",
"COMMENT:\\s"
"COMMENT:\\s",
"COMMENT:avg:",
"GPRINT:bmibMatchany:AVERAGE:%2.2lf%s",
"COMMENT:Last:",
"GPRINT:bmibMatchany:LAST:%2.2lf%s");
For this you need to use the double backslash so Perl doesn't think it's an
escape sequence for it.
Hope this helps.
Jason...
-----Original Message-----
From: Augusto Castelan Carlson [mailto:carlson at npd.ufsc.br]
Sent: Tuesday, September 16, 2003 7:42 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] line breaks with shared rrd
Hi!
I did a Perl script (for web) to draw some graphs. I'm using the 'shared
rrd' library module and trying to get line breaks at the comment or
gprint, but it's not working. I looked at the archives, man page and
examples, but it did not help. I tried using \n and \\n. What is wrong?
RRDs::graph ("img.gif","-s","-86400",
"-v","bits por segundo","-t","Política qos-policy", "-w","500","-h","200",
"DEF:mibMatchany=Matchany166-5.rrd:msinbytes:AVERAGE",
"CDEF:bmibMatchany=mibMatchany,8,*",
"LINE2:bmibMatchany#006699: Match any in",
"COMMENT:Max:",
"GPRINT:bmibMatchany:MAX:%2.2lf%s \n", <===
"COMMENT: \n", <===
"COMMENT:avg:",
"GPRINT:bmibMatchany:AVERAGE:%2.2lf%s",
"COMMENT:Last:",
"GPRINT:bmibMatchany:LAST:%2.2lf%s");
linux RH9, perl 5.8.0 and rrdtool 1.0.45
Thank you!
Augusto
--
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
--
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