ERROR: RPN Stack Underflow

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
MKaml
Posts: 2
Joined: Tue Jul 11, 2023 11:15 am

ERROR: RPN Stack Underflow

Post by MKaml »

Cacti newb, I inherited this from another employee.
Everything was working fine. AWS RHEL 8 instance. Upgraded to Version 1.2.23. All Graphs now show ERROR: RPN Stack Underflow. I set the Graph to debug and the rrdtool command is:
/usr/bin/rrdtool graph - \
--imgformat=SVG \
--start='-86400' \
--end='-300' \
--pango-markup \
--title='Headquarters - Traffic' \
--vertical-label='bits per second' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2023/07/10 10\:09\:06 To 2023/07/11 10\:04\:06\c" \
COMMENT:" \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 \
--font TITLE:11:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
--watermark 'Generated by Cacti®' \
DEF:a='/usr/share/cacti/rra/gf-pho-5000wcarefree-01a-pg01_traffic_in_55.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/gf-pho-5000wcarefree-01a-pg01_traffic_in_55.rrd':'traffic_out':AVERAGE \
CDEF:cdefc='a,8,*,*' \
CDEF:cdeff='b,8,*,*' \
AREA:a#00CF0033: \
AREA:a#00CF007F:'Inbound ' \
GPRINT:cdefc:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefc:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefc:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdeff#002A9733: \
AREA:cdeff#002A977F:'Outbound' \
GPRINT:cdeff:LAST:'Current\:%8.2lf %s' \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf %s'

Running this from the server command line returns the same RPN stack underflow error. If I change the two CDEF lines from
CDEF:cdefc='a,8,*,*' \
CDEF:cdeff='b,8,*,*' \
to
CDEF:cdefc='a,8,*' \
CDEF:cdeff='b,8,*' \
I get what looks like a valid response. Graph Template is Interface - traffic (bits/sec).
Cacti_Graph_1.png
Cacti_Graph_1.png (239.54 KiB) Viewed 1601 times
As a first step, I changed all the CDEF's to none & saved it. The graph did not change, debug rrdtool command was the same. What step(s) am I missing to apply this change to the graph? What do I need to choose to change the CDEF to the one that works?
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: ERROR: RPN Stack Underflow

Post by Osiris »

Edit the cdef, it's basically wrong. Console > Presets > CDEFs
Before history, there was a paradise, now dust.
MKaml
Posts: 2
Joined: Tue Jul 11, 2023 11:15 am

Re: ERROR: RPN Stack Underflow

Post by MKaml »

Thank you, issue resolved.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest