Graphing miltiple links on one graph?
Moderators: Developers, Moderators
Graphing miltiple links on one graph?
I've looked around for this and can't figure out how to do it. Perhaps I am just being a bonehead...which is possible.
I have a bunch of routers connected by "N" links (from 1 to 5+). In MRTG I can just put in the targets of the interfaces with a + between them to graph the sum of all of them. Is there a way to do this in Cacti?
I have a bunch of routers connected by "N" links (from 1 to 5+). In MRTG I can just put in the targets of the interfaces with a + between them to graph the sum of all of them. Is there a way to do this in Cacti?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Yes, manually.
You will have to contruct a graph from the data sources of you choosing.
You will have to contruct a graph from the data sources of you choosing.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
-
- Posts: 49
- Joined: Tue Jan 18, 2005 7:50 am
I put together a template that you can import to combine two data sources a while ago and is available on this thread
I do have templates for more interfaces now, and the CDEF is now a little more intelligent in setting UN values to 0 so that it doesn't break the graph if data for a particular interface isn't available for any given timeslot..
If you want me to export the newer templates for you then I can (but let me know how many itnerfaces you're likely to need graphed), but the one on that thread should be enough to start you on your way.
I do have templates for more interfaces now, and the CDEF is now a little more intelligent in setting UN values to 0 so that it doesn't break the graph if data for a particular interface isn't available for any given timeslot..
If you want me to export the newer templates for you then I can (but let me know how many itnerfaces you're likely to need graphed), but the one on that thread should be enough to start you on your way.
-
- Posts: 49
- Joined: Tue Jan 18, 2005 7:50 am
Correct.....
Ok, I've attached templates (with dependencies) for 2,3 and 4 interface combinations... It's easier to use a templated approach if you are going to need a lot of these graphs rather than building them manually every time.
Just create a new graph under the relevant host and choose the corresponding template, then select which datasource you want to be the main, secondary, and additional tertiary data sources from the drop down lists presented.
You can create graphs to show egress interfaces that go outside your network across multiple routers by not specifying a parent host when creating a new graph, but if your cacti system has a *lot* of datasources then this can make it a tad cumbersome and time consuming waiting for the graph creation page to load (as every datasource has to go in every selection box)
Ok, I've attached templates (with dependencies) for 2,3 and 4 interface combinations... It's easier to use a templated approach if you are going to need a lot of these graphs rather than building them manually every time.
Just create a new graph under the relevant host and choose the corresponding template, then select which datasource you want to be the main, secondary, and additional tertiary data sources from the drop down lists presented.
You can create graphs to show egress interfaces that go outside your network across multiple routers by not specifying a parent host when creating a new graph, but if your cacti system has a *lot* of datasources then this can make it a tad cumbersome and time consuming waiting for the graph creation page to load (as every datasource has to go in every selection box)
- Attachments
-
- cacti_graph_template_interface_traffic_bitssec_ifalias_aggregate_3_intfs.xml
- 3 interfaces aggregate
- (30.75 KiB) Downloaded 181 times
-
- cacti_graph_template_interface_traffic_bitssec_ifalias_aggregate_4_intfs.xml
- 4 interfaces aggregate
- (36.61 KiB) Downloaded 275 times
-
- cacti_graph_template_interface_traffic_bitssec_ifalias_aggregate.xml
- 2 interfaces aggregate
- (25.52 KiB) Downloaded 194 times
Ok, now I'm getting into the relm of what may be RTFM questions, but I can't find the information in the documentation. Please forgive if I'm missing something obvious.
When I select "New Graph" it always has a default host selected. If I try to just select the template it presents me with a screen that has no dropdowns, just 10ish text boxes.
Where am I entering the relm of stupid n00b?
When I select "New Graph" it always has a default host selected. If I try to just select the template it presents me with a screen that has no dropdowns, just 10ish text boxes.
Where am I entering the relm of stupid n00b?
-
- Posts: 49
- Joined: Tue Jan 18, 2005 7:50 am
I was thinking it may be a hashing issue (Not knowing a thing about templates leads people like me into dangerious ground!) so I removed all of the templates and added in just the 4 link version with the same result.
I'm digging into the documentation myself, but this does not look like a simple template to debug...thanks for your continuing help
I'm digging into the documentation myself, but this does not look like a simple template to debug...thanks for your continuing help
-
- Posts: 49
- Joined: Tue Jan 18, 2005 7:50 am
So I've got it looking good, but the graph will not generate (How good can it look eh?)
Any idea what I'm doing wrong with the cdef?
Any idea what I'm doing wrong with the cdef?
ERROR: invalid rpn expression 'a,UN,0,a,IF,c,UN,0,c,IF,+,e,UN,0,e,IF,+,g,UN,0,g,IF,+,i,UN,0,i,IF,+,k,UN,0,k,IF,+,8,*'
CDEF:cdefbc=a,UN,0,a,IF,c,UN,0,c,IF,+,e,UN,0,e,IF,+,g,UN,0,g,IF,+,i,UN,0,i,IF,+,k,UN,0,k,IF,+,8,* \
CDEF:cdefbg=b,UN,0,b,IF,d,UN,0,d,IF,+,f,UN,0,f,IF,+,h,UN,0,h,IF,+,j,UN,0,j,IF,+,l,UN,0,l,IF,+,8,* \
Who is online
Users browsing this forum: No registered users and 0 guests