Agreggating router interfaces into one graph - plus total

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

Moderators: Developers, Moderators

Science
Posts: 3
Joined: Tue Sep 20, 2005 1:54 pm

Alllmoooost ;)

Post by Science »

Now the alignment is right but i dont want Total to be at the botom becouse then the area will overshed the other graphs.
jeremyp
Posts: 31
Joined: Wed Sep 28, 2005 6:50 pm
Location: Minneapolis, MN
Contact:

Post by jeremyp »

Say, would this work for multiple CPUs? Instead of doing a CDEF to multiply, etc all I'd do is set it up to SIMILAR_DATA_SOURCES_NODUPS?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

jeremyp wrote:Say, would this work for multiple CPUs? Instead of doing a CDEF to multiply, etc all I'd do is set it up to SIMILAR_DATA_SOURCES_NODUPS?
That should work just fine....
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
mikes1p
Posts: 8
Joined: Mon Oct 10, 2005 5:46 pm

Total bandwidth used

Post by mikes1p »

Linegod...
I followed your instructions closely, even tried it a couple more times just to be sure but no luck, but my Total just shows the last item not the sum

Any suggestions to display a line showing the sum of the Inbound and Outbound?

Thanks
Mike
Attachments
cdef.JPG
cdef.JPG (33.49 KiB) Viewed 12999 times
bandwidth_totals.JPG
bandwidth_totals.JPG (93.46 KiB) Viewed 12999 times
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Alllmoooost ;)

Post by Linegod »

Science wrote:Now the alignment is right but i dont want Total to be at the botom becouse then the area will overshed the other graphs.
Make total a line, not an area and it won't overshadow anything - you could also make it white...
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Total bandwidth used

Post by Linegod »

mikes1p wrote:Linegod...
I followed your instructions closely, even tried it a couple more times just to be sure but no luck, but my Total just shows the last item not the sum

Any suggestions to display a line showing the sum of the Inbound and Outbound?

Thanks
Mike
If you are just doing a normal in/out bandwidth on the save device, why don't you just use the 'Interface - (bits/sec, Total Bandwidth)' template?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
mikes1p
Posts: 8
Joined: Mon Oct 10, 2005 5:46 pm

Re: Total bandwidth used

Post by mikes1p »

Linegod wrote: If you are just doing a normal in/out bandwidth on the save device, why don't you just use the 'Interface - (bits/sec, Total Bandwidth)' template?
Thanks for the reply...

To answer your question it doesn't show a "sum" line that shows how much of bandwidth is being used, you have to add the two lines together, which isn't what I want.

If you look at the numbers on my attempt, I want the purple line to show 513k (121 in + 392 out) for current total AND then also graph that line.

That way, at a glance I can tell how much is being used, and if I add an Hrule for the CIR I will be able to tell how much breathing room we really have.

Thanks again
Mike S
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Post by JJX »

excellent howto!!
To get the total on the graph, add another Graph Item:
- use the same data source as your last data source
- select your colour
- in 'Graph Item Type' select 'Line 3' (use Line 2 or Line 1 for smaller lines)
- in 'CDEF Function' select 'Total All Data Sources and Bytes into Bits' (the one you created at the start)
- In Text Format, call it 'Total'.
- Click 'create'
- Click 'add' again and create a legend (all values the same as above, except 'Graph Item Type' is 'Legend')

Now you should have a graph with the output from different data sources, plus a total at the bottom.
This will calculate the total for an interface (input and output) and not for all interfaces! (as you can see to some points is under
Or i am doing something wrong?

I want to calculate the total input of all interfaces
Attachments
Total Input
Total Input
2.GIF (27.72 KiB) Viewed 12970 times
Configuration for total
Configuration for total
3.GIF (14.15 KiB) Viewed 12971 times
jeremyp
Posts: 31
Joined: Wed Sep 28, 2005 6:50 pm
Location: Minneapolis, MN
Contact:

Post by jeremyp »

So, I'm trying to aggregate multiple data sources from one host into a single point on the graph.
Problem is: All the data sources are different names. So 1 set of data for host XYZ features data sources my_ds_1 through my_ds6. Host ZZZ has the same thing, but his are call my_ds_zzz1 through my_ds_zzz6.

So I've gone and attempted to graph them in several ways, one being with similar data sources, and total all data sources. Nothing has worked - I can graph every single data source as a whole, or they break.

So would anyone have any idea on how to fix this?
mikes1p
Posts: 8
Joined: Mon Oct 10, 2005 5:46 pm

Post by mikes1p »

jeremyp wrote:So, I'm trying to aggregate multiple data sources from one host into a single point on the graph.
..snip..
So would anyone have any idea on how to fix this?
The template mentioned in this thread got me closer, it might be a good starting point
http://forums.cacti.net/viewtopic.php?t=6231
jeremyp
Posts: 31
Joined: Wed Sep 28, 2005 6:50 pm
Location: Minneapolis, MN
Contact:

Post by jeremyp »

mikes1p wrote:
jeremyp wrote:So, I'm trying to aggregate multiple data sources from one host into a single point on the graph.
..snip..
So would anyone have any idea on how to fix this?
The template mentioned in this thread got me closer, it might be a good starting point
http://forums.cacti.net/viewtopic.php?t=6231
Ah, thanks Mike. I'll look it over and see if I can't figure this out. If so, I'll post back here (Unless that post already has the answer, in which case then I won't hehe!)
kayalinux
Posts: 23
Joined: Mon Oct 31, 2005 4:38 am

Post by kayalinux »

Very good tuto.
To get the total on the graph, add another Graph Item:
- use the same data source as your last data source
- select your colour
- in 'Graph Item Type' select 'Line 3' (use Line 2 or Line 1 for smaller lines)
- in 'CDEF Function' select 'Total All Data Sources and Bytes into Bits' (the one you created at the start)
- In Text Format, call it 'Total'.
- Click 'create'
- Click 'add' again and create a legend (all values the same as above, except 'Graph Item Type' is 'Legend')
i would like to specify something in order to get correct number in Total Current Average and Max value.
All GPRINT value In or Out must use the CDEF Function 'Turn Bytes into Bits'
And all GPRINT value for total must use the CDEF Function 'Total All Data Sources and Bytes into Bits'.

Now i still have 2 questions:
1) how to i attach this new graph to an host?
2) How could i make it as a graph template so i would only need to select the interface i want to sum?

Thanks.
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Post by JJX »

for your first question:
graph trees --> select the position u want to put it --> add --> Tree Item Type = graph --> select it ;)
cacti rulez!
ycflash
Posts: 13
Joined: Thu Nov 17, 2005 9:18 pm
Location: BJ, China

Post by ycflash »

How can I let cacti to align all the comment line?
Attachments
cacti.PNG
cacti.PNG (35.25 KiB) Viewed 12787 times
estair
Posts: 3
Joined: Mon Jan 09, 2006 4:32 pm

Capable, but not repeatable?

Post by estair »

This is great and functional, however it (like many other issues I have with Cacti) isn't something that is repeatable and usable in practice. This simply requires too much manual effort and intervention for each host/interface/graph you want to total and summarize to be deployable. Is there any way to do the equivalent with a graph template so that it can be applied to a set of host templates?

While I _really_ need to be able to do this, it is even more work than manually clicking through every one of the three hundred hosts I've got to generate initial graphs... I can script adding hosts to a template, but that's another "can't script this from here" issue I've not seen a way to resolve.

Any ideas that are applicable to this?

/eli
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest