|
|
| Author |
Message |
nvmor
Joined: 29 Sep 2006 Posts: 11
|
Posted: Thu Oct 12, 2006 1:49 pm Post subject: Invalid rpn expression |
|
|
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 |
|
| Back to top |
|
 |
nvmor
Joined: 29 Sep 2006 Posts: 11
|
Posted: Thu Oct 12, 2006 1:50 pm Post subject: |
|
|
/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. |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Thu Oct 12, 2006 2:29 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
nvmor
Joined: 29 Sep 2006 Posts: 11
|
Posted: Fri Oct 13, 2006 3:15 am Post subject: |
|
|
| When I input the string you just specified, i get RPN expression errors |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Fri Oct 13, 2006 9:17 am Post subject: |
|
|
| nvmor wrote: | | When I input the string you just specified, i get RPN expression errors |
Remove the last item (/). |
|
| Back to top |
|
 |
nvmor
Joined: 29 Sep 2006 Posts: 11
|
Posted: Fri Oct 13, 2006 9:19 am Post subject: |
|
|
| ERROR: RPN final stack size != 1 |
|
| Back to top |
|
 |
nvmor
Joined: 29 Sep 2006 Posts: 11
|
Posted: Fri Oct 13, 2006 9:55 am Post subject: |
|
|
a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,i,+,j,+
got it |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9697 Location: MI, USA
|
Posted: Sat Oct 14, 2006 1:41 am Post subject: |
|
|
Yea, to undertand RPM, you whould first of had to go through engineering school with either an hp11c or a hp15c.
TheWitness |
|
| Back to top |
|
 |
nvmor
Joined: 29 Sep 2006 Posts: 11
|
Posted: Sat Oct 14, 2006 9:38 am Post subject: |
|
|
RPN  |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9697 Location: MI, USA
|
Posted: Sat Oct 14, 2006 12:31 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|