hello !
is it possible to merge 2 graphs in cacti ? one of the devices has 2 GigaBit interfaces and i'd like to see the global debit
merge graphs
Moderators: Developers, Moderators
See if what I wrote in this thread is what you're asking for. http://forums.cacti.net/viewtopic.php?t=8532&highlight=
If not, provide some more details about what you're wanting to do exactly....
Jason
If not, provide some more details about what you're wanting to do exactly....
Jason
merge graphs
hello jason
i'm sorry maybe my english is so bad that i can't make myself be understood ("please don't let me be misunderstood" says the song)
actually i'm willing to add the two debits on one single graph because the two GigaBit ports are linked to the same Cisco 6506. I graphed the two interfaces separately but i didn't find anything on how to add graphs.
i hope you'll be able to help me!
Martin
i'm sorry maybe my english is so bad that i can't make myself be understood ("please don't let me be misunderstood" says the song)
actually i'm willing to add the two debits on one single graph because the two GigaBit ports are linked to the same Cisco 6506. I graphed the two interfaces separately but i didn't find anything on how to add graphs.
i hope you'll be able to help me!
Martin
Hi Martin, no worries... We'll figure it out! Could you explain"debit" for me a little more though?
If you do already have two graphs... Say two interfaces that each have a graph which shows traffic_in and traffic_out and you are wanting to see that data on one graph (meaning you would then have four charted lines for example... two traffic_in lines and two traffic_out lines) then I think the instructions I linked to above will work for you if you follow them step-by-step.
I may just not quite understand your goal though, so just keep explaining!
Jason
If you do already have two graphs... Say two interfaces that each have a graph which shows traffic_in and traffic_out and you are wanting to see that data on one graph (meaning you would then have four charted lines for example... two traffic_in lines and two traffic_out lines) then I think the instructions I linked to above will work for you if you follow them step-by-step.
I may just not quite understand your goal though, so just keep explaining!
Jason
hi!
"debit" is the french word (but also exists in english i checked in a dictionnary!) who describes the traffic. My goal is not to see 4 traffic lines on a same graph but only two. Those two would simply be the result of the addition of two traffic_in and the addition of two traffic_out. For exemple at the time T if the traffic_in for the first interface has a value of 5 and the traffic_in for the second interface has a value of 3, i'd like to draw a graph showing a unique traffic_in with a value of 5+3=8 at the time T, and not draw an average traffic_in. Do you think it's possible ?
"debit" is the french word (but also exists in english i checked in a dictionnary!) who describes the traffic. My goal is not to see 4 traffic lines on a same graph but only two. Those two would simply be the result of the addition of two traffic_in and the addition of two traffic_out. For exemple at the time T if the traffic_in for the first interface has a value of 5 and the traffic_in for the second interface has a value of 3, i'd like to draw a graph showing a unique traffic_in with a value of 5+3=8 at the time T, and not draw an average traffic_in. Do you think it's possible ?
Cool... I learned some French today. In English, "debit" is typically associated with an accounting/financial conversation and it means "take away from or deduct"... If I write a check for $10, my checking account balance is "debited" $10. If I deposite $20 into my account, it is "credited" $20. So that's what was throwing me off a little.
OK, enough language... I think I see what you want now. What you need is the "stack" feature of a graph. What you will do is chart one trafic_in and stack the other on top of it. Then chart one traffic_out and stack the other on top of it. I was working with someone in another thread who was doing this. You can see his graph item details and what I'm talking about here: http://forums.cacti.net/viewtopic.php?t=8620&highlight=
To get to the point that he did (where the data sources are not tied to a particular host, but rather from many hosts), you need to create a new graph....
1) Select "Graph Management" from the main Cacti menu on the left side of the browser
2) Click "Add" in the upper-right corner of the browser to add a new graph
3) Leave both "Selected Graph Template" and "Host" set to "None" and click "Create"
4) Give your graph a title like "Combined NIC Throughput" (or "Combined NIC Debit" !!)
5) Make any other basic graph changes that you need on this screen. For example you would probably want a "Vertical Label" of "bits per second". Then click "Create"
6) You're pretty much taken back to the same screen now, but with one change. You now have a "Graph Items" section. Click the "Add" button here.
7) Select your first trafic_in data source from your first network card.
8 ) Give it a color... We'll say green for this example, but it's your choice of course.
9) Set it's Graph Item Type to either "Line" or "Area"
10) Change its consolidation function to "Last"
11) Give it a Text Format entry of something like "Traffic In"
12) Click "create"
13) Now repeat steps 6 through 12 except this time in step 7 for your Data Source select the "traffi_in" data source from your SECOND network card. Also on step 11, leave Text Format empty this time. Everything else is the same.
14) You can repeat step 13 now for as many more network cards as you would like. Once you have all of your "traffic_in" Data Sources added that you want, start back over at step 6 above but this time add all of your traffic_out data sources. You'll of course want to select a new color at this point... Say blue... and make sure that all of the rest of your traffic_out data sources are the same blue.
I should add that there is nothing that says you HAVE to just use two colors (one for traffic_in and one for traffic_out)... You CAN make each data source a different color... say a different shade of blue for all of the traffic_out and a different shade of green for all of the traffic_in. Then you'd be able to distinguish a particular network card's traffic_in or traffic_out but still be able to see a combined total of all of the network cards. If you do this, you would fill in something in "Text Format" for each data source rather than just doing one for traffic_in and one for traffic_out. They would then be something like "Traffic In - File Server" and then your next shade of blue or green would be "Traffic In - Mail Server" etc. This would create a legend below the graph for each color.
Last point then I'll shut up. As I talked about in the message thread that I pointed you to at the top of this message, to the best of my knowledge you will not have a way to get a "total data transferred" that is broken down to "total data in" and "total data out"... You'll just be able to see a total of both the in and the out.
Hope that helps,
Jason
OK, enough language... I think I see what you want now. What you need is the "stack" feature of a graph. What you will do is chart one trafic_in and stack the other on top of it. Then chart one traffic_out and stack the other on top of it. I was working with someone in another thread who was doing this. You can see his graph item details and what I'm talking about here: http://forums.cacti.net/viewtopic.php?t=8620&highlight=
To get to the point that he did (where the data sources are not tied to a particular host, but rather from many hosts), you need to create a new graph....
1) Select "Graph Management" from the main Cacti menu on the left side of the browser
2) Click "Add" in the upper-right corner of the browser to add a new graph
3) Leave both "Selected Graph Template" and "Host" set to "None" and click "Create"
4) Give your graph a title like "Combined NIC Throughput" (or "Combined NIC Debit" !!)
5) Make any other basic graph changes that you need on this screen. For example you would probably want a "Vertical Label" of "bits per second". Then click "Create"
6) You're pretty much taken back to the same screen now, but with one change. You now have a "Graph Items" section. Click the "Add" button here.
7) Select your first trafic_in data source from your first network card.
8 ) Give it a color... We'll say green for this example, but it's your choice of course.
9) Set it's Graph Item Type to either "Line" or "Area"
10) Change its consolidation function to "Last"
11) Give it a Text Format entry of something like "Traffic In"
12) Click "create"
13) Now repeat steps 6 through 12 except this time in step 7 for your Data Source select the "traffi_in" data source from your SECOND network card. Also on step 11, leave Text Format empty this time. Everything else is the same.
14) You can repeat step 13 now for as many more network cards as you would like. Once you have all of your "traffic_in" Data Sources added that you want, start back over at step 6 above but this time add all of your traffic_out data sources. You'll of course want to select a new color at this point... Say blue... and make sure that all of the rest of your traffic_out data sources are the same blue.
I should add that there is nothing that says you HAVE to just use two colors (one for traffic_in and one for traffic_out)... You CAN make each data source a different color... say a different shade of blue for all of the traffic_out and a different shade of green for all of the traffic_in. Then you'd be able to distinguish a particular network card's traffic_in or traffic_out but still be able to see a combined total of all of the network cards. If you do this, you would fill in something in "Text Format" for each data source rather than just doing one for traffic_in and one for traffic_out. They would then be something like "Traffic In - File Server" and then your next shade of blue or green would be "Traffic In - Mail Server" etc. This would create a legend below the graph for each color.
Last point then I'll shut up. As I talked about in the message thread that I pointed you to at the top of this message, to the best of my knowledge you will not have a way to get a "total data transferred" that is broken down to "total data in" and "total data out"... You'll just be able to see a total of both the in and the out.
Hope that helps,
Jason
Who is online
Users browsing this forum: No registered users and 2 guests