I've looked through all the posts on CDEFS and combo graphs but none of the information has helped and the manual is sparse.
I am trying to make a graph which uses two ethernet interfaces as its datasources, combines their values then outputs this to a single inbound area and single outbound line on a graph.
Could someone post up or point me to information which leads you step by step through doing this? My efforts so far making graph templates have failed miserably.
Thank you
Combining two interfaces into one graph item
Moderators: Developers, Moderators
-
- Posts: 49
- Joined: Tue Jan 18, 2005 7:50 am
I did this with the following template .... What you need to do is create a copy of an interface traffic graph, define secondary input/output data sources... and then use a cdef function to combine the input & output sums to draw the graph properly.
Unfortunately the only way can do this is if you have the original primary/secondary interface data still being drawn on the graph, otherwise the source rrd files aren't specified to rrdtool and you have no data to work with... I achieved this by setting a nondistinct colour for the separate interfaces and have them drawn as LINEs (the combined "area" part of the graph seems to hide it well).
To make it easier i've attached my template for you.
Unfortunately the only way can do this is if you have the original primary/secondary interface data still being drawn on the graph, otherwise the source rrd files aren't specified to rrdtool and you have no data to work with... I achieved this by setting a nondistinct colour for the separate interfaces and have them drawn as LINEs (the combined "area" part of the graph seems to hide it well).
To make it easier i've attached my template for you.
- Attachments
-
- cacti_graph_template_interface_traffic_bitssec_ifalias_aggregate.xml
- (24.19 KiB) Downloaded 1307 times
Who is online
Users browsing this forum: No registered users and 2 guests