Is it possible to get the total of multiple data sources graphed in cacti ??
I want to graph the bandwidth used by each router alone.
And I want to be able to graph the total Bandwidth consumed by all these routers, on one graph too.
Is cacti able to perform addition based on rrd files ??
Regards
Adding values from multiple data sources
Moderators: Developers, Moderators
Yes, this is exactly what a CDEF is for. For instance, to create a CDEF that adds up the first 5 items on a graph, you could use:
You could then add this into cacti by going into "CDEF's", and adding a "Custom Entry" to a new CDEF with the text above. Then when you go to create your graph, just use this CDEF.
You can also save yourself a lot of time by using the "Total All Data Sources" CDEF, which automatically does this for most graphs.
-Ian
Code: Select all
a,b,c,d,e,+,+,+,+
You can also save yourself a lot of time by using the "Total All Data Sources" CDEF, which automatically does this for most graphs.
-Ian
I have already tried the CDEF : Total all data source.
But it doesn't seem to work, or rather to say, I am little confused.
Let us go step by step.
I have to add 6 ( for example) graph items.
And define a datasource for each graph item.
but really, I want to graph only the total of those six datasources.
Then, do I have to define the CDEF: Total all data sources, for each graph item ??
Or do I need to have a 7th graph item that only has the Total all data sources CDEF defined ???
Regards
But it doesn't seem to work, or rather to say, I am little confused.
Let us go step by step.
I have to add 6 ( for example) graph items.
And define a datasource for each graph item.
but really, I want to graph only the total of those six datasources.
Then, do I have to define the CDEF: Total all data sources, for each graph item ??
Or do I need to have a 7th graph item that only has the Total all data sources CDEF defined ???
Regards
Who is online
Users browsing this forum: No registered users and 2 guests