invalid rpn expression?
Moderators: Developers, Moderators
invalid rpn expression?
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!!!
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!!!
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\:" \
GPRINTLAST:" Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" \
LINE1:b#FFFFFFFF:"Corrected CW\:" \
GPRINT:cdeff:LAST:" Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"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?
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\:" \
GPRINTLAST:" Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" \
LINE1:b#FFFFFFFF:"Corrected CW\:" \
GPRINT:cdeff:LAST:" Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"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?
-
- Posts: 1
- Joined: Wed Mar 09, 2011 3:21 pm
Re: invalid rpn expression?
BUMP Could really use some help here. This thread is old:( Having the exact same issue with FEC graphing.
Thanks.
Thanks.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: invalid rpn expression?
Please open a new thread and provide YOUR data, thenjeremy2011 wrote:BUMP Could really use some help here. This thread is old:( Having the exact same issue with FEC graphing.
Thanks.
R.
Who is online
Users browsing this forum: No registered users and 2 guests