expression error

View: New views
2 Messages — Rating Filter:   Alert me  

expression error

by Adrian Miller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I am getting the following error in cacti for RRDTOOL:-

thanks in advance
Hoppy

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


___________________________________
Hoppy's Webmail



_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: expression error

by Alex van den Bogaerdt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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/

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
LightInTheBox - Buy quality products at wholesale price