After Upgrade to 0.8.7c Graphs with CDEF ALL_DATA_SOURCES_*

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

Moderators: Developers, Moderators

Post Reply
jkirschbaum
Posts: 3
Joined: Wed Jan 28, 2009 3:05 am

After Upgrade to 0.8.7c Graphs with CDEF ALL_DATA_SOURCES_*

Post by jkirschbaum »

I've graphs with ALL_DATA_SOURCES_NODUPS in a CDEF and they don't work after the upgrade to 0.8.7c. In 0.8.7b everything was ok.

The CDEF is the following:

Code: Select all

CDEF Items
Item 	   Item                  Value 	 
Item #1 	Special Data Source:  CURRENT_DATA_SOURCE
Item #2 	Custom String:        100
Item #3 	Operator:             *
Item #4 	Special Data Source:  ALL_DATA_SOURCES_NODUPS
Item #5 	Operator:             /
Graphdebugging shows the following:

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="dkv71u95 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="cpu ticks" \
--slope-mode \
--font TITLE:9: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/data/unixweb/cacti-0.8.7c/rra/dkv71u95_ucd_sscpurawkernel_2247.rrd":ucd_ssCpuRawKernel:AVERAGE \
DEF:b="/data/unixweb/cacti-0.8.7c/rra/dkv71u95_ucd_sscpurawwait_2249.rrd":ucd_ssCpuRawWait:AVERAGE \
DEF:c="/data/unixweb/cacti-0.8.7c/rra/dkv71u95_ucd_sscpurawsystem_2293.rrd":ucd_ssCpuRawSystem:AVERAGE \
DEF:d="/data/unixweb/cacti-0.8.7c/rra/dkv71u95_ucd_sscpurawuser_2248.rrd":ucd_ssCpuRawUser:AVERAGE \
DEF:e="/data/unixweb/cacti-0.8.7c/rra/dkv71u95_ucd_sscpurawnice_2292.rrd":ucd_ssCpuRawNice:AVERAGE \
DEF:f="/data/unixweb/cacti-0.8.7c/rra/dkv71u95_ucd_sscpurawidle_2246.rrd":ucd_ssCpuRawIdle:AVERAGE \
CDEF:cdefa=a,100,*,,/ \
CDEF:cdeff=b,100,*,,/ \
CDEF:cdefba=c,100,*,,/ \
CDEF:cdefbf=d,100,*,,/ \
CDEF:cdefca=e,100,*,,/ \
CDEF:cdefcf=f,100,*,,/ \
AREA:cdefa#FF0000FF:"Kernel"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefa:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdeff#FFF200FF:"Wait":STACK \
GPRINT:cdeff:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdeff:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdeff:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefba#7EE600FF:"System":STACK \
GPRINT:cdefba:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefba:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefba:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefba:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefbf#0000FFFF:"User":STACK \
GPRINT:cdefbf:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefbf:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefbf:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefbf:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefca#EA8F00FF:"Nice":STACK \
GPRINT:cdefca:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefca:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefca:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefca:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefcf#C0C0C0FF:"Idle":STACK \
GPRINT:cdefcf:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefcf:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefcf:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefcf:MAX:"Max\:%8.2lf %s" 

RRDTool Says:

ERROR: invalid rpn expression in: a,100,*,,/
It seems to me, that the ALL_DATA_SOURCES_NODUPS is not evaluated. In version 0.8.7b the debug output is:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="dkv71u95 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="cpu ticks" \
--slope-mode \
--font TITLE:9: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawkernel_2247.rrd":ucd_ssCpuRawKernel:AVERAGE \
DEF:b="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawkernel_2247.rrd":ucd_ssCpuRawKernel:MAX \
DEF:c="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawwait_2249.rrd":ucd_ssCpuRawWait:AVERAGE \
DEF:d="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawwait_2249.rrd":ucd_ssCpuRawWait:MAX \
DEF:e="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawsystem_2293.rrd":ucd_ssCpuRawSystem:AVERAGE \
DEF:f="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawsystem_2293.rrd":ucd_ssCpuRawSystem:MAX \
DEF:g="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawuser_2248.rrd":ucd_ssCpuRawUser:AVERAGE \
DEF:h="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawuser_2248.rrd":ucd_ssCpuRawUser:MAX \
DEF:i="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawnice_2292.rrd":ucd_ssCpuRawNice:AVERAGE \
DEF:j="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawnice_2292.rrd":ucd_ssCpuRawNice:MAX \
DEF:ba="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawidle_2246.rrd":ucd_ssCpuRawIdle:AVERAGE \
DEF:bb="/data/unixweb/cacti-0.8.7b/rra/dkv71u95_ucd_sscpurawidle_2246.rrd":ucd_ssCpuRawIdle:MAX \
CDEF:cdefa=a,100,*,TIME,1233130581,GT,a,a,UN,0,a,IF,IF,TIME,1233130581,GT,c,c,UN,0,c,IF,IF,TIME,1233130581,GT,e,e,UN,0,e,IF,IF,TIME,1233130581,GT,g,g,UN,0,g,IF,IF,TIME,1233130581,GT,i,i,UN,0,i,IF,IF,TIME,1233130581,GT,ba,ba,UN,0,ba,IF,IF,+,+,+,+,+,/ \
CDEF:cdefe=b,100,*,TIME,1233130581,GT,b,b,UN,0,b,IF,IF,TIME,1233130581,GT,d,d,UN,0,d,IF,IF,TIME,1233130581,GT,f,f,UN,0,f,IF,IF,TIME,1233130581,GT,h,h,UN,0,h,IF,IF,TIME,1233130581,GT,j,j,UN,0,j,IF,IF,TIME,1233130581,GT,bb,bb,UN,0,bb,IF,IF,+,+,+,+,+,/ \
CDEF:cdeff=c,100,*,TIME,1233130581,GT,a,a,UN,0,a,IF,IF,TIME,1233130581,GT,c,c,UN,0,c,IF,IF,TIME,1233130581,GT,e,e,UN,0,e,IF,IF,TIME,1233130581,GT,g,g,UN,0,g,IF,IF,TIME,1233130581,GT,i,i,UN,0,i,IF,IF,TIME,1233130581,GT,ba,ba,UN,0,ba,IF,IF,+,+,+,+,+,/ \
CDEF:cdefj=d,100,*,TIME,1233130581,GT,b,b,UN,0,b,IF,IF,TIME,1233130581,GT,d,d,UN,0,d,IF,IF,TIME,1233130581,GT,f,f,UN,0,f,IF,IF,TIME,1233130581,GT,h,h,UN,0,h,IF,IF,TIME,1233130581,GT,j,j,UN,0,j,IF,IF,TIME,1233130581,GT,bb,bb,UN,0,bb,IF,IF,+,+,+,+,+,/ \
CDEF:cdefba=e,100,*,TIME,1233130581,GT,a,a,UN,0,a,IF,IF,TIME,1233130581,GT,c,c,UN,0,c,IF,IF,TIME,1233130581,GT,e,e,UN,0,e,IF,IF,TIME,1233130581,GT,g,g,UN,0,g,IF,IF,TIME,1233130581,GT,i,i,UN,0,i,IF,IF,TIME,1233130581,GT,ba,ba,UN,0,ba,IF,IF,+,+,+,+,+,/ \
CDEF:cdefbe=f,100,*,TIME,1233130581,GT,b,b,UN,0,b,IF,IF,TIME,1233130581,GT,d,d,UN,0,d,IF,IF,TIME,1233130581,GT,f,f,UN,0,f,IF,IF,TIME,1233130581,GT,h,h,UN,0,h,IF,IF,TIME,1233130581,GT,j,j,UN,0,j,IF,IF,TIME,1233130581,GT,bb,bb,UN,0,bb,IF,IF,+,+,+,+,+,/ \
CDEF:cdefbf=g,100,*,TIME,1233130581,GT,a,a,UN,0,a,IF,IF,TIME,1233130581,GT,c,c,UN,0,c,IF,IF,TIME,1233130581,GT,e,e,UN,0,e,IF,IF,TIME,1233130581,GT,g,g,UN,0,g,IF,IF,TIME,1233130581,GT,i,i,UN,0,i,IF,IF,TIME,1233130581,GT,ba,ba,UN,0,ba,IF,IF,+,+,+,+,+,/ \
CDEF:cdefbj=h,100,*,TIME,1233130581,GT,b,b,UN,0,b,IF,IF,TIME,1233130581,GT,d,d,UN,0,d,IF,IF,TIME,1233130581,GT,f,f,UN,0,f,IF,IF,TIME,1233130581,GT,h,h,UN,0,h,IF,IF,TIME,1233130581,GT,j,j,UN,0,j,IF,IF,TIME,1233130581,GT,bb,bb,UN,0,bb,IF,IF,+,+,+,+,+,/ \
CDEF:cdefca=i,100,*,TIME,1233130581,GT,a,a,UN,0,a,IF,IF,TIME,1233130581,GT,c,c,UN,0,c,IF,IF,TIME,1233130581,GT,e,e,UN,0,e,IF,IF,TIME,1233130581,GT,g,g,UN,0,g,IF,IF,TIME,1233130581,GT,i,i,UN,0,i,IF,IF,TIME,1233130581,GT,ba,ba,UN,0,ba,IF,IF,+,+,+,+,+,/ \
CDEF:cdefce=j,100,*,TIME,1233130581,GT,b,b,UN,0,b,IF,IF,TIME,1233130581,GT,d,d,UN,0,d,IF,IF,TIME,1233130581,GT,f,f,UN,0,f,IF,IF,TIME,1233130581,GT,h,h,UN,0,h,IF,IF,TIME,1233130581,GT,j,j,UN,0,j,IF,IF,TIME,1233130581,GT,bb,bb,UN,0,bb,IF,IF,+,+,+,+,+,/ \
CDEF:cdefcf=ba,100,*,TIME,1233130581,GT,a,a,UN,0,a,IF,IF,TIME,1233130581,GT,c,c,UN,0,c,IF,IF,TIME,1233130581,GT,e,e,UN,0,e,IF,IF,TIME,1233130581,GT,g,g,UN,0,g,IF,IF,TIME,1233130581,GT,i,i,UN,0,i,IF,IF,TIME,1233130581,GT,ba,ba,UN,0,ba,IF,IF,+,+,+,+,+,/ \
CDEF:cdefcj=bb,100,*,TIME,1233130581,GT,b,b,UN,0,b,IF,IF,TIME,1233130581,GT,d,d,UN,0,d,IF,IF,TIME,1233130581,GT,f,f,UN,0,f,IF,IF,TIME,1233130581,GT,h,h,UN,0,h,IF,IF,TIME,1233130581,GT,j,j,UN,0,j,IF,IF,TIME,1233130581,GT,bb,bb,UN,0,bb,IF,IF,+,+,+,+,+,/ \
AREA:cdefa#FF0000FF:"Kernel"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefa:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdeff#FFF200FF:"Wait":STACK \
GPRINT:cdeff:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdeff:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefj:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefba#7EE600FF:"System":STACK \
GPRINT:cdefba:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefba:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefba:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefbe:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefbf#0000FFFF:"User":STACK \
GPRINT:cdefbf:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefbf:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefbf:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefbj:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefca#EA8F00FF:"Nice":STACK \
GPRINT:cdefca:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefca:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefca:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefce:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefcf#C0C0C0FF:"Idle":STACK \
GPRINT:cdefcf:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefcf:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefcf:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefcj:MAX:"Max\:%8.2lf %s" 

RRDTool Says:

OK
Any ideas?
JK
jkirschbaum
Posts: 3
Joined: Wed Jan 28, 2009 3:05 am

Post by jkirschbaum »

Did a little investigation and found the following bug

http://bugs.cacti.net/view.php?id=1373

Maybe it's the same.
JK
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Not exactly the same. Please open a new bug report.
Reinhard
piccilli
Posts: 8
Joined: Tue May 24, 2005 2:08 pm
Contact:

Post by piccilli »

Same problem here after upgrade.

Code: Select all

cdef=CURRENT_DATA_SOURCE,100,*,ALL_DATA_SOURCES_NODUPS,/
I've tried to change ALL_DATA_SOURCES_NODUPS to other special data source on CDEF without success.

I have four data sources on the graph template, all using this CDEF function. If I change on one of them to none on CDEF function, the graph is displayed (diferently of what I expect, of course).

So the problem is not the ALL_DATA_SOURCES_NODUPS function, but when all data sources in the graph template are using the same CDEF with those parameters some problem occurs.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

piccilli wrote:Same problem here after upgrade.

Code: Select all

cdef=CURRENT_DATA_SOURCE,100,*,ALL_DATA_SOURCES_NODUPS,/
I've tried to change ALL_DATA_SOURCES_NODUPS to other special data source on CDEF without success.

I have four data sources on the graph template, all using this CDEF function. If I change on one of them to none on CDEF function, the graph is displayed (diferently of what I expect, of course).

So the problem is not the ALL_DATA_SOURCES_NODUPS function, but when all data sources in the graph template are using the same CDEF with those parameters some problem occurs.
Please show the rrdtool graph from graph management in debug mode. Then, please a screenshot of the graph template's graph item list naming the related cdefs.
Reinhard
piccilli
Posts: 8
Joined: Tue May 24, 2005 2:08 pm
Contact:

Post by piccilli »

gandalf wrote:
piccilli wrote:Same problem here after upgrade.

Code: Select all

cdef=CURRENT_DATA_SOURCE,100,*,ALL_DATA_SOURCES_NODUPS,/
I've tried to change ALL_DATA_SOURCES_NODUPS to other special data source on CDEF without success.

I have four data sources on the graph template, all using this CDEF function. If I change on one of them to none on CDEF function, the graph is displayed (diferently of what I expect, of course).

So the problem is not the ALL_DATA_SOURCES_NODUPS function, but when all data sources in the graph template are using the same CDEF with those parameters some problem occurs.
Please show the rrdtool graph from graph management in debug mode. Then, please a screenshot of the graph template's graph item list naming the related cdefs.
Reinhard

Hi Reinhard,

I didn't understand what exactly you need.
Bellow a bit more information:
This is the normal output (not working on the current version):

Code: Select all

  RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="simapp2 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="cpu ticks" \
--slope-mode \
--font TITLE:8:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font AXIS:6:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font LEGEND:6:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font UNIT:6:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
DEF:a="/var/www/cacti/rra/simapp2_ucd_sscpurawsystem_98.rrd":ucd_ssCpuRawSystem:AVERAGE \
DEF:b="/var/www/cacti/rra/simapp2_ucd_sscpurawnice_97.rrd":ucd_ssCpuRawNice:AVERAGE \
DEF:c="/var/www/cacti/rra/simapp2_ucd_sscpurawuser_99.rrd":ucd_ssCpuRawUser:AVERAGE \
DEF:d="/var/www/cacti/rra/simapp2_ucd_sscpurawidle_96.rrd":ucd_ssCpuRawIdle:AVERAGE \
CDEF:cdefa=a,100,*,,/ \
CDEF:cdeff=b,100,*,,/ \
CDEF:cdefba=c,100,*,,/ \
CDEF:cdefbf=d,100,*,,/ \
AREA:cdefa#FF0000FF:"System"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefa:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdeff#00FF00FF:"Nice":STACK \
GPRINT:cdeff:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdeff:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdeff:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefba#0000FFFF:"User":STACK \
GPRINT:cdefba:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefba:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefba:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefba:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefbf#C0C0C0FF:"Idle":STACK \
GPRINT:cdefbf:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefbf:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefbf:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefbf:MAX:"Max\:%8.2lf %s" 

RRDTool Says:

ERROR: invalid rpn expression in: a,100,*,,/
Then I changed the CDEF on Item # 16 "(ucd_ssCpuRawIdle): Idle" to None.

Bellow the output:

Code: Select all

       RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="simapp2 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="cpu ticks" \
--slope-mode \
--font TITLE:8:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font AXIS:6:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font LEGEND:6:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font UNIT:6:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
DEF:a="/var/www/cacti/rra/simapp2_ucd_sscpurawsystem_98.rrd":ucd_ssCpuRawSystem:AVERAGE \
DEF:b="/var/www/cacti/rra/simapp2_ucd_sscpurawnice_97.rrd":ucd_ssCpuRawNice:AVERAGE \
DEF:c="/var/www/cacti/rra/simapp2_ucd_sscpurawuser_99.rrd":ucd_ssCpuRawUser:AVERAGE \
DEF:d="/var/www/cacti/rra/simapp2_ucd_sscpurawidle_96.rrd":ucd_ssCpuRawIdle:AVERAGE \
CDEF:cdefa=a,100,*,TIME,1233610156,GT,d,d,UN,0,d,IF,IF,/ \
CDEF:cdeff=b,100,*,TIME,1233610156,GT,d,d,UN,0,d,IF,IF,/ \
CDEF:cdefba=c,100,*,TIME,1233610156,GT,d,d,UN,0,d,IF,IF,/ \
CDEF:cdefbg=d,100,*,TIME,1233610156,GT,d,d,UN,0,d,IF,IF,/ \
AREA:cdefa#FF0000FF:"System"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefa:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdeff#00FF00FF:"Nice":STACK \
GPRINT:cdeff:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdeff:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdeff:MAX:"Max\:%8.2lf %s\n"  \
AREA:cdefba#0000FFFF:"User":STACK \
GPRINT:cdefba:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefba:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefba:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefba:MAX:"Max\:%8.2lf %s\n"  \
AREA:d#C0C0C0FF:"Idle":STACK \
GPRINT:cdefbg:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefbg:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefbg:MIN:"Min\:%8.2lf %s"  \
GPRINT:cdefbg:MAX:"Max\:%8.2lf %s" 

RRDTool Says:

OK
Please let me know if you need any more info.
Attachments
graph_template.PNG
graph_template.PNG (28.84 KiB) Viewed 10115 times
item_on_graph_template.PNG
item_on_graph_template.PNG (22.67 KiB) Viewed 10115 times
gsaray101
Cacti User
Posts: 233
Joined: Thu May 17, 2007 9:18 am

cacti version 0.8.7c have a problem with cdeff

Post by gsaray101 »

I am having the same problem with cpu graphs. Cdeff - relative percentage, is returning invalid rpn. Is this problem resolved? What is the solution?
piccilli
Posts: 8
Joined: Tue May 24, 2005 2:08 pm
Contact:

Re: cacti version 0.8.7c have a problem with cdeff

Post by piccilli »

gsaray101 wrote:I am having the same problem with cpu graphs. Cdeff - relative percentage, is returning invalid rpn. Is this problem resolved? What is the solution?
I've just opened a bug request.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

And I've assigned it to me :wink:
Everyone is asked to provide information requested there. To be honest, it plainly works in my environment
Reinhard
gitoshi
Posts: 2
Joined: Sun Feb 08, 2009 5:11 pm

same problem with ucd/net - Memory Usage (Linux)

Post by gitoshi »

same problem with ucd/net - Memory Usage (Linux)
work fine with 0.8.7b

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="whitebox - Memory Usage" \
--base=1024 \
--height=120 \
--width=550 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:12:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font AXIS:8:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font LEGEND:10:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font UNIT:8:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
DEF:a="/var/www/cacti/rra/whitebox_mem_buffers_543.rrd":mem_buffers:AVERAGE \
DEF:b="/var/www/cacti/rra/whitebox_mem_cache_544.rrd":mem_cache:AVERAGE \
DEF:c="/var/www/cacti/rra/whitebox_mem_free_545.rrd":mem_free:AVERAGE \
DEF:d="/var/www/cacti/rra/whitebox_mem_total_546.rrd":mem_total:AVERAGE \
CDEF:cdefa=g,e,-,c,-,a,-,1024,* \
CDEF:cdefe=a,1024,* \
CDEF:cdefi=b,1024,* \
CDEF:cdefbc=c,1024,* \
CDEF:cdefbg=d,1024,* \
AREA:cdefa#FF0000FF:"Memory Used" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s\n" \
AREA:cdefe#0000FFFF:"Memory Buffers":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Max\:%8.2lf %s\n" \
AREA:cdefi#00FF00FF:"Memory Cached":STACK \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Max\:%8.2lf %s\n" \
AREA:cdefbc#FF00FFFF:"Memory Free":STACK \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Max\:%8.2lf %s\n" \
LINE1:cdefbg#000000FF:"Memory Total" \
GPRINT:cdefbg:LAST:" Current\:%8.2lf %s"

RRDTool Says:

ERROR: invalid rpn expression in: g,e,-,c,-,a,-,1024,*


with the new patch I get the same error
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

To correct this, you simply have to alter your CDEF. Look at the graph syntax. We had some issue between 0.8.6x and 0.8.7 and we reverted in the latest version. You simply need to change that "g" to something else with the C release. Sorry about the confusion.

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?
gitoshi
Posts: 2
Joined: Sun Feb 08, 2009 5:11 pm

Post by gitoshi »

solved

CDEF:cdefa=d,b,-,c,-,a,-,1024,* \


why the old cdef don´t work with the new version??
deu439356
Cacti User
Posts: 73
Joined: Wed Aug 13, 2008 8:08 am

Post by deu439356 »

<EDIT2> [SOLVED] - The SVN revision didn't work, but the comments on the bug request helped me get this working. Thanks! </EDIT2>


TheWitness,

I am seeing the same issue, how do I go about correcting this?

<EDIT> I have also applied gandalf's patch. </EDIT>

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="<edited> - Memory" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:7: \
--font AXIS:6: \
--font LEGEND:6: \
--font UNIT:6: \
DEF:a="/var/www/cacti/rra/171/149239.rrd":mem_used:AVERAGE \
DEF:b="/var/www/cacti/rra/171/149239.rrd":mem_free:AVERAGE \
CDEF:cdefa=a,,/,100,* \
CDEF:cdeff=b,,/,100,* \
CDEF:cdefj= \
AREA:cdefa#FF0000FF:"Memory Used"  \
GPRINT:a:LAST:"Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"  \
GPRINT:cdefa:LAST:"Percent Used\:%8.0lf\n"  \
LINE3:cdeff#0000FFFF:"Memory Free"  \
GPRINT:b:LAST:"Current\:%8.0lf"  \
GPRINT:b:AVERAGE:"Average\:%8.0lf"  \
GPRINT:b:MAX:"Maximum\:%8.0lf\n"  \
GPRINT:cdefj:LAST:"Total\:%8.0lf\n" 

RRDTool Says:

ERROR: invalid rpn expression in: a,,/,100,*
Thanks for your help! 8.7c is very cool! :D
Attachments
memGraphTemp.jpg
memGraphTemp.jpg (1.15 MiB) Viewed 9870 times
memCDEF.jpg
memCDEF.jpg (776.09 KiB) Viewed 9870 times
jkirschbaum
Posts: 3
Joined: Wed Jan 28, 2009 3:05 am

Post by jkirschbaum »

The fix in the bug-notes http://bugs.cacti.net/view.php?id=1392#bugnotes works for me.

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

Post by gandalf »

So should 087d do
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests