Adding values from multiple data sources

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

Moderators: Developers, Moderators

Post Reply
aratux

Adding values from multiple data sources

Post by aratux »

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
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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:

Code: Select all

a,b,c,d,e,+,+,+,+
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
aratux
Posts: 2
Joined: Sun Nov 17, 2002 4:19 am

Post by aratux »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests