Total All Similar DS and Bytes to bits

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

Moderators: Developers, Moderators

Post Reply
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Total All Similar DS and Bytes to bits

Post by SecuringStuff »

Hi,

I have migrated CACTI from one server (A) to another (B)

Server A had CACTI 0.8.6h and Server B is currently running 0.8.7b.

All aggregated graphs that are migrated to server B do not show the correct values of Total All Similar DS and bytes to bits.
It seems like it is reading only one of the graph items instead of calculating the summary. The graph image shows the correct bandwidth usage, however not the correct values for on the LEGEND

No modifications were applied between Server A's configurations and Server B.
Server A is still working correctly

Sincerely,
Attachments
graph_image.png
graph_image.png (24.46 KiB) Viewed 3302 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit graph management and select the graph. Switch to DEBUg and post rrdtool graph output
Reinhard
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

gandalf wrote:Please visit graph management and select the graph. Switch to DEBUg and post rrdtool graph output
Reinhard
Hello Reinhard,

Thank you for replying to my post

Here is the out put for DEBUG

Code: Select all

/usr/src/rrdtool graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="ICC Total" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="ICC Total" \
--slope-mode \
--font TITLE:10:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font AXIS:8: \
--font LEGEND:8:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/routerr2_traffic_in_992.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/routerr2_traffic_in_993.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/cacti/rra/routerr2_traffic_in_994.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/cacti/rra/routerr2_traffic_in_995.rrd":traffic_in:AVERAGE \
DEF:e="/var/www/cacti/rra/routerr1_traffic_in_991.rrd":traffic_in:AVERAGE \
DEF:f="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_in:AVERAGE \
DEF:g="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_in:AVERAGE \
DEF:h="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_in:LAST \
DEF:i="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_in:MIN \
DEF:j="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_in:MAX \
DEF:ba="/var/www/cacti/rra/routerr2_traffic_in_992.rrd":traffic_out:AVERAGE \
DEF:bb="/var/www/cacti/rra/routerr2_traffic_in_993.rrd":traffic_out:AVERAGE \
DEF:bc="/var/www/cacti/rra/routerr2_traffic_in_994.rrd":traffic_out:AVERAGE \
DEF:bd="/var/www/cacti/rra/routerr2_traffic_in_995.rrd":traffic_out:AVERAGE \
DEF:be="/var/www/cacti/rra/routerr1_traffic_in_991.rrd":traffic_out:AVERAGE \
DEF:bf="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_out:AVERAGE \
DEF:bg="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_out:AVERAGE \
DEF:bh="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_out:LAST \
DEF:bi="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_out:MIN \
DEF:bj="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_out:MAX \
CDEF:cdefh=TIME,1227794989,GT,a,a,UN,0,a,IF,IF,TIME,1227794989,GT,b,b,UN,0,b,IF,IF,TIME,1227794989,GT,c,c,UN,0,c,IF,IF,TIME,1227794989,GT,d,d,UN,0,d,IF,IF,TIME,1227794989,GT,e,e,UN,0,e,IF,IF,TIME,1227794989,GT,f,f,UN,0,f,IF,IF,TIME,1227794989,GT,g,g,UN,0,g,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefi=TIME,1227794989,GT,h,h,UN,0,h,IF,IF,8,* \
CDEF:cdefj=TIME,1227794989,GT,a,a,UN,0,a,IF,IF,TIME,1227794989,GT,b,b,UN,0,b,IF,IF,TIME,1227794989,GT,c,c,UN,0,c,IF,IF,TIME,1227794989,GT,d,d,UN,0,d,IF,IF,TIME,1227794989,GT,e,e,UN,0,e,IF,IF,TIME,1227794989,GT,f,f,UN,0,f,IF,IF,TIME,1227794989,GT,g,g,UN,0,g,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefba=TIME,1227794989,GT,j,j,UN,0,j,IF,IF,8,* \
CDEF:cdefbi=TIME,1227794989,GT,ba,ba,UN,0,ba,IF,IF,TIME,1227794989,GT,bb,bb,UN,0,bb,IF,IF,TIME,1227794989,GT,bc,bc,UN,0,bc,IF,IF,TIME,1227794989,GT,bd,bd,UN,0,bd,IF,IF,TIME,1227794989,GT,be,be,UN,0,be,IF,IF,TIME,1227794989,GT,bf,bf,UN,0,bf,IF,IF,TIME,1227794989,GT,bg,bg,UN,0,bg,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefbj=TIME,1227794989,GT,bh,bh,UN,0,bh,IF,IF,8,* \
CDEF:cdefcb=TIME,1227794989,GT,bj,bj,UN,0,bj,IF,IF,8,* \
LINE1:a:""  \
LINE1:b:"":STACK \
LINE1:c:"":STACK \
LINE1:d:"":STACK \
LINE1:e:"":STACK \
LINE1:f:"":STACK \
LINE1:g:"":STACK \
AREA:cdefh#00CF00FF:"ICC-TOTAL(IN)"  \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefj:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefba:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:ba:""  \
LINE1:bb:"":STACK \
LINE1:bc:"":STACK \
LINE1:bd:"":STACK \
LINE1:be:"":STACK \
LINE1:bf:"":STACK \
LINE1:bg:"":STACK \
LINE1:cdefbi#0000FFFF:"ICC-TOTAL(OUT)"  \
GPRINT:cdefbj:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefbi:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefcb:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"Thu 27 Nov 17\:10\:03 AST 2008"
Sincerely,
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The problem lies with the DEFs used. There are several AVERAGEs in there and then three different ones: MAX, MIN, LAST.
When aggregation the totals, this AGGREGATE is build based on a SPECIFIC consolidation level, either AVERAGE or MAX or MIN or LAST. That's why the graph is "wrong".
How did you create this aggreagte, please?
Reinhard
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

gandalf wrote:The problem lies with the DEFs used. There are several AVERAGEs in there and then three different ones: MAX, MIN, LAST.
When aggregation the totals, this AGGREGATE is build based on a SPECIFIC consolidation level, either AVERAGE or MAX or MIN or LAST. That's why the graph is "wrong".
How did you create this aggreagte, please?
Reinhard
To create this graph I have created a new none-none graph and added all the items the first one as line and the others as stack for IN traffic and at the end added the CDEF for total DS and bytes to bits as described in a post that i read before on this forums. then I did the same for the OUT traffic.

This setup and this graph was working very well with my previous older CACTI but not anymore.

Changing the Average DEFs to LAST does not seem to change the situation either.

I so appreciate your assistance.

Sincerely,
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

In case that might help, I am here copying the DEBUG output for the very same graph but the working one from the old server

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="ICC Total" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="ICC Total" \
--slope-mode \
DEF:a="/var/www/cacti/rra/routerr2_traffic_in_992.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/routerr2_traffic_in_993.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/cacti/rra/routerr2_traffic_in_994.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/cacti/rra/routerr2_traffic_in_995.rrd":traffic_in:AVERAGE \
DEF:e="/var/www/cacti/rra/routerr1_traffic_in_991.rrd":traffic_in:AVERAGE \
DEF:f="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_in:AVERAGE \
DEF:g="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_in:AVERAGE \
DEF:h="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_in:AVERAGE \
DEF:i="/var/www/cacti/rra/routerr2_traffic_in_992.rrd":traffic_out:AVERAGE \
DEF:j="/var/www/cacti/rra/routerr2_traffic_in_993.rrd":traffic_out:AVERAGE \
DEF:ba="/var/www/cacti/rra/routerr2_traffic_in_994.rrd":traffic_out:AVERAGE \
DEF:bb="/var/www/cacti/rra/routerr2_traffic_in_995.rrd":traffic_out:AVERAGE \
DEF:bc="/var/www/cacti/rra/routerr1_traffic_in_991.rrd":traffic_out:AVERAGE \
DEF:bd="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_out:AVERAGE \
DEF:be="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_out:AVERAGE \
DEF:bf="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_out:AVERAGE \
CDEF:cdefh=TIME,1227896598,GT,a,a,UN,0,a,IF,IF,TIME,1227896598,GT,b,b,UN,0,b,IF,IF,TIME,1227896598,GT,c,c,UN,0,c,IF,IF,TIME,1227896598,GT,d,d,UN,0,d,IF,IF,TIME,1227896598,GT,e,e,UN,0,e,IF,IF,TIME,1227896598,GT,f,f,UN,0,f,IF,IF,TIME,1227896598,GT,h,h,UN,0,h,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefbi=TIME,1227896598,GT,i,i,UN,0,i,IF,IF,TIME,1227896598,GT,j,j,UN,0,j,IF,IF,TIME,1227896598,GT,ba,ba,UN,0,ba,IF,IF,TIME,1227896598,GT,bb,bb,UN,0,bb,IF,IF,TIME,1227896598,GT,bc,bc,UN,0,bc,IF,IF,TIME,1227896598,GT,bd,bd,UN,0,bd,IF,IF,TIME,1227896598,GT,bf,bf,UN,0,bf,IF,IF,+,+,+,+,+,+,8,* \
LINE1:a:""  \
LINE1:b:"":STACK \
LINE1:c:"":STACK \
LINE1:d:"":STACK \
LINE1:e:"":STACK \
LINE1:f:"":STACK \
LINE1:h:"":STACK \
AREA:cdefh#00CF00:"ICC-TOTAL(IN)"  \
GPRINT:cdefh:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:i:""  \
LINE1:j:"":STACK \
LINE1:ba:"":STACK \
LINE1:bb:"":STACK \
LINE1:bc:"":STACK \
LINE1:bd:"":STACK \
LINE1:bf:"":STACK \
LINE1:cdefbi#0000FF:"ICC-TOTAL(OUT)"  \
GPRINT:cdefbi:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefbi:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefbi:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"Fri 28 Nov 21\:25\:22 AST 2008"
Regards,
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The old server is a 086* style? I was assuming that the DEFs of your last post look the way they do. In this case, I'm pretty sure that I recently added the required patch to 087c (currently available at SVN only, not yet packaged into a new beta).
Reinhard
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

gandalf wrote:The old server is a 086* style? I was assuming that the DEFs of your last post look the way they do. In this case, I'm pretty sure that I recently added the required patch to 087c (currently available at SVN only, not yet packaged into a new beta).
Reinhard
Thank you Reinhard. i think i will wait for the package for now and install the SVN on a testing machine.
Thank you again for your assistance.

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

Post by gandalf »

SecuringStuff wrote:
gandalf wrote:The old server is a 086* style? I was assuming that the DEFs of your last post look the way they do. In this case, I'm pretty sure that I recently added the required patch to 087c (currently available at SVN only, not yet packaged into a new beta).
Reinhard
Thank you Reinhard. i think i will wait for the package for now and install the SVN on a testing machine.
Thank you again for your assistance.

Sincerely,
If you do, please let me know your findings. I really appreciate this
Reinhard
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

Hello Again,

I have installed the SVN version of cacti and migrated the old CACTI to it.
There is still a difference in the output and the graph does not seem to be working
Here I will post the output for the same graph from both CACTI versions

0.8.6h

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="ICC Total" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="ICC Total" \
--slope-mode \
DEF:a="/var/www/cacti/rra/routerr2_traffic_in_992.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/routerr2_traffic_in_993.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/cacti/rra/routerr2_traffic_in_994.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/cacti/rra/routerr2_traffic_in_995.rrd":traffic_in:AVERAGE \
DEF:e="/var/www/cacti/rra/routerr1_traffic_in_991.rrd":traffic_in:AVERAGE \
DEF:f="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_in:AVERAGE \
DEF:g="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_in:AVERAGE \
DEF:h="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_in:AVERAGE \
DEF:i="/var/www/cacti/rra/routerr2_traffic_in_992.rrd":traffic_out:AVERAGE \
DEF:j="/var/www/cacti/rra/routerr2_traffic_in_993.rrd":traffic_out:AVERAGE \
DEF:ba="/var/www/cacti/rra/routerr2_traffic_in_994.rrd":traffic_out:AVERAGE \
DEF:bb="/var/www/cacti/rra/routerr2_traffic_in_995.rrd":traffic_out:AVERAGE \
DEF:bc="/var/www/cacti/rra/routerr1_traffic_in_991.rrd":traffic_out:AVERAGE \
DEF:bd="/var/www/cacti/rra/routerr1_traffic_in_990.rrd":traffic_out:AVERAGE \
DEF:be="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_out:AVERAGE \
DEF:bf="/var/www/cacti/rra/routerr1_traffic_in_989.rrd":traffic_out:AVERAGE \
CDEF:cdefh=TIME,1229770529,GT,a,a,UN,0,a,IF,IF,TIME,1229770529,GT,b,b,UN,0,b,IF,IF,TIME,1229770529,GT,c,c,UN,0,c,IF,IF,TIME,1229770529,GT,d,d,UN,0,d,IF,IF,TIME,1229770529,GT,e,e,UN,0,e,IF,IF,TIME,1229770529,GT,f,f,UN,0,f,IF,IF,TIME,1229770529,GT,h,h,UN,0,h,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefbi=TIME,1229770529,GT,i,i,UN,0,i,IF,IF,TIME,1229770529,GT,j,j,UN,0,j,IF,IF,TIME,1229770529,GT,ba,ba,UN,0,ba,IF,IF,TIME,1229770529,GT,bb,bb,UN,0,bb,IF,IF,TIME,1229770529,GT,bc,bc,UN,0,bc,IF,IF,TIME,1229770529,GT,bd,bd,UN,0,bd,IF,IF,TIME,1229770529,GT,bf,bf,UN,0,bf,IF,IF,+,+,+,+,+,+,8,* \
LINE1:a:""  \
LINE1:b:"":STACK \
LINE1:c:"":STACK \
LINE1:d:"":STACK \
LINE1:e:"":STACK \
LINE1:f:"":STACK \
LINE1:h:"":STACK \
AREA:cdefh#00CF00:"ICC-TOTAL(IN)"  \
GPRINT:cdefh:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:i:""  \
LINE1:j:"":STACK \
LINE1:ba:"":STACK \
LINE1:bb:"":STACK \
LINE1:bc:"":STACK \
LINE1:bd:"":STACK \
LINE1:bf:"":STACK \
LINE1:cdefbi#0000FF:"ICC-TOTAL(OUT)"  \
GPRINT:cdefbi:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefbi:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefbi:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"Sat 20 Dec 14\:00\:20 AST 2008" 

RRDTool Says:

OK
0.8.7c

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="ICC Total" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="ICC Total" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/cacti2/rra/routerr2_traffic_in_992.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti2/rra/routerr2_traffic_in_993.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/cacti2/rra/routerr2_traffic_in_994.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/cacti2/rra/routerr2_traffic_in_995.rrd":traffic_in:AVERAGE \
DEF:e="/var/www/cacti2/rra/routerr1_traffic_in_991.rrd":traffic_in:AVERAGE \
DEF:f="/var/www/cacti2/rra/routerr1_traffic_in_990.rrd":traffic_in:AVERAGE \
DEF:g="/var/www/cacti2/rra/routerr1_traffic_in_989.rrd":traffic_in:AVERAGE \
DEF:h="/var/www/cacti2/rra/routerr1_traffic_in_989.rrd":traffic_in:LAST \
DEF:i="/var/www/cacti2/rra/routerr1_traffic_in_989.rrd":traffic_in:MIN \
DEF:j="/var/www/cacti2/rra/routerr1_traffic_in_989.rrd":traffic_in:MAX \
DEF:ba="/var/www/cacti2/rra/routerr2_traffic_in_992.rrd":traffic_out:AVERAGE \
DEF:bb="/var/www/cacti2/rra/routerr2_traffic_in_993.rrd":traffic_out:AVERAGE \
DEF:bc="/var/www/cacti2/rra/routerr2_traffic_in_994.rrd":traffic_out:AVERAGE \
DEF:bd="/var/www/cacti2/rra/routerr2_traffic_in_995.rrd":traffic_out:AVERAGE \
DEF:be="/var/www/cacti2/rra/routerr1_traffic_in_991.rrd":traffic_out:AVERAGE \
DEF:bf="/var/www/cacti2/rra/routerr1_traffic_in_990.rrd":traffic_out:AVERAGE \
DEF:bg="/var/www/cacti2/rra/routerr1_traffic_in_989.rrd":traffic_out:AVERAGE \
DEF:bh="/var/www/cacti2/rra/routerr1_traffic_in_989.rrd":traffic_out:LAST \
DEF:bi="/var/www/cacti2/rra/routerr1_traffic_in_989.rrd":traffic_out:MIN \
DEF:bj="/var/www/cacti2/rra/routerr1_traffic_in_989.rrd":traffic_out:MAX \
CDEF:cdefh=TIME,1229769614,GT,a,a,UN,0,a,IF,IF,TIME,1229769614,GT,b,b,UN,0,b,IF,IF,TIME,1229769614,GT,c,c,UN,0,c,IF,IF,TIME,1229769614,GT,d,d,UN,0,d,IF,IF,TIME,1229769614,GT,e,e,UN,0,e,IF,IF,TIME,1229769614,GT,f,f,UN,0,f,IF,IF,TIME,1229769614,GT,g,g,UN,0,g,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefi=TIME,1229769614,GT,h,h,UN,0,h,IF,IF,8,* \
CDEF:cdefba=TIME,1229769614,GT,j,j,UN,0,j,IF,IF,8,* \
CDEF:cdefbi=TIME,1229769614,GT,ba,ba,UN,0,ba,IF,IF,TIME,1229769614,GT,bb,bb,UN,0,bb,IF,IF,TIME,1229769614,GT,bc,bc,UN,0,bc,IF,IF,TIME,1229769614,GT,bd,bd,UN,0,bd,IF,IF,TIME,1229769614,GT,be,be,UN,0,be,IF,IF,TIME,1229769614,GT,bf,bf,UN,0,bf,IF,IF,TIME,1229769614,GT,bg,bg,UN,0,bg,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefbj=TIME,1229769614,GT,bh,bh,UN,0,bh,IF,IF,8,* \
CDEF:cdefcb=TIME,1229769614,GT,bj,bj,UN,0,bj,IF,IF,8,* \
LINE1:a:""  \
LINE1:b:"":STACK \
LINE1:c:"":STACK \
LINE1:d:"":STACK \
LINE1:e:"":STACK \
LINE1:f:"":STACK \
LINE1:g:"":STACK \
AREA:cdefh#00CF00FF:"ICC-TOTAL(IN)"  \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefba:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:ba:""  \
LINE1:bb:"":STACK \
LINE1:bc:"":STACK \
LINE1:bd:"":STACK \
LINE1:be:"":STACK \
LINE1:bf:"":STACK \
LINE1:bg:"":STACK \
LINE1:cdefbi#0000FFFF:"ICC-TOTAL(OUT)"  \
GPRINT:cdefbj:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefbi:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefcb:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"Wed 17 Dec 04\:21\:23 CST 2008" 

RRDTool Says:
OK

SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

Hello again,

By creating the graph manually, the CDEF works for the Area graph item but not for the LEGEND, what am I doing wrong?

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="o Total" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="o Total" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/ry-isp-r1_traffic_in_52.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/rra/ry-isp-r1_traffic_in_53.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/html/rra/ry-isp-r1_traffic_in_63.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/html/rra/ry-isp-r2_traffic_in_74.rrd":traffic_in:AVERAGE \
DEF:e="/var/www/html/rra/ry-isp-r2_traffic_in_75.rrd":traffic_in:AVERAGE \
DEF:f="/var/www/html/rra/ry-isp-r2_traffic_in_76.rrd":traffic_in:AVERAGE \
DEF:g="/var/www/html/rra/ry-isp-r2_traffic_in_77.rrd":traffic_in:AVERAGE \
DEF:h="/var/www/html/rra/ry-isp-r2_traffic_in_77.rrd":traffic_in:LAST \
DEF:i="/var/www/html/rra/ry-isp-r2_traffic_in_77.rrd":traffic_in:MIN \
DEF:j="/var/www/html/rra/ry-isp-r2_traffic_in_77.rrd":traffic_in:MAX \
CDEF:cdefh=TIME,1229843771,GT,a,a,UN,0,a,IF,IF,TIME,1229843771,GT,b,b,UN,0,b,IF,IF,TIME,1229843771,GT,c,c,UN,0,c,IF,IF,TIME,1229843771,GT,d,d,UN,0,d,IF,IF,TIME,1229843771,GT,e,e,UN,0,e,IF,IF,TIME,1229843771,GT,f,f,UN,0,f,IF,IF,TIME,1229843771,GT,g,g,UN,0,g,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefi=TIME,1229843771,GT,h,h,UN,0,h,IF,IF,8,* \
CDEF:cdefba=TIME,1229843771,GT,j,j,UN,0,j,IF,IF,8,* \
LINE1:a:""  \
LINE1:b:"":STACK \
LINE1:c:"":STACK \
LINE1:d:"":STACK \
LINE1:e:"":STACK \
LINE1:f:"":STACK \
LINE1:g:"":STACK \
AREA:cdefh#00CF00FF:"ICC-TOTAL(IN)\:"  \
GPRINT:cdefi:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefba:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

OK
Attachments
graph_image.png
graph_image.png (18.44 KiB) Viewed 2909 times
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

The problem is only with the GPRINT values and not the area.

How can that happen. The AREA that is using SIMILAR_DATA_SOURCES_NODUPS and bytes to bits is showing the correct values but the GPRINT values are not correct.
They correspond only one interface, the last interface added.

I appreciate any hints or help regarding this issue.

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

Post by gandalf »

This was using the BETA1 or the BETA2 of cacti 087c?
In case the 2nd one was used, I'll need a mysqldump of your cacti database.
Reinhard
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

gandalf wrote:This was using the BETA1 or the BETA2 of cacti 087c?
In case the 2nd one was used, I'll need a mysqldump of your cacti database.
Reinhard
Actually It is a 0.8.7b not the C that I have added the aggregate to.

After adding the script http://svn.cacti.net/viewvc/cacti/branc ... 74&r2=4795
It worked fine.
Even though this 8.7b is not migrated. it was created from scratch yet it needed that script to run.

By the way Reinhard in case I forgot to mention earlier, YOU ROCK

Thanks man
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests