How to sum traffic from multiple interfaces ?

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

Moderators: Developers, Moderators

Post Reply
OgeeN
Posts: 9
Joined: Thu Feb 10, 2005 4:16 am

How to sum traffic from multiple interfaces ?

Post by OgeeN »

Hello,
I would like to perform following task: I use cacti to monitor multiple interfaces on our switches. Each port has its own traffic graph with inbound and outbound traffic. Now I would like to sum inbound traffic from some of my graphs and make separate graph that would show sum of inbound traffic of e.g. three different interfaces and sum of outbound traffic from the same three interfaces.
For example:
Current inbound traffic on port1 is 1000 kbit/s, current inbound traffic on port2 is 1500 kbit/s. Now I want to make graph that would show that the sum of current inbound traffic of port1 and port2 is 2500 kbit/s.

Is there a way how to make this possible within cacti? I tried to use aggregate plugin but it performs different task.

Thanks for help
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

you can create a new graph template, add a graph using "None" as host and then you'll be able to choose datasources from various hosts.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
OgeeN
Posts: 9
Joined: Thu Feb 10, 2005 4:16 am

Post by OgeeN »

OK, and is it possible to sum data from those datasources ?

UPDATE: This doesnt work. I created graph template with two lines and to each line I asigned two data sources. In resulting graph there were ohnly data from one data source. I think that I need some function that wil make sum of data from two different data sources.
stonedar
Posts: 3
Joined: Thu Mar 22, 2007 12:31 pm

Post by stonedar »

Hello,

Try creating a CDEF (under Graph Management) to sum them up:

CDEF Type = Custom String
CDEF Item Value = a,b,+,8,*

Assuming your graph items were labeled 'a' and 'b'.

then add a new graph item with None as data source (pick line/area and color) and select the defined CDEF function.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests