Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.6k stars 398 forks source link

Graph name problem for creating aggregate graphs #5707

Open aliuzzz opened 3 months ago

aliuzzz commented 3 months ago

image When creating an aggregate, when "Inclue Prefix" is checked, should it be | host_description | - Aggregate - Traffic on the image. For example, if my switch name is Cisco 9300L, then Cisco 9300L - Aggregate - Traffic will be displayed here. I don't know if it should be understood this way, but currently cacti doesn't work as I said

aliuzzz commented 3 months ago

image This is the name of the ticked graph, it does not show prefix Text

TheWitness commented 3 months ago

Well, if the aggregate comes from multiple devices, it'll never work. I suspect your are trying to sum the graphs from a single parent Graph. Seems like a feature request.

aliuzzz commented 3 months ago

Whether from a single device or multiple devices, only such text “Aggregate - Traffic” can be displayed. I believe the aggregated graphs from multiple devices should be done as it is now, without any problems. However, to create an aggregated graph from a single device, i need to display the name of that device first,for example “Cisco 9300L - Aggregate - Traffic”

And I hope the aggregate graphs should be appear preferentially at the top of the graph page

TheWitness commented 2 months ago

When you create your Aggregate Graphs, you should name them that way then for now. The other request should be a separate feature request. Thanks!

bernisys commented 2 months ago

Nice feature actually. And i got an idea here: If the aggregate comes from one device, it makes sense to resolve the macro properly. That should be quite easy to follow thru and check. If it spans more devices, then you could simply resolve it to something like [multiple devices] If the resolved item is inside HTML text, you could add a hint-popup resolving into all the actual names plus maybe some more information about the sources. If it is inside a graph title, maybe you could add an optional macro item |aggregate_devices| to the legend which resolves into the list of names, so the title is not cluttered.