[rrd-users] Re: rrdcgi

Michael Earls Michael.Earls at cchmc.org
Tue Sep 9 20:23:47 MEST 2003


Can someone look at the below code to help try and figure out why i can
not display my graph / create the graph.

Thanks, again,

michael

This is the output from the view source on the web browser

<RRD::GRAPH ><RRD::CV RRD_GRAPHS_BASE>/<RRD::CV::PATH
RRD_INTERFACE>-daily.png  
	--imginfo '<img SRC=<RRD::CV RRD_URL_GRAPHS_BASE>/%s WIDTH=%lu
HEIGHT=%lu >'
	-s -2000m -e now -a PNG -w 400 -h 100  
	-v "Bits per Second"  -b 1000 -u <RRD::CV RRD_SPEED>

	--title "'Daily' graph (5 Minute Average) <RRD::TIME::LAST
><RRD::CV RRD_MRTG_BASE>/<RRD::CV::PATH RRD_DEVICE>/<RRD::CV::PATH
RRD_INTERFACE>.rrd '%F %T' >"
	-c MGRID#ee0000 -c GRID#000000  
	DEF:in=<RRD::CV RRD_MRTG_BASE>/<RRD::CV::PATH
RRD_DEVICE>/<RRD::CV::PATH RRD_INTERFACE>.rrd:ds0:AVERAGE  
	DEF:out=<RRD::CV RRD_MRTG_BASE>/<RRD::CV::PATH
RRD_DEVICE>/<RRD::CV::PATH RRD_INTERFACE>.rrd:ds1:AVERAGE  
	CDEF:fin=in,8,*
	CDEF:fout=out,8,*
	CDEF:pin=fin,<RRD::CV RRD_SPEED>,/,100,*
	CDEF:pout=fout,<RRD::CV RRD_SPEED>,/,100,*
	DEF:min=<RRD::CV RRD_MRTG_BASE>/<RRD::CV::PATH
RRD_DEVICE>/<RRD::CV::PATH RRD_INTERFACE>.rrd:ds0:MAX  
	DEF:mout=<RRD::CV RRD_MRTG_BASE>/<RRD::CV::PATH
RRD_DEVICE>/<RRD::CV::PATH RRD_INTERFACE>.rrd:ds1:MAX  
	CDEF:fmin=min,8,*
	CDEF:fmout=mout,8,*
	CDEF:pmin=fmin,<RRD::CV RRD_SPEED>,/,100,*
	CDEF:pmout=fmout,<RRD::CV RRD_SPEED>,/,100,*
	AREA:fin#00cc00:"Incoming in bits/sec"  
	LINE1:fout#0000ff:"Outgoing in bits/sec\l"  
	GPRINT:fmin:MAX:"Maximal In\:  %8.3lf %s"
        GPRINT:pmin:MAX:"(%6.2lf%%)"
        GPRINT:fmout:MAX:"Maximal Out\: %8.3lf %s"
        GPRINT:pmout:MAX:"(%6.2lf%%)\l"
        GPRINT:fin:AVERAGE:"Average In\:  %8.3lf %s"
        GPRINT:pin:AVERAGE:"(%6.2lf%%)"
        GPRINT:fout:AVERAGE:"Average Out\: %8.3lf %s"
        GPRINT:pout:AVERAGE:"(%6.2lf%%)\l"
        GPRINT:fin:LAST:"Current In\:  %8.3lf %s"
        GPRINT:pin:LAST:"(%6.2lf%%)"
        GPRINT:fout:LAST:"Current Out\: %8.3lf %s"
        GPRINT:pout:LAST:"(%6.2lf%%)"
>


>>> "Michael Earls" <Michael.Earls at cchmc.org> 09/08/03 11:22AM >>>
I am getting an error when trying to run this rrdcgi on the command
line, can someone help me figure out why I am getting an error on the
unexpected token 'newline'

rrdcgi /-daily.png --imginfo '/%s WIDTH=%lu HEIGHT=%lu >' -s -2000m -e
now -a PNG -w 400 -h 100 -v "Bits per Second" -b 1000 -u  --title
"'Daily' graph (5 Minute Average) //
.rrd '%F %T' >" -c MGRID#ee0000 -c GRID#000000
DEF:in=//.rrd:ds0:AVERAGE DEF:out=//
.rrd:ds1:AVERAGE CDEF:fin=in,8,* CDEF:fout=out,8,*
CDEF:pin=fin,,/,100,* CDEF:pout=fout,,/,100,* DEF:min=//.rrd:ds0:MAX
DEF:mout=//
.rrd:ds1:MAX CDEF:fmin=min,8,* CDEF:fmout=mout,8,*
CDEF:pmin=fmin,,/,100,* CDEF:pmout=fmout,,/,100,*
AREA:fin#00cc00:"Incoming in bits/sec" LINE1:fout#0000ff:"Outgoing in
bits/sec\l" GPRINT:fmin:MAX:"Maximal In\: %8.3lf %s"
GPRINT:pmin:MAX:"(%6.2lf%%)" GPRINT:fmout:MAX:"Maximal Out\: %8.3lf
%s"
GPRINT:pmout:MAX:"(%6.2lf%%)\l" GPRINT:fin:AVERAGE:"Average In\:
%8.3lf
%s" GPRINT:pin:AVERAGE:"(%6.2lf%%)" GPRINT:fout:AVERAGE:"Average Out\:
%8.3lf %s" GPRINT:pout:AVERAGE:"(%6.2lf%%)\l" GPRINT:fin:LAST:"Current
In\: %8.3lf %s" GPRINT:pin:LAST:"(%6.2lf%%)" GPRINT:fout:LAST:"Current
Out\: %8.3lf %s" GPRINT:pout:LAST:"(%6.2lf%%)" >
-su: syntax error near unexpected token `newline'

Thanks for all your help,

Michael

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