sum throughput on multiple links

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
rfxn
Posts: 12
Joined: Fri Jun 08, 2007 11:29 am

sum throughput on multiple links

Post by rfxn »

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.
Tybio
Cacti User
Posts: 80
Joined: Thu Feb 16, 2006 8:14 am

Post by Tybio »

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.
rfxn
Posts: 12
Joined: Fri Jun 08, 2007 11:29 am

Post by rfxn »

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.
Attachments
weathermap_5.png
weathermap_5.png (26.86 KiB) Viewed 5755 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

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: Select all

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
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
rfxn
Posts: 12
Joined: Fri Jun 08, 2007 11:29 am

Post by rfxn »

Howie wrote:

Code: Select all

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 ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

aaah.. you can do that. You do it by adding each side, one by one instead:

Code: Select all


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...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests