invalid rpn expression?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
some_guy
Posts: 6
Joined: Tue Mar 04, 2008 2:58 pm

invalid rpn expression?

Post by some_guy »

Hi All,

I just upgraded cacti from 0.8.6k to 0.8.7e, under CentOS 5.3 Linux. It all went well except that on a few of our UPS graphs, we see that the graph isn't being drawn at all, and so we went to look. On the graph management page, we turned on 'graph debug mode' and saw this:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Input Current" \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale \
--vertical-label="Amps" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/kkups_apc_input_amps_p1_1406.rrd":apc_input_amps_p1:LAST \
DEF:b="/var/www/html/cacti/rra/kkups_apc_input_amps_p2_1407.rrd":apc_input_amps_p2:LAST \
DEF:c="/var/www/html/cacti/rra/kkups_apc_input_amps_p3_1408.rrd":apc_input_amps_p3:LAST \
CDEF:cdefa=a,10,/ \
CDEF:cdeff=b,10,/ \
CDEF:cdefba=c,10,/ \
CDEF:cdefbf=,10,/ \
CDEF:cdefbg=TIME,1259020685,GT,a,a,UN,0,a,IF,IF,TIME,1259020685,GT,b,b,UN,0,b,IF,IF,TIME,1259020685,GT,c,c,UN,0,c,IF,IF,+,+,10,/ \
LINE1:cdefa#3D168BFF:"Phase 1" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:MIN:"Minimum\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdeff#4444FFFF:"Phase 2" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:MIN:"Minimum\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefba#55D6D3FF:"Phase 3" \
GPRINT:cdefba:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefba:MIN:"Minimum\:%8.2lf %s" \
GPRINT:cdefba:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefba:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"Total " \
GPRINT:cdefbg:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefbg:MIN:"Minimum\:%8.2lf %s" \
GPRINT:cdefbg:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbg:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

ERROR: invalid rpn expression in: ,10,/

Now, that last line is referencing a CDEF calculation called 'Total All Data Sources, Divide by 10' and I went there to look closely at the CDEF configs, and it says:

cdef=ALL_DATA_SOURCES_NODUPS,10,/

in the CDEF config screen for that item. So it looks like it is somehow not getting the ALL_DATA_SOURCES_NODUPS value. This was working before the upgrade. I tried removing that CDEF calculation from the graph and the graph then worked (but not the way I wanted it, obviously).

Anyone have any ideas as to what's going on?

Thanks a million!!!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

May you please loop through those "Cacti Pseudo CDEF variables" by creating a test graph template to verify which is working and which not?
R.
Karol_zem
Posts: 3
Joined: Thu Apr 22, 2010 2:45 am
Location: Poznan

Post by Karol_zem »

It looks that I have similar problem. I have to start "Upstream FEC" monitoring. I try to use templates from - http://forums.cacti.net/about10443.html

After creating new graph I have following debug output:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title=" UBR4 - FEC - Cable5/0/0-upstream1 - 6,31" \
--rigid \
--base=1000 \
--height=150 \
--width=600 \
--upper-limit=5 \
--lower-limit=0 \
--vertical-label="CodeWords % | SNR" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/html/plugin-cacti/rra/180/3795.rrd":cisco_up_Unerroreds:AVERAGE \
DEF:b="/var/www/html/plugin-cacti/rra/180/3795.rrd":cisco_up_Correcteds:AVERAGE \
DEF:c="/var/www/html/plugin-cacti/rra/180/3795.rrd":cisco_up_Uncorrecta:AVERAGE \
DEF:d="/var/www/html/plugin-cacti/rra/180/3795.rrd":cisco_up_snr_fec:AVERAGE \
CDEF:cdefa=a,100,/ \
CDEF:cdeff=b,10,/ \
CDEF:cdefbc=TIME,1271923804,GT,a,a,UN,0,a,IF,IF,TIME,1271923804,GT,b,b,UN,0,b,IF,IF,TIME,1271923804,GT,c,c,UN,0,c,IF,IF,TIME,1271923804,GT,d,d,UN,0,d,IF,IF,+,+,+ \
CDEF:cdefbg=b,100,*,TIME,1271923804,GT,a,a,UN,0,a,IF,IF,TIME,1271923804,GT,b,b,UN,0,b,IF,IF,TIME,1271923804,GT,c,c,UN,0,c,IF,IF,TIME,1271923804,GT,d,d,UN,0,d,IF,IF,+,+,+,/ \
CDEF:cdefbj=c,100,*,TIME,1271923804,GT,a,a,UN,0,a,IF,IF,TIME,1271923804,GT,b,b,UN,0,b,IF,IF,TIME,1271923804,GT,c,c,UN,0,c,IF,IF,TIME,1271923804,GT,d,d,UN,0,d,IF,IF,+,+,+,/ \
CDEF:cdefcb=d,100,/ \
CDEF:cdefcd=b,100,*,,/ \
AREA:cdefa#FFFFFFFF:"CW Error-Free\:" \
GPRINT:a:LAST:" Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \
LINE1:b#FFFFFFFF:"Corrected CW\:" \
GPRINT:cdeff:LAST:" Current\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf\n" \
LINE1:c#FFFFFFFF:"CW with errors\:" \
GPRINT:c:LAST:" Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Total CWs" \
GPRINT:cdefbc:LAST:"Current\:%8.0lf" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.0lf" \
GPRINT:cdefbc:MAX:"Maximum\:%8.0lf\n" \
GPRINT:cdefbg:LAST:"Correctable Current\:%10.3lf" \
GPRINT:cdefbg:AVERAGE:"Correctable Avg\:%10.3lf" \
GPRINT:cdefbg:MAX:"Correctable Max\:%10.3lf\n" \
GPRINT:cdefbj:LAST:"Uncorrectab Current\:%10.3lf" \
GPRINT:cdefbj:AVERAGE:"Uncorrectab Avg\:%10.3lf" \
LINE3:cdefcb#3D168BFF:"SNR = Divided per 100 (3.00 = 30DB)" \
GPRINT:cdefcb:LAST:"Current\:%8.2lf %s" \
LINE3:cdefcd#FFFFFFFF:"Correctable in %\n"
RRDTool Says:
ERROR: invalid rpn expression in: b,100,*,,/

After short investigation that I made I'm almost sure that it's problem with CDEF:

cdef=b,100,*,ALL_DATA_SOURCES_NODUPS,/

I've tried to apply new rrd.php file from svn but with no results.

I'm using:
Date Thu, 22 Apr 2010 10:22:58 +0200
Cacti Version 0.8.7e
Cacti OS unix
SNMP Version NET-SNMP version: 5.3.2.2
RRDTool Version RRDTool 1.3.x
Poller - spine

Any ideas what to do?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

There are 4 broken CDEFs in there.
Thus, it's required to analyze the graph template.
I put this onto my list, but no promise made
R.
Karol_zem
Posts: 3
Joined: Thu Apr 22, 2010 2:45 am
Location: Poznan

Post by Karol_zem »

Ok. I will bide. Thanks anyway - but if you could write where's problem maybe I could help - this template it's last thing that I have to do to finish my job project.

best regards
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I don't have an approach yet. Else, be sure, I'd have left it to you to find out :wink:
R.
MrJake
Posts: 11
Joined: Thu Feb 28, 2008 11:08 am

Post by MrJake »

did you guys find out the work arround for that. Im having the xact same issue and I can not see the FEC for my cmts which is killing me. im using 87c which seems to have same issue the e with this.
jeremy2011
Posts: 1
Joined: Wed Mar 09, 2011 3:21 pm

Re: invalid rpn expression?

Post by jeremy2011 »

BUMP Could really use some help here. This thread is old:( Having the exact same issue with FEC graphing.

Thanks.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: invalid rpn expression?

Post by gandalf »

jeremy2011 wrote:BUMP Could really use some help here. This thread is old:( Having the exact same issue with FEC graphing.

Thanks.
Please open a new thread and provide YOUR data, then
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests