|
|
| Author |
Message |
sini Cacti User
Joined: 24 Nov 2003 Posts: 55 Location: Hungary
|
Posted: Sat Dec 13, 2003 4:55 am Post subject: Sum of graphs |
|
|
Hi,
Some gprint data on a graph I attached look strange because it's in bytes not bits. Sorry I attached a new one where I turned it to bits and it's ok. But i still need an answer why the sum not work?
If you see the max in/out it's GT 60Mbits but the graph still under 100Mbits! Why?
Inbound Host1 is an AREA type Inbound Host2 is STACK type. Is it wrong or the graph turned into a negative value?
| Description: |
|
| Filesize: |
10.32 KB |
| Viewed: |
8810 Time(s) |

|
|
|
| Back to top |
|
 |
Deano Cacti User
Joined: 29 Oct 2003 Posts: 97
|
Posted: Sat Dec 13, 2003 6:01 am Post subject: |
|
|
The Max for In-Host1 and In-Host1 didnt happen at the same time ?
The Graph looks rights for the current values - total of about 87ish and the graph is just under the 90 Mb/s mark.
Deano
|
|
| Back to top |
|
 |
sini Cacti User
Joined: 24 Nov 2003 Posts: 55 Location: Hungary
|
Posted: Mon Dec 15, 2003 4:00 am Post subject: |
|
|
Yes, you're right Deano! The max didnt happen at the same time! It's clear now!
Thx
|
|
| Back to top |
|
 |
TFC Cacti Pro User
Joined: 09 Apr 2003 Posts: 617 Location: Izmir/Turkey
|
Posted: Thu Apr 15, 2004 3:38 am Post subject: Re: Sum of graphs |
|
|
| sini wrote: | Hi,
Some gprint data on a graph I attached look strange because it's in bytes not bits. Sorry I attached a new one where I turned it to bits and it's ok. But i still need an answer why the sum not work?
If you see the max in/out it's GT 60Mbits but the graph still under 100Mbits! Why?
Inbound Host1 is an AREA type Inbound Host2 is STACK type. Is it wrong or the graph turned into a negative value? |
How can you do this graph? I want exactly this graph. Can u tell me? or, can u send us templates of this graph?
|
|
| Back to top |
|
 |
sini Cacti User
Joined: 24 Nov 2003 Posts: 55 Location: Hungary
|
Posted: Fri May 21, 2004 4:54 am Post subject: |
|
|
Hi,
I made this graph by hand so I have no temlpate. (In 0.8.3 no template but now I move to 0.8.5a and I will export 4U)
Until here is the graph edit snapshot
| Description: |
|
| Filesize: |
66.76 KB |
| Viewed: |
8540 Time(s) |

|
|
|
| Back to top |
|
 |
sini Cacti User
Joined: 24 Nov 2003 Posts: 55 Location: Hungary
|
Posted: Fri May 21, 2004 6:52 am Post subject: |
|
|
xml template attached!
| Description: |
|
 Download |
| Filename: |
cacti_graph_template_sum_of_2_graphs.xml |
| Filesize: |
18.17 KB |
| Downloaded: |
918 Time(s) |
|
|
| Back to top |
|
 |
Guest
|
Posted: Thu May 27, 2004 7:03 pm Post subject: help please |
|
|
Hi guys, I'm trying to import the template from above and I'm getting errors.
I'm not sure what's going on.
--
Graph Template
[success] Sum of 2 Graphs [update]
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (CDEF) Turn Bytes into Bits
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
--
any suggestions?
-d
|
|
| Back to top |
|
 |
amir.shirazi Guest
|
Posted: Mon Jun 14, 2004 9:37 am Post subject: sumation and diffrence |
|
|
How to graph the diffrence between in and out and sumation of ...
1. console -> Graph Management -> CDEFs -> Add
name: make zero
cdef=CURRENT_DATA_SOURCE,0,*
name:diff
cdef=8,b,a,-,*
name:total a+c & turn Bytes to bit
cdef=cdef=8,a,c,+,*
name:total b+d & turn Bytes to bit
cdef=cdef=8,a,c,+,*
2. console -> Graph Templates -> Add
name: gain
Graph Template Items -> Add
Item1:
Data Source: Interface - Traffic- traffic_out
color: none
graph Item Type: LINE1
CEDF Function: Make zero
Item2:
Data Source: Interface - Traffic- traffic_in
color: none
graph Item Type: LINE1
CEDF Function: Make zero
Item3:
Data Source: NONE
color: 0000FF
graph Item Type: LINE1
CEDF Function: diff
<insert hard return checked>
Item4:
Data Source: NONE
color: none
graph Item Type: GPRINT
Consolidation Function:LAST
CEDF Function: diff
Text Format: Current:
<Insert Hard Return checked>
Item5:
Data Source: NONE
color: none
graph Item Type: GPRINT
Consolidation Function:AVERAGE
CEDF Function: diff
Text Format: Average:
Item6:
Data Source: NONE
color: none
graph Item Type: GPRINT
Consolidation Function:MAX
CEDF Function: diff
Text Format: Maximum:
<Insert Hard Return checked>
name: total-bw
Graph Template Items -> Add
Item1:
Data Source: Interface - Traffic- traffic_in
color: none
graph Item Type: LINE1
CEDF Function: byte -> bits
Item2:
Data Source: Interface - Traffic- traffic_out
color: none
graph Item Type: LINE1
CEDF Function: byte -> bits
Item3:
Data Source: Interface - Traffic- traffic_in
color: none
graph Item Type: LINE1
CEDF Function: byte -> bits
Item4:
Data Source: Interface - Traffic- traffic_out
color: none
graph Item Type: LINE1
CEDF Function: byte -> bits
Item5:
Data Source: NONE
color: 7EE600
graph Item Type: AREA
CEDF Function: total b+d & turn Bytes to bits
Item6:
Data Source: NONE
color: 55009D
graph Item Type: LINE2
CEDF Function: total a+c & turn Bytes to bits
NOTE: because Item5 is LINE and Item4 is Area we must create #5 before #6
Now in "Graph Item Inputs" we must add two item manually and adjust "Associated Graph Items" for each one
and thire name.
Data Source [traffic_in#1]
<Item #3: LINE1 (AVERAGE) checked>
Data Source [traffic_in#2]
<Item #1: LINE1 (AVERAGE) checked>
Data Source [traffic_out#1]
<Item #4: LINE1 (AVERAGE) checked>
<Item #6: LINE1 (AVERAGE) checked> ??
Data Source [traffic_out#2]
<Item #2: LINE1 (AVERAGE) checked>
3. console -> Graph Management -> Add
Selected Graph Template: gain
Choose the host that this graph belongs to.: NONE
Data Source: <choose desired one>
Data Source: <choose desired one>
-> Save
Selected Graph Template: total-bw
Choose the host that this graph belongs to.: NONE
Data Source: <choose desired one(IN)>
Data Source: <choose desired one(IN)>
Data Source: <choose desired one(IN)>
Data Source: <choose desired one(IN)>
-> Save
| Description: |
| templates uses for my purpose |
|
 Download |
| Filename: |
xml.zip |
| Filesize: |
10.22 KB |
| Downloaded: |
359 Time(s) |
|
|
| Back to top |
|
 |
amir.shirazi Guest
|
Posted: Mon Jun 14, 2004 9:38 am Post subject: sumation and diffrence |
|
|
How to graph the diffrence between in and out and sumation of ...
1. console -> Graph Management -> CDEFs -> Add
name: make zero
cdef=CURRENT_DATA_SOURCE,0,*
name:diff
cdef=8,b,a,-,*
name:total a+c & turn Bytes to bit
cdef=cdef=8,a,c,+,*
name:total b+d & turn Bytes to bit
cdef=cdef=8,a,c,+,*
2. console -> Graph Templates -> Add
name: gain
Graph Template Items -> Add
Item1:
Data Source: Interface - Traffic- traffic_out
color: none
graph Item Type: LINE1
CEDF Function: Make zero
Item2:
Data Source: Interface - Traffic- traffic_in
color: none
graph Item Type: LINE1
CEDF Function: Make zero
Item3:
Data Source: NONE
color: 0000FF
graph Item Type: LINE1
CEDF Function: diff
<insert hard return checked>
Item4:
Data Source: NONE
color: none
graph Item Type: GPRINT
Consolidation Function:LAST
CEDF Function: diff
Text Format: Current:
<Insert Hard Return checked>
Item5:
Data Source: NONE
color: none
graph Item Type: GPRINT
Consolidation Function:AVERAGE
CEDF Function: diff
Text Format: Average:
Item6:
Data Source: NONE
color: none
graph Item Type: GPRINT
Consolidation Function:MAX
CEDF Function: diff
Text Format: Maximum:
<Insert Hard Return checked>
name: total-bw
Graph Template Items -> Add
Item1:
Data Source: Interface - Traffic- traffic_in
color: none
graph Item Type: LINE1
CEDF Function: byte -> bits
Item2:
Data Source: Interface - Traffic- traffic_out
color: none
graph Item Type: LINE1
CEDF Function: byte -> bits
Item3:
Data Source: Interface - Traffic- traffic_in
color: none
graph Item Type: LINE1
CEDF Function: byte -> bits
Item4:
Data Source: Interface - Traffic- traffic_out
color: none
graph Item Type: LINE1
CEDF Function: byte -> bits
Item5:
Data Source: NONE
color: 7EE600
graph Item Type: AREA
CEDF Function: total b+d & turn Bytes to bits
Item6:
Data Source: NONE
color: 55009D
graph Item Type: LINE2
CEDF Function: total a+c & turn Bytes to bits
NOTE: because Item5 is LINE and Item4 is Area we must create #5 before #6
Now in "Graph Item Inputs" we must add two item manually and adjust "Associated Graph Items" for each one
and thire name.
Data Source [traffic_in#1]
<Item #3: LINE1 (AVERAGE) checked>
Data Source [traffic_in#2]
<Item #1: LINE1 (AVERAGE) checked>
Data Source [traffic_out#1]
<Item #4: LINE1 (AVERAGE) checked>
<Item #6: LINE1 (AVERAGE) checked> ??
Data Source [traffic_out#2]
<Item #2: LINE1 (AVERAGE) checked>
3. console -> Graph Management -> Add
Selected Graph Template: gain
Choose the host that this graph belongs to.: NONE
Data Source: <choose desired one>
Data Source: <choose desired one>
-> Save
Selected Graph Template: total-bw
Choose the host that this graph belongs to.: NONE
Data Source: <choose desired one(IN)>
Data Source: <choose desired one(IN)>
Data Source: <choose desired one(IN)>
Data Source: <choose desired one(IN)>
-> Save
| Description: |
| templates uses for my purpose |
|
 Download |
| Filename: |
xml.zip |
| Filesize: |
10.22 KB |
| Downloaded: |
335 Time(s) |
|
|
| Back to top |
|
 |
JohnKiniston Guest
|
Posted: Tue Oct 26, 2004 6:11 pm Post subject: |
|
|
| raX wrote: | Yes, this is possible with the latest version of Cacti. It is described in a bit more detail in the following page of the manual under "Bandwidth Summation".
If you are a new user of Cacti, the easiest way to create graphs with a sum already on them is to:
1) Go to "Polling Hosts" in Cacti.
2) Either add a new host or edit a host that contains traffic you want to sum up.
3) Make sure you have the "SNMP - Interface Statistics" data query selected by selecting "SNMP - Interface Statistics" under "Associated Data Query" and clicking "Add".
4) Place a checkbox next to the interfaces you want to create summation graphs for.
5) Click on the dropdown that says "In/Out Bits" and select "In/Out Bytes with Total Bandwidth".
6) Once you click save, you should have some graphs that contain summation data on them .
The following set of instructions assumes that you want to sum up traffic, which is most often the case. You are not limited to this however. The instructions provided in the manual should work for any type of data.
-ian |
The url quoted does not exist anymore, And this walkthrough does not match 0.8.6b
I'd like to make a graph that has data for two interfaces on a single graph, Index 9 and Index 24 on one of my routers where it would show the combined traffic on the two interfaces.
Is this what the document quoted would have described?
|
|
| Back to top |
|
 |
skatter Cacti User
Joined: 22 Oct 2004 Posts: 55
|
Posted: Fri Oct 29, 2004 12:54 am Post subject: |
|
|
This is such a widely requested feature that I am surprised there isn't more documentation on this. I am still trying to figure out the easiest way to do this, other than manually making graph templates based on the # of interfaces/data sources I want to aggregate.
We need a detailed HOWTO on creating aggregate graphs..
|
|
| Back to top |
|
 |
m_o_d
Joined: 17 Nov 2004 Posts: 15
|
Posted: Fri Nov 26, 2004 8:28 pm Post subject: |
|
|
I have cisco 26xx and i want summery in and out but i have only IN.
I have 2 interface Eth and Serial and i have only in total bandwith.
WHY ? Can anybody help ?
|
|
| Back to top |
|
 |
laffen Cacti User
Joined: 13 Jul 2004 Posts: 52 Location: Norway
|
Posted: Tue Nov 30, 2004 4:27 am Post subject: |
|
|
| skatter wrote: | This is such a widely requested feature that I am surprised there isn't more documentation on this. I am still trying to figure out the easiest way to do this, other than manually making graph templates based on the # of interfaces/data sources I want to aggregate.
We need a detailed HOWTO on creating aggregate graphs.. |
Agree. Perhaps someone could contribute a guide to the new documentation project?
I also guess the authors have on the TODO list for Cacti a more elegant and easier way to do this.
|
|
| Back to top |
|
 |
aspie Guest
|
Posted: Wed Dec 08, 2004 6:14 am Post subject: |
|
|
| atrocity wrote: | ehm, excuse my stupid question, but this summation, is it IN the graphs ?
If yes, then it's ok ... it's working.
But what i really want, is the possibility to put tables, with the summary of the trafic in numbers...
I have a nice PHP script, that can summarize the trafic. You can choose to see the results for a period of days, or for a whole mounth, also a year if you collected the data... Really, i will appreciate if something like that can be done in Cacti, because actually i continue to use MRTG, only for that feature ....
I will be more then happy to share this script, if someone think that it can be used / converted to and for Cacti
Jean |
I`ve been looking into this myself aswell.
Currently it seems cacti makes the sum just fine in the graphs.
At the moment its a bit annoying to go through all the graphs to report the the total sum of a port/switch.
Feel free to post the script .. i might have some spare time to make a patch for it.
Grtz
Matthew
|
|
| Back to top |
|
 |
Guest
|
Posted: Fri Jan 07, 2005 4:26 pm Post subject: |
|
|
| I'd like to see current documentation and implementation as well..
|
|
| Back to top |
|
 |
|