Invalid rpn expression

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
nvmor
Posts: 11
Joined: Fri Sep 29, 2006 9:55 am
Contact:

Invalid rpn expression

Post by nvmor »

ERROR: invalid rpn expression in: a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,i,+,j,+1,/

It workd when it was this:

a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,1,/


For 8 items


I'm trying to basically make a "sum" of 10 items, I had it working with 8 entries, but when I tried to make it work with 10...no love
nvmor
Posts: 11
Joined: Fri Sep 29, 2006 9:55 am
Contact:

Post by nvmor »

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Combined IIS Connections" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti/rra/svr00508_iis_con_cur_total_361.rrd":iis_con_cur_total:LAST \
DEF:b="/var/www/localhost/htdocs/cacti/rra/svr00509_iis_con_cur_total_406.rrd":iis_con_cur_total:LAST \
DEF:c="/var/www/localhost/htdocs/cacti/rra/svr00510_iis_con_cur_total_431.rrd":iis_con_cur_total:LAST \
DEF:d="/var/www/localhost/htdocs/cacti/rra/svr00513_iis_con_cur_total_464.rrd":iis_con_cur_total:LAST \
DEF:e="/var/www/localhost/htdocs/cacti/rra/svr00514_iis_con_cur_total_497.rrd":iis_con_cur_total:LAST \
DEF:f="/var/www/localhost/htdocs/cacti/rra/svr00515_iis_con_cur_total_530.rrd":iis_con_cur_total:LAST \
DEF:g="/var/www/localhost/htdocs/cacti/rra/svr00516_iis_con_cur_total_563.rrd":iis_con_cur_total:LAST \
DEF:h="/var/www/localhost/htdocs/cacti/rra/svr00518_iis_con_cur_total_596.rrd":iis_con_cur_total:LAST \
DEF:i="/var/www/localhost/htdocs/cacti/rra/svr00519_iis_con_cur_total_629.rrd":iis_con_cur_total:LAST \
DEF:j="/var/www/localhost/htdocs/cacti/rra/svr00507_iis_con_cur_total_327.rrd":iis_con_cur_total:LAST \
DEF:ba="/var/www/localhost/htdocs/cacti/rra/svr00507_iis_con_cur_total_327.rrd":iis_con_cur_total:LAST \
CDEF:cdefba=a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,8,/ \
AREA:a:"" \
AREA:b:"" \
AREA:c:"" \
AREA:d:"" \
AREA:e:"" \
AREA:f:"" \
AREA:g:"" \
AREA:h:"" \
AREA:i:"" \
AREA:ba:"" \
AREA:cdefba#00FF00:"Total Connections"


I want to graph 10 IIS Server Total Connection data sources, and provide the sum.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Maybe I'm missing something, but shouldn't you do it as

a,b,c,d,e,f,g,h,i,j,1,+,/

After all, you're just summing all the values together right?
nvmor
Posts: 11
Joined: Fri Sep 29, 2006 9:55 am
Contact:

Post by nvmor »

When I input the string you just specified, i get RPN expression errors
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

nvmor wrote:When I input the string you just specified, i get RPN expression errors
Remove the last item (/).
nvmor
Posts: 11
Joined: Fri Sep 29, 2006 9:55 am
Contact:

Post by nvmor »

ERROR: RPN final stack size != 1
nvmor
Posts: 11
Joined: Fri Sep 29, 2006 9:55 am
Contact:

Post by nvmor »

a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,i,+,j,+

got it
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yea, to undertand RPM, you whould first of had to go through engineering school with either an hp11c or a hp15c. :)

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
nvmor
Posts: 11
Joined: Fri Sep 29, 2006 9:55 am
Contact:

Post by nvmor »

RPN ;)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

See what I mean. It's been so, I can't even remember how to spell it. We called it "Reverse Polish Notation". I don't know if that's what you really call it though.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests