HOWTO - Graph Multiple Data Sources in Same Graph

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
User avatar
Icarus
Posts: 4
Joined: Thu May 07, 2009 11:33 am

HOWTO - Graph Multiple Data Sources in Same Graph

Post by Icarus »

Hi,

Currently I'm working on how to graph several datasources (different OID for each) and put them all together in the same graph and same RRD file (very similar to Interface Traffic Inbound/Outbound graphs), however I've been not able to get everything working at all so I'd like you to please help me with this implementation.

First of all, I have created a Data Template containig all the datasources I need as follows:
Data Template
Data Template
Graph Template.png (55.23 KiB) Viewed 6651 times
Please note that I have selected Data Input Method as "Get SNMP Data" waiting for the chance to put evry single OID I need to get data for each Data Source.

Next, I have created the Graph Template that uses the Data Template I created earlier as follows:
Graph Template
Graph Template
Data Template.png (61.67 KiB) Viewed 6650 times
Please note that all what I want is to have different traffic types and the total (the sum of all of above by using the CDEF function in cacti).

Next, I create the Device by just adding it to the device list giving IP address, community descriptions, etc.....

After that, in Create New Graph menu I create the graph I need by selecting the device and the Graph Template. In this case, I have selected the Graph Template I created earlier:
New Graph 1
New Graph 1
New Graph1.png (23.96 KiB) Viewed 6650 times
After clicking on the Create button, here comes the first issue!!! I was expecting to have at least 6 fields for each OID/Datasource, however only one OID field appears:
New Graph 2
New Graph 2
New Graph2.png (14.72 KiB) Viewed 6650 times
And this is what I have in the Graph Management menu:
Graph Management
Graph Management
Graph Management.png (38.58 KiB) Viewed 6650 times

So here is the question: How can I plot all of the OIDs in the same graph? Maybe I'm doing something wrong? I've just followed how the Interface Traffic graphs are created but maybe I'm missing something so, could you please help me to create the graphs I need?

Any suggestion??


Thank you all in advance for all your help.



Regards,
Elkin.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: HOWTO - Graph Multiple Data Sources in Same Graph

Post by Linegod »

Search the forums for 'aggregate' or use the aggregate plugin: http://docs.cacti.net/plugin:aggregate
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Icarus
Posts: 4
Joined: Thu May 07, 2009 11:33 am

Re: HOWTO - Graph Multiple Data Sources in Same Graph

Post by Icarus »

Linegod wrote:Search the forums for 'aggregate' or use the aggregate plugin: http://docs.cacti.net/plugin:aggregate
Hello my friend,

Thanks for your reply but, I don't really realize how the aggregate plugin fits here.
Could you please help me understand a little bit?

Thanks a lot for your help!
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: HOWTO - Graph Multiple Data Sources in Same Graph

Post by Linegod »

Bah. I was looking at a different question. Sorry for the confusion.

You can't define multiple data source items for a Get SNMP Data. You have to use either Get Script Server Data or Get Script Data.

The other method is to define individual Data Templates (like Linux Memory and Linux Memory Free)
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
muniramb
Posts: 8
Joined: Mon Mar 26, 2012 1:38 pm

Re: HOWTO - Graph Multiple Data Sources in Same Graph

Post by muniramb »

Hi Icarus,
Did you find out how to achieve this? I have been trying to do the same thing as well, and have been unsuccessful.
Thanks,
Munira
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests