Aggregate bandwidth and total bandwidth

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

Moderators: Developers, Moderators

Post Reply
apex333
Posts: 9
Joined: Sat Jul 09, 2005 7:46 pm
Location: Chicago

Aggregate bandwidth and total bandwidth

Post by apex333 »

I am aggregating several interfaces for a sum of bits in/out. I would also like a "GPrint", showing "Total throughput" of Bits in/out.

Is there a way to apply the |sum:auto:current:2:auto| code to sum the total throughput of all interfaces plotted?

Thanks,
Richard

See attached;
Attachments
sum of all nics.jpg
sum of all nics.jpg (250.19 KiB) Viewed 21786 times
Signed;
jas0420
Cacti User
Posts: 91
Joined: Thu Jan 13, 2005 3:58 pm
Location: College Station, TX - USA

Post by jas0420 »

Apex, I'm doing the same thing to see how much data we spew out onto a particular WAN. Change your string to the following and I think you'll be set.

Code: Select all

|sum:auto:total:2:auto|
Jason
jas0420
Cacti User
Posts: 91
Joined: Thu Jan 13, 2005 3:58 pm
Location: College Station, TX - USA

Post by jas0420 »

Apex, I'm doing the same thing to see how much data we spew out onto a particular WAN. Change your string to the following and I think you'll be set.

Code: Select all

|sum:auto:total:2:auto|
Jason
apex333
Posts: 9
Joined: Sat Jul 09, 2005 7:46 pm
Location: Chicago

Post by apex333 »

It did the job, however this can't possibly be true for both in/out...
How do you come up with code for summing up?

Richard
Attachments
sum of all nics2.jpg
sum of all nics2.jpg (77.68 KiB) Viewed 21738 times
Signed;
jas0420
Cacti User
Posts: 91
Joined: Thu Jan 13, 2005 3:58 pm
Location: College Station, TX - USA

Post by jas0420 »

Hmm... I may have misled you a little. I forgot, but the graph that I was doing mine on was only a total of all traffic_in from many DS. I wasn't doing traffic_out on that one.

I just looked, and the "total" keyword sums up the totals of all data sources in the chart... So you're looking at the total amount of data both sent and received, I believe.

You may have to settle for that and rename your field "Total data sent/rec'd" because the docs I was referencing show no other choices:
(current|total) You can choose to calculate the summation based on the current data source or a total of all data sources used on the graph. The only valid values for this field are 'current' and 'total'.
This was from the Cacti docs here: http://www.cacti.net/downloads/docs/htm ... _VARIABLES

Other choice I can think of off-hand would be to break it into two graphs... One sent, the other received.

Jason
little_buddha
Posts: 4
Joined: Tue Jul 26, 2005 3:01 pm

Post by little_buddha »

Hello guys, i have the same kind of problem :

Image

I've tried the solutions proposed above without success. If someone has an idea...

Thanks in advance

edit : i forgot to precise i'm running freeBSD 5.3, net-snmp-5.2.1.2, rrdtool-1.2.10, cacti-0.8.6f
jas0420
Cacti User
Posts: 91
Joined: Thu Jan 13, 2005 3:58 pm
Location: College Station, TX - USA

Post by jas0420 »

LB, can you elaborate a little on what is wrong with yours? It looks like you are just charting one interface... The numbers all look reasonable to me... ?

Jason
little_buddha
Posts: 4
Joined: Tue Jul 26, 2005 3:01 pm

Post by little_buddha »

Yes, but i can't get total amount incoming, although it works for outgoing traffic :o In the Graph template i get the same warning as apex333 showed at the beginning of the thread.

Turning on debuggning just say that it's ok for rddtool.
little_buddha
Posts: 4
Joined: Tue Jul 26, 2005 3:01 pm

Post by little_buddha »

I've just noticed that :

GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 715.95 MB\n" \
LINE1:b#002A97:"Outbound" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 668.81 MB"

So that's just a problem making the png, i think.
jas0420
Cacti User
Posts: 91
Joined: Thu Jan 13, 2005 3:58 pm
Location: College Station, TX - USA

Post by jas0420 »

Sorry, I completely missed that the first time I looked. I was looking at the number directly below it.

What has happened on yours is that it scrolled off the right-hand edge of your png file. You need to either shorten your words (change "current" to "now", "average" to "avg", etc) to make the whole line shorter, or, put in a hard return further up in your graph items (like on the "Average" graph item... if you go into the details of that line, the bottom option will be to insert a hard return... check that box)

Jason
apex333
Posts: 9
Joined: Sat Jul 09, 2005 7:46 pm
Location: Chicago

Post by apex333 »

buddah,
Try going into your graph template and make the graph longer or edit the "inbound" to "in", the Average to "avg", so you can fit more per line.

Richard
Signed;
little_buddha
Posts: 4
Joined: Tue Jul 26, 2005 3:01 pm

Post by little_buddha »

Yep, i was surprised that it cut correctly the outgoing line and not the incoming line. Anyway, it looks really better like that :

Image

Thanks !
egolaw
Posts: 4
Joined: Mon Nov 15, 2004 7:14 am

Graphing two interfaces

Post by egolaw »

Hi Richard,
I have gone through jason steps in graphing two interfaces but was reporting wrongly. the result was reporting the first interface and not the second interface.

Please assist

Lawrence :oops:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest