CDEFs Error

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

Moderators: Developers, Moderators

Post Reply
dumoyi
Posts: 5
Joined: Mon Feb 02, 2009 1:24 am

CDEFs Error

Post by dumoyi »

First of all I'm sorry for my poor english

i've just upgraded cacti 0.8.7a -> 0.8.7c
then i got a problem with graph that using special CDEFs.

It;s a Debug Log
##############################################
RRDTool Command:

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Total - Traffic" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/xxx/rra/traffic_in_9.rrd":traffic_in:AVERAGE \
DEF:b="/xxx/rra/traffic_in_8.rrd":traffic_in:AVERAGE \
DEF:c="/xxx/rra/traffic_in_8.rrd":traffic_out:AVERAGE \
DEF:d="/xxx/rra/traffic_in_9.rrd":traffic_out:AVERAGE \
CDEF:cdefa=,8,* \
CDEF:cdefb=,8,* \
CDEF:cdeff=,8,* \
CDEF:cdefg=,8,* \
AREA:cdefa#00CF00:"" \
AREA:cdefb#00CF00:"Total_IN" \
GPRINT:cdefb:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdeff:"" \
LINE1:cdefg#0D006A:"Total_OUT" \
GPRINT:cdefg:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefg:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefg:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:

ERROR: invalid rpn expression ',8,*'
#############################################

My Special CDEFs is....Looks like a included image

It works very well with no problem in cacti-0.8.7a but make problem with 0.8.7c....T.T
how can I fix it? Please Help....
Attachments
cdefs.jpg
cdefs.jpg (32.89 KiB) Viewed 1108 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I suppose CURRENT_DATA_SOURCE would be recommended as a specific data source
Reinhard
dumoyi
Posts: 5
Joined: Mon Feb 02, 2009 1:24 am

Graph is show,but data isn't correct

Post by dumoyi »

gandalf wrote:I suppose CURRENT_DATA_SOURCE would be recommended as a specific data source
Reinhard
Thanks for your suppose gandalf...
I've change like change.jpg

then graph was shown but data wasn't correct...like total-test.jpg

and graph's In and Out was strange too...T.T

i want to show the graph source01.jpg + source02 in 1 graph.

It was work well in cacti 0.8.7a....
It was not working after upgrade cacti to 0.8.7c.....T.T

0.8.7a.jpg is graph in cacti-0.8.7a (same source)
Attachments
0.8.7a.jpg
0.8.7a.jpg (153.76 KiB) Viewed 1063 times
change.jpg
change.jpg (70.92 KiB) Viewed 1069 times
total.jpg
total.jpg (165.78 KiB) Viewed 1069 times
source-01.jpg
source-01.jpg (162.57 KiB) Viewed 1069 times
source-02.jpg
source-02.jpg (155.85 KiB) Viewed 1069 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Ok, I'm sorry for mis-reading the first time.
For aggregation, indeed SIMILAR... is correct.
And there is a known bug with 087c related to this. In some environments (not here, unfortunately) this pseudo data source is not computed correctly.

There's bug 1392 related to this. still in the works
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests