I've encountered a strange behavoiur in Cacti which I personally don't understand. I've tried to figure out if someone had the same problem. Since I wasn't able to find a posting to my specific problem please excuse me if there is a howto or solution which I've overlooked.
The scenario:
I've got 2 Switches which have WAN-Lines connected to them. I'm trying to get a consolidated WAN-Traffic graph by summing all the traffic up whilst keeping the inbound traffic apart from the outbound traffic.
here's what I did:
1st: I've made sure the data sources of the four interfaces existed and the graphing is working.
2st: I created a cdef "sumof4" to summerize 4 values: stating
Code: Select all
cdef=a,b,+,c,+,d,+
I created a Graph template called "4-InterfacesSummiert - Traffic (bytes/sec)" by duplicating the existing "Interface - Traffic (bytes/sec)" template. I then edited my Version of the template by changing all the Template Items vom cdef-type "NONE" to my newly created "sumof4".
Since the "Graph Item Input Section" just consisted of two datasources called:
Code: Select all
Inbound Data Source
Outbound Data Source
Code: Select all
1st Inbound Data Source
1st Outbound Data Source
2nd Inbound Data Source
2nd Outbound Data Source
3rd Inbound Data Source
3rd Outbound Data Source
4th Inbound Data Source
4th Outbound Data Source
I saved the template and considered it ready to use.
4th:
I've created a new graph using the previously (3rd step) created template. In the "Supplemental Graph Template Data" Section I see my Graph Item Fields that read "1st Outbound Data Source" etc. ... followed by a dropdown menu containing a list of all my Datasources. I Select the appropriate interfaces and directions (inbound / outbound) and after saving everything the thing goes terribly wrong:
looking at the 8 dropdown menus only the last two are taken into account and copied in the previous positions eg:
my choice is:
Code: Select all
1st Inbound Data Source Switch1-Interface1-Inbound
1st Outbound Data Source Switch1-Interface1-Outbound
2nd Inbound Data Source Switch1-Interface2-Inbound
2nd Outbound Data Source Switch1-Interface2-Outbound
3rd Inbound Data Source Switch2-Interface1-Inbound
3rd Outbound Data Source Switch2-Interface1-Outbound
4th Inbound Data Source Switch2-Interface2-Inbound
4th Outbound Data Source Switch2-Interface2-Outbound
Code: Select all
1st Inbound Data Source Switch2-Interface2-Inbound
1st Outbound Data Source Switch2-Interface2-Outbound
2nd Inbound Data Source Switch2-Interface2-Inbound
2nd Outbound Data Source Switch2-Interface2-Outbound
3rd Inbound Data Source Switch2-Interface2-Inbound
3rd Outbound Data Source Switch2-Interface2-Outbound
4th Inbound Data Source Switch2-Interface2-Inbound
4th Outbound Data Source Switch2-Interface2-Outbound
I've been using Cacti 0.8.6j but since I consider it to be a bug I've upgraded to 0.8.7b yesterday - the behaviour didn't change.
Perhaps somebody has an idea or can give me a hint
cheers
Andreas