Help printing SUM

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

Moderators: Developers, Moderators

xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Help printing SUM

Post by xefil »

Hello!

I've a problem creating a graph, ok, have to learn a little better how it works. Btw, I've create a graph with sum of different interfaces. I would like to print ad the end a line for incoming and outgoing traffic, like:

Total INCOMING: Current - Average - Max - Total
Total OUTGOING: Current - Average - Max - Total
Total INCOMING+OUTGOING

How can I print these vaules?


RRDTOOL COMMAND:

Code: Select all

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Posta FrontEnd" \
--base=1000 \
--height=200 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/opt/cacti/rra/dis2tn__traffic_in_35.rrd":traffic_in:AVERAGE \
DEF:b="/opt/cacti/rra/dis2tn__traffic_in_36.rrd":traffic_in:AVERAGE \
DEF:c="/opt/cacti/rra/dis2tn__traffic_in_34.rrd":traffic_in:AVERAGE \
DEF:d="/opt/cacti/rra/dis3tn__traffic_in_32.rrd":traffic_in:AVERAGE \
DEF:e="/opt/cacti/rra/dis3tn__traffic_in_33.rrd":traffic_in:AVERAGE \
DEF:f="/opt/cacti/rra/dis3tn__traffic_in_31.rrd":traffic_in:AVERAGE \
DEF:g="/opt/cacti/rra/dis2tn__traffic_in_35.rrd":traffic_out:AVERAGE \
DEF:h="/opt/cacti/rra/dis2tn__traffic_in_36.rrd":traffic_out:AVERAGE \
DEF:i="/opt/cacti/rra/dis2tn__traffic_in_34.rrd":traffic_out:AVERAGE \
DEF:j="/opt/cacti/rra/dis3tn__traffic_in_32.rrd":traffic_out:AVERAGE \
DEF:ba="/opt/cacti/rra/dis3tn__traffic_in_33.rrd":traffic_out:AVERAGE \
DEF:bb="/opt/cacti/rra/dis3tn__traffic_in_31.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefb=b,8,* \
CDEF:cdefc=c,8,* \
CDEF:cdefd=d,8,* \
CDEF:cdefe=e,8,* \
CDEF:cdeff=f,8,* \
CDEF:cdefg=g,8,*,-1,* \
CDEF:cdefh=h,8,*,-1,* \
CDEF:cdefi=i,8,*,-1,* \
CDEF:cdefj=j,8,*,-1,* \
CDEF:cdefba=ba,8,*,-1,* \
CDEF:cdefbb=bb,8,*,-1,* \
AREA:cdefa#004359:"LAN1 Inbound (dis2)\n"  \
AREA:cdefb#005D57:"LAN2 Inbound (dis2)\n":STACK \
AREA:cdefc#00694A:"NTMAIL Inbound (dis2)\n":STACK \
AREA:cdefd#157419:"LAN1 Inbound (dis3)\n":STACK \
AREA:cdefe#008A6D:"LAN2 Inbound (dis3)\n":STACK \
AREA:cdeff#009F67:"NTMAIL Inbound (dis3)\n":STACK \
AREA:cdefg#FFF200:"LAN1 Outbound (dis2)\n"  \
AREA:cdefh#FFD660:"LAN2 Outbound (dis2)\n":STACK \
AREA:cdefi#FFC73B:"NTMAIL Outbound (dis2)\n":STACK \
AREA:cdefj#FFAB00:"LAN1 Outbound (dis3)\n":STACK \
AREA:cdefba#FF7D00:"LAN2 Outbound (dis3)\n":STACK \
AREA:cdefbb#FF5700:"NTMAIL Outbound (dis3)\n":STACK \
COMMENT:"Thu 05 Apr 10\:50\:03 CEST 2007\n" 
Attachments
My Graph
My Graph
cacti1.png (90.42 KiB) Viewed 6442 times
Screenshot 1
Screenshot 1
cacti2.jpg (103.4 KiB) Viewed 6442 times
Screenshot 2
Screenshot 2
cacti3.jpg (170.4 KiB) Viewed 6442 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see http://docs.cacti.net/node/50. There's a chapter on summation
Reinhard
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Ok, sorry, but using

Code: Select all

"COMMENT: Total In: |sum:auto:current:2:auto|"
the result is

Code: Select all

"COMMENT:"Total In\:  0 bytes\n"
How can I select that all traffic_in should be sum? (curr, average, total).
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Oops, I missed the fact that you want IN/OUT to be printed instead of a grand total.
So let's try some CDEF magic.
Create two new CDEF that read cdef=SIMILAR_DATA_SOURCES_NODUPS and cdef=SIMILAR_DATA_SOURCES_NODUPY,-1,*. Add a new Graph Item, Data Source = "NTMAIL inbound" (this is to get the data source "traffic_in"), to your Graph Template and apply this new CDEF. Make it a black LINE1. Add legend with this cdef applied as well.
Repeat this step, this time with Data Source "NTMAIL outbound" (to get the reference to "traffic_out"), suing the second cdef. Apply Legend as well, this time using the first cdef.
Please post results. And please add the DEBUG output from Graph Management to verify.
Reinhard
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Ok, now I think i'm in the right direction, BTW the result isn't exact, it seems.

Code: Select all

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Posta FrontEnd" \
--base=1000 \
--height=200 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/opt/cacti/rra/dis2tn__traffic_in_35.rrd":traffic_in:AVERAGE \
DEF:b="/opt/cacti/rra/dis2tn__traffic_in_36.rrd":traffic_in:AVERAGE \
DEF:c="/opt/cacti/rra/dis2tn__traffic_in_34.rrd":traffic_in:AVERAGE \
DEF:d="/opt/cacti/rra/dis3tn__traffic_in_32.rrd":traffic_in:AVERAGE \
DEF:e="/opt/cacti/rra/dis3tn__traffic_in_33.rrd":traffic_in:AVERAGE \
DEF:f="/opt/cacti/rra/dis3tn__traffic_in_31.rrd":traffic_in:AVERAGE \
DEF:g="/opt/cacti/rra/dis2tn__traffic_in_35.rrd":traffic_out:AVERAGE \
DEF:h="/opt/cacti/rra/dis2tn__traffic_in_36.rrd":traffic_out:AVERAGE \
DEF:i="/opt/cacti/rra/dis2tn__traffic_in_34.rrd":traffic_out:AVERAGE \
DEF:j="/opt/cacti/rra/dis3tn__traffic_in_32.rrd":traffic_out:AVERAGE \
DEF:ba="/opt/cacti/rra/dis3tn__traffic_in_33.rrd":traffic_out:AVERAGE \
DEF:bb="/opt/cacti/rra/dis3tn__traffic_in_31.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefb=b,8,* \
CDEF:cdefc=c,8,* \
CDEF:cdefd=d,8,* \
CDEF:cdefe=e,8,* \
CDEF:cdeff=f,8,* \
CDEF:cdefg=g,8,*,-1,* \
CDEF:cdefh=h,8,*,-1,* \
CDEF:cdefi=i,8,*,-1,* \
CDEF:cdefj=j,8,*,-1,* \
CDEF:cdefba=ba,8,*,-1,* \
CDEF:cdefbb=bb,8,*,-1,* \
CDEF:cdefbc=TIME,1175779407,GT,a,a,UN,0,a,IF,IF,TIME,1175779407,GT,b,b,UN,0,b,IF,IF,TIME,1175779407,GT,c,c,UN,0,c,IF,IF,TIME,1175779407,GT,d,d,UN,0,d,IF,IF,TIME,1175779407,GT,e,e,UN,0,e,IF,IF,TIME,1175779407,GT,f,f,UN,0,f,IF,IF,+,+,+,+,+ \
CDEF:cdefbd=TIME,1175779407,GT,g,g,UN,0,g,IF,IF,TIME,1175779407,GT,h,h,UN,0,h,IF,IF,TIME,1175779407,GT,i,i,UN,0,i,IF,IF,TIME,1175779407,GT,j,j,UN,0,j,IF,IF,TIME,1175779407,GT,ba,ba,UN,0,ba,IF,IF,TIME,1175779407,GT,bb,bb,UN,0,bb,IF,IF,+,+,+,+,+,-1,* \
AREA:cdefa#004359:"LAN1 Inbound (dis2)\n"  \
AREA:cdefb#005D57:"LAN2 Inbound (dis2)\n":STACK \
AREA:cdefc#00694A:"NTMAIL Inbound (dis2)\n":STACK \
AREA:cdefd#157419:"LAN1 Inbound (dis3)\n":STACK \
AREA:cdefe#008A6D:"LAN2 Inbound (dis3)\n":STACK \
AREA:cdeff#009F67:"NTMAIL Inbound (dis3)\n":STACK \
AREA:cdefg#FFF200:"LAN1 Outbound (dis2)\n"  \
AREA:cdefh#FFD660:"LAN2 Outbound (dis2)\n":STACK \
AREA:cdefi#FFC73B:"NTMAIL Outbound (dis2)\n":STACK \
AREA:cdefj#FFAB00:"LAN1 Outbound (dis3)\n":STACK \
AREA:cdefba#FF7D00:"LAN2 Outbound (dis3)\n":STACK \
AREA:cdefbb#FF5700:"NTMAIL Outbound (dis3)\n":STACK \
COMMENT:"Total In\: 10.08 GB\n"  \
COMMENT:"Total Out\: 5.43 GB\n"  \
COMMENT:"Thu 05 Apr 15\:25\:03 CEST 2007\n"

and...

Code: Select all

Item # 1 	(traffic_in): LAN1 Inbound (dis2)<HR> 	AREA 	AVERAGE
Item # 2 	(traffic_in): LAN2 Inbound (dis2)<HR> 	STACK 	AVERAGE
Item # 3 	(traffic_in): NTMAIL Inbound (dis2)<HR> 	STACK 	AVERAGE
Item # 4 	(traffic_in): LAN1 Inbound (dis3)<HR> 	STACK 	AVERAGE
Item # 5 	(traffic_in): LAN2 Inbound (dis3)<HR> 	STACK 	AVERAGE
Item # 6 	(traffic_in): NTMAIL Inbound (dis3)<HR> 	STACK 	AVERAGE
Item # 7 	(traffic_out): LAN1 Outbound (dis2)<HR> 	AREA 	AVERAGE
Item # 8 	(traffic_out): LAN2 Outbound (dis2)<HR> 	STACK 	AVERAGE
Item # 9 	(traffic_out): NTMAIL Outbound (dis2)<HR> 	STACK 	AVERAGE
Item # 10 	(traffic_out): LAN1 Outbound (dis3)<HR> 	STACK 	AVERAGE
Item # 11 	(traffic_out): LAN2 Outbound (dis3)<HR> 	STACK 	AVERAGE
Item # 12 	(traffic_out): NTMAIL Outbound (dis3)<HR> 	STACK 	AVERAGE
Item # 13 	COMMENT: Total In: |sum:auto:current:2:auto|<HR> 	COMMENT 	AVERAGE
Item # 14 	COMMENT: Total Out: |sum:auto:current:2:auto|<HR> 	COMMENT 	AVERAGE
Item # 15 	COMMENT: |date_time|<HR> 	COMMENT 	AVERAGE

The result of total _shuold_ be the total In/Out, right?
How then create total IN/OUT in the current moment?
Look to the total. One is the half, even if the traffic in and out is very similar, what's wrong?

I only would like to have a CURRENT IN (for all 3 interfaces) in MBit/s and the same for the OUTPUT.
Then, in addition, a TOTAL IN (AND OUT) for the timerange of the graph.
Last but not least, a TOTAL (in+out), that's it, seems difficult, I can't.
And these vaules are so strange :(

Simon

Thank's Simon
Attachments
Sum
Sum
cacti1.png (91.12 KiB) Viewed 6418 times
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

New Graph

Post by xefil »

Hi,

It drives me crazy :P
I post here an example of a NEW graph, easier, with only two interfaces, in hope to find a solution, step-by-step :)

The RRDTool command:

Code: Select all

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Aggregate TEST" \
--base=1000 \
--height=300 \
--width=800 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/opt/cacti/rra/dis2tn_traffic_in_35.rrd":traffic_in:AVERAGE \
DEF:b="/opt/cacti/rra/dis2tn_traffic_in_36.rrd":traffic_in:AVERAGE \
DEF:c="/opt/cacti/rra/dis2tn_traffic_in_35.rrd":traffic_out:AVERAGE \
DEF:d="/opt/cacti/rra/dis2tn_traffic_in_36.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefba=c,8,* \
CDEF:cdefbf=d,8,* \
CDEF:cdefca=TIME,1175807947,GT,a,a,UN,0,a,IF,IF,TIME,1175807947,GT,b,b,UN,0,b,IF,IF,+,8,* \
CDEF:cdefcb=TIME,1175807947,GT,c,c,UN,0,c,IF,IF,TIME,1175807947,GT,d,d,UN,0,d,IF,IF,+,8,* \
AREA:cdefa#FAFD9E:"Vlan10 IN"  \
GPRINT:cdefa:LAST:"Cur\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Total In\:  11.01 GB\n"  \
AREA:cdeff#F9FD5F:"Vlan20 IN":STACK \
GPRINT:cdeff:LAST:"         Cur\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdeff:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Total In\:  36.95 GB\n"  \
AREA:cdefba#FAFD9E:"Vlan10 OUT"  \
GPRINT:cdefba:LAST:"Cur\:%8.2lf %s"  \
GPRINT:cdefba:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefba:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Total Out\: 5.56 GB\n"  \
AREA:cdefbf#F9FD5F:"Vlan20 OUT":STACK \
GPRINT:cdefbf:LAST:"        Cur\:%8.2lf %s"  \
GPRINT:cdefbf:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefbf:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Total Out\: 29.14 GB\n"  \
LINE1:cdefca#000000:"Total In\: 11.01 GB\n"  \
LINE1:cdefcb#000000:"Total Out\: 5.56 GB\n"  \
COMMENT:"Total Traffic Throughput\:  99.23 GB" 
As you can see, the "Total In" is equal to "VLAN10 Total IN" and "Total Out" is equal to "VLAN10 Total OUT".
The Total In should be "VLAN10 In + VLAN20 In"
The Total Out shold be "VLAN10 Out + VLAN20 Out"
But I think the RRDTool Command is right.....

Item21 and Item22 have a CDEF Function (cdef=SIMILAR_DATA_SOURCES_NODUPS,8,*)

Also I would like to have an output in this way:

Total IN Cur: 2,19M Avg: 4,44M Max: 12,54 Total: 47,14GB
the same for the output.

The last line should be correct, it means, TOTALIN + TOTALOUT.

Hope it's all, thanks :)

Simon
Attachments
cacti2.jpg
cacti2.jpg (145.5 KiB) Viewed 6387 times
cacti3.jpg
cacti3.jpg (168.21 KiB) Viewed 6387 times
cacti1.jpg
cacti1.jpg (125.18 KiB) Viewed 6387 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You did not follow my instructions
gandalf wrote:Create two new CDEF that read cdef=SIMILAR_DATA_SOURCES_NODUPS and cdef=SIMILAR_DATA_SOURCES_NODUPS,-1,*.
Please post a screenshot of both CDEFs.
Then
Add a new Graph Item, Data Source = "NTMAIL inbound" (this is to get the data source "traffic_in"), to your Graph Template and apply this new CDEF. Make it a black LINE1.
Please post a screenshot of the Graph Tenplate at this step
Add legend with this cdef applied as well.
This one is optional. If you want to have the numbers, you will need them.
Repeat this step, this time with Data Source "NTMAIL outbound" (to get the reference to "traffic_out"), suing the second cdef. Apply Legend as well, this time using the first cdef.
Please post results. And please add the DEBUG output from Graph Management to verify.
That's for the OUTBOUND stuff.
Let's stop here; grand total will be next step
Reinhard
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Hi!

I've semplified the graph trying with only two interfaces, I'm near to the end solution.
My problems are always the same:
  • The "Sum Total In" (both IN interfaces) is equal to the sum of the "Vlan10 IN" single interface (the same for "Sum Total Out")
    The "Total Traffic Troughtout" is wrong. Should be Vlan10IN+Vlan20IN+Vlan10OUT+Vlan20OUT, but its the sum of Vlan10IN+Vlan20IN+Vlan10OUT+Vlan20OUT+Vlan10IN+Vlan10OUT again
    The alignment of the first line is wrong, ok, it's not so important ;)
Here the steps:

1. Created 2 CDEF as you said, but with a x8 to convert it into bits. (img attached).

2. Created Graph Item with Datasource "traffic_in" of VLAN10 with CDEF applied. It's a Black Line, shown into graph. The same for traffic_out, always choosing Vlan10, but this time I've applied the other CDEF (*-8). (img attached). Legend "Total In" and "Total Out" (items 22 + 27)

RRDTool Command:

Code: Select all

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Aggregate TEST" \
--base=1000 \
--height=300 \
--width=800 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/opt/cacti/rra/dis2tn_aknet_it_traffic_in_35.rrd":traffic_in:AVERAGE \
DEF:b="/opt/cacti/rra/dis2tn_aknet_it_traffic_in_36.rrd":traffic_in:AVERAGE \
DEF:c="/opt/cacti/rra/dis2tn_aknet_it_traffic_in_35.rrd":traffic_out:AVERAGE \
DEF:d="/opt/cacti/rra/dis2tn_aknet_it_traffic_in_36.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefba=c,8,*,-1,* \
CDEF:cdefbb=c,8,* \
CDEF:cdefbf=d,8,*,-1,* \
CDEF:cdefbg=d,8,* \
CDEF:cdefcb=TIME,1175981267,GT,a,a,UN,0,a,IF,IF,TIME,1175981267,GT,b,b,UN,0,b,IF,IF,+,8,* \
CDEF:cdefcg=TIME,1175981267,GT,c,c,UN,0,c,IF,IF,TIME,1175981267,GT,d,d,UN,0,d,IF,IF,+,-8,* \
CDEF:cdefch=TIME,1175981267,GT,c,c,UN,0,c,IF,IF,TIME,1175981267,GT,d,d,UN,0,d,IF,IF,+,8,* \
AREA:cdefa#FFC73B:"Vlan10 IN"  \
GPRINT:cdefa:LAST:"  Cur\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Total In\:  3.03 GB\n"  \
AREA:cdeff#F9FD5F:"Vlan20 IN":STACK \
GPRINT:cdeff:LAST:" Cur\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdeff:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Total In\:  10.78 GB\n"  \
AREA:cdefba#FFC73B:"Vlan10 OUT"  \
GPRINT:cdefbb:LAST:"Cur\:%8.2lf %s"  \
GPRINT:cdefbb:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefbb:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Total Out\: 3.64 GB\n"  \
AREA:cdefbf#F9FD5F:"Vlan20 OUT":STACK \
GPRINT:cdefbg:LAST:"Cur\:%8.2lf %s"  \
GPRINT:cdefbg:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefbg:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Total Out\: 8.5 GB\n"  \
COMMENT:"----------------\n"  \
LINE1:cdefcb#000000:"Total In"  \
GPRINT:cdefcb:LAST:"  Cur\:%8.2lf %s"  \
GPRINT:cdefcb:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefcb:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Sum Total In\: 3.03 GB\n"  \
LINE1:cdefcg#000000:"Total Out\:"  \
GPRINT:cdefch:LAST:"Cur\:%8.2lf %s"  \
GPRINT:cdefch:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:cdefch:MAX:"Max\:%8.2lf %s"  \
COMMENT:"Sum Total Out\: 3.64 GB\n"  \
COMMENT:"Total Traffic Throughput\: 32.61 GB" 
Thank's for your help!

Simon
Attachments
cacti5.jpg
cacti5.jpg (179.67 KiB) Viewed 6349 times
cacti4.jpg
cacti4.jpg (111.61 KiB) Viewed 6349 times
cacti3.jpg
cacti3.jpg (111.18 KiB) Viewed 6349 times
cacti2.jpg
cacti2.jpg (62.66 KiB) Viewed 6349 times
cacti1.jpg
cacti1.jpg (62.75 KiB) Viewed 6349 times
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

This is the graph
Attachments
cacti6.jpg
cacti6.jpg (131.2 KiB) Viewed 6346 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Well, this will get a bit complicated, but let's try.
Referring to the line Total In, I suppose, that you've selected the VLAN10 IN data source. To compute the "Amount of data tranferred for all Input data sources", you've added the COMMENT |sum,auto,current,2,auto|. In this case, the first current refers to the currently selected data source VLAN10 IN. So the total amount equals the total for VLAN10 IN. It would be fine to have sth like |sum,auto,similar_data_sources,2,auto| to cope with that. But unfortunately, there is no such variable (see here)

To conclude: You will have to leave the "Total Amount of Bytes transferred" off of "Total In" and "Total Out" lines.


Reinhard

BTB: Of course you may have a go to implement the missing feature :wink:
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Ok, thank's Gandalf. I've removed tutal in + out.
Last thing, what about The "Total Traffic Troughtput"?
Should be Vlan10IN+Vlan20IN+Vlan10OUT+Vlan20OUT, but its the sum of Vlan10IN+Vlan20IN+Vlan10OUT+Vlan20OUT+Vlan10IN+Vlan10OUT again.

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

Post by gandalf »

xefil wrote:Ok, thank's Gandalf. I've removed tutal in + out.
Last thing, what about The "Total Traffic Troughtput"?
Should be Vlan10IN+Vlan20IN+Vlan10OUT+Vlan20OUT, but its the sum of Vlan10IN+Vlan20IN+Vlan10OUT+Vlan20OUT+Vlan10IN+Vlan10OUT again.

Simon
I kind of feared that. The TOTAL stuff will include even the subtotals for In/Out. Please don't ask me, if this is intended behaviour. But you may ask (pm) The Witness.
Reinhard
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Thank's a lot!!!!

I'll PM him ;)

Bye

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

Post by TheWitness »

This is a Tony Roman specialty. Please do not PM him. Try his e-mail. He does not like PM's.

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?
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Can you PM me the email of Tony Roman? Cannot find his nickname.

Thank's!

Simon
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests