|
|
| Author |
Message |
rfxn
Joined: 08 Jun 2007 Posts: 12
|
Posted: Thu Nov 01, 2007 4:59 am Post subject: sum throughput on multiple links |
|
|
As my weathermaps grow more comlex with multiple feeds into the network, is there any way I can generate a node that displays in text data the sum of bandwidth used in and out across multiple data sources.
So for example my current weather map has 1 gige link and 2 fiber links and I want to add up the bw on all 3 links to display it in a little node at the top of my weathermap. This would be similar to how I display latency, cpu usage and other misc. data in small node cells at http://forums.cacti.net/files/weathermap2_190.jpg
The short of it is that it grows painful having to visually add up the in and out values across multiple links to garner the whole networks throughput.
|
|
| Back to top |
|
 |
Tybio Cacti User
Joined: 16 Feb 2006 Posts: 79
|
Posted: Sat Nov 17, 2007 4:16 pm Post subject: |
|
|
Just add the RRD files for the links into the TARGET line.
eg:
TARGET /home/cacti/cacti/rra/gige1.rrd /home/cacti/cacti/rra/fidi-1.rrd /home/cacti/cacti/rra/fidi-2.rrd
If you want a graph to go with that, check out the Aggregate plugin.
|
|
| Back to top |
|
 |
rfxn
Joined: 08 Jun 2007 Posts: 12
|
Posted: Fri Nov 23, 2007 3:51 pm Post subject: |
|
|
That is not exactly what I am looking for. I have a gigabit ethernet and 2 fiber feeds and I want to take the traffic for all of these feeds and display the combined bandwidth on all 3 feeds. So we do not have to visually look at our weather map then do a bunch of mental math for all 3 feeds to see how much traffic we are moving on the network throughput wise. The short of it a node label displaying the cumulative bandwidth in use for a set of links.
| Description: |
|
| Filesize: |
26.86 KB |
| Viewed: |
1290 Time(s) |

|
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Fri Nov 23, 2007 7:16 pm Post subject: |
|
|
Here's a node that does exactly that from one of my maps. Just as Tybio suggested... also I use the Aggregate plugin for the overlib graph.
This is totaling traffic across our transit peers.
| Code: |
NODE totalinternet2
LABEL {node:this:bandwidth_in:%k}/{node:this:bandwidth_out:%k}
INFOURL https://www.my.net/cacti/graph.php?action=view&rra_id=all&local_graph_id=4379
OVERLIBGRAPH https://www.my.net/cacti/graph_image.php?local_graph_id=4379&rra_id=0&graph_height=100&graph_width=300&graph_nolegend=true
LABELFONT 21
TARGET /var/www/docs/cacti/rra/c3750gth_traffic_in_1848.rrd /var/www/docs/cacti/rra/bgp2_th_transit_traffic_in_1749.rrd /var/www/docs/cacti/rra/bgp1_th_transit_traffic_in_1741.rrd /var/www/docs/cacti/rra/bgp2_th_transit_traffic_in_1752.rrd /var/www/docs/cacti/rra/bgp1_th_transit_traffic_in_4805.rrd
USESCALE none in
LABELBGCOLOR none
LABELFONTCOLOR 255 255 255
LABELOUTLINECOLOR none
POSITION 100 100
|
|
|
| Back to top |
|
 |
rfxn
Joined: 08 Jun 2007 Posts: 12
|
Posted: Mon Nov 26, 2007 11:26 am Post subject: |
|
|
| Howie wrote: | | Code: |
NODE totalinternet2
LABEL {node:this:bandwidth_in:%k}/{node:this:bandwidth_out:%k}
|
|
Is there however no way to combine the in and out value into one total value and display that instead of having to display them both separate ?
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Nov 26, 2007 12:03 pm Post subject: |
|
|
aaah.. you can do that. You do it by adding each side, one by one instead:
| Code: |
TARGET line1.rrd:traffic_in:- line1.rrd:traffic_out:- line2.rrd:traffic_in:- line2.rrd:traffic_out:-
|
So that leaves you with a bandwidth_in value that is the total of all ins and all outs.
However, there is a bug in 0.94 for this '-' DS name, so you'll need to either use 0.93, or the current version from subversion (see this thread: http://forums.cacti.net/viewtopic.php?p=117761#117761 - it's not difficult)
Obviously you're not the first person to ask for this, but what is it you guys use that value for? I can't think why I'd want to know the total in both directions across my WAN links. I can see why I'd want in and out seperately...
|
|
| Back to top |
|
 |
|