[rrd-users] expression error
Alex van den Bogaerdt
alex at ergens.op.het.net
Wed Jun 25 16:25:07 CEST 2008
On Wed, Jun 25, 2008 at 03:17:38PM +0200, Adrian Miller wrote:
> RRDTool Command:
>
> /usr/local/bin/rrdtool graph - \
> --imgformat=PNG \
> --start=-86400 \
> --end=-300 \
> --title="crutch.hoppy.co.za - Traffic" \
> --rigid \
> --base=1000 \
> --height=120 \
> --width=500 \
> --alt-autoscale-max \
> --lower-limit=0 \
> --vertical-label="bits per second" \
> --slope-mode \
> --font TITLE:12: \
> --font AXIS:8: \
> --font LEGEND:10: \
> --font UNIT:8: \
> CDEF:cdefa=a,8,* \
> AREA:cdefa#00CF00FF:"Inbound" \
> GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
> GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
> GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
> COMMENT:"Total In\: 0 bytes\n" \
> LINE1:cdefa#002A97FF:"Outbound" \
> GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
> GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
> GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
> COMMENT:"Total Out\: 0 bytes"
>
> RRDTool Says:
>
> ERROR: invalid rpn expression in: a,8,*
Sure. DEF or CDEF "a" does not exist, thus "a" is not a valid
number or variable, thus the expression is invalid.
--
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/
More information about the rrd-users
mailing list