[rrd-users] Re: Adding white spaces to graph comments

Mike.Fountain at worldspan.com Mike.Fountain at worldspan.com
Thu Mar 11 16:00:12 MET 2004





I've had perl output what it sends to the system, and I have then used that
to manually enter the commands from a DOS prompt.  Without any additional
formatting, here is exactly what I am manually typing in to the DOS prompt:

rrdtool graph c:\rrd-images\fw14.gif -w 800 -h 350 -v Bytes  -t Internet
--start -86400 DEF:Input=fw14.rrd:if2_input:AVERAGE
DEF:Output=fw14.rrd:if2_output:AVERAGE
DEF:Errors=fw14.rrd:if2_errors:AVERAGE DEF:Input_max=fw14.rrd:if2_input:MAX
DEF:Output_max=fw14.rrd:if2_output:MAX
DEF:Errors_max=fw14.rrd:if2_errors:MAX LINE2:Input#00FF00:Input
LINE2:Output#0000FF:Output LINE2:Errors#FF0000:Errors COMMENT:"\n"
COMMENT:"\n" COMMENT:"          Average     Max     Current\n" COMMENT:"In"

Using that command, there is only one space before Average, and only one
space between Average, Max, and Current


I have tried using a single quote for the COMMENT portion of the command,
so that the exact entry is this:

rrdtool graph c:\rrd-images\fw14.gif -w 800 -h 350 -v Bytes  -t Internet
--start -86400 DEF:Input=fw14.rrd:if2_input:AVERAGE
DEF:Output=fw14.rrd:if2_output:AVERAGE
DEF:Errors=fw14.rrd:if2_errors:AVERAGE DEF:Input_max=fw14.rrd:if2_input:MAX
DEF:Output_max=fw14.rrd:if2_output:MAX
DEF:Errors_max=fw14.rrd:if2_errors:MAX LINE2:Input#00FF00:Input
LINE2:Output#0000FF:Output LINE2:Errors#FF0000:Errors COMMENT:"\n"
COMMENT:"\n" COMMENT:'          Average     Max     Current\n' COMMENT:"In"

But doing that does not generate any graph at all, and I get the following
error message back:

ERROR: unknown function 'A'



I have tried doing writing each individual space as a Comment, as suggested
by David Gabler.  However, this may make it very difficult to get all of
the numbers to line up in neat columns.

rrdtool graph c:\rrd-images\fw14.gif -w 800 -h 350 -v Bytes  -t Internet
--start -86400 DEF:Input=fw14.rrd:if2_input:AVERAGE
DEF:Output=fw14.rrd:if2_output:AVERAGE
DEF:Errors=fw14.rrd:if2_errors:AVERAGE DEF:Input_max=fw14.rrd:if2_input:MAX
DEF:Output_max=fw14.rrd:if2_output:MAX
DEF:Errors_max=fw14.rrd:if2_errors:MAX LINE2:Input#00FF00:Input
LINE2:Output#0000FF:Output LINE2:Errors#FF0000:Errors COMMENT:"\n"
COMMENT:"\n" COMMENT:" " COMMENT:" " COMMENT:" " COMMENT:" " COMMENT:" "
COMMENT:" " COMMENT:"Average" COMMENT:" " COMMENT:" " COMMENT:" " COMMENT:"
" COMMENT:" " COMMENT:"Max" COMMENT:" " COMMENT:" " COMMENT:" " COMMENT:" "
COMMENT:" " COMMENT:"Current\n" COMMENT:"In"





Mike Fountain, CCNP
Sr. Network Engineer, Worldspan
mike.fountain at worldspan.com
770-563-7606


--
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