Hello,
I have many many servers for which I would like to create an aggregate cpu usage graph.
I can do this pretty easily with the aggregate plugin. The problem is that it insists on creating a legend for cpu user/system/nice for every server. That's 3 per server and I have a lot of servers.
Selecting "skip" for the gprint lines in the aggregate setup avoids the printing of the data numbers, and setting the prefix to blank removes the server name. However I'm still left with the legend color square and user/system/nice.
The only way I can do what I want is to go into the graph config and edit every graph item to set the name (user/system/nice) to blank and remove the <HR>, which is painful since I have several hundred of these.
Could the solution to this be to apply some kind of graph template to the aggregate graph?
J.
Would like to have no data legends on Aggregrate graph
Moderators: Developers, Moderators
Re: Would like to have no data legends on Aggregrate graph
Example as workaround:
(This is not only for aggregate plugin)
(A) Use thumbnail view
As you know, no legends displayed.
If you feel graphs are too small, change default thumbnail size in 'User Management -> (user) -> Graph Settings'. (B) Use 'graph_nolegend' implementation of Cacti
When invoking 'graph_view.php', you may add '&graph_nolegend=' in HTTP request so that can skip over drawing legends.
But it is used mainly to create thumbnails or export graphs.
Let's try to add options in 'graph.php' as follows: (tested with Cacti0.8.7g)
But if Cacti had toggle option such like 'Draw Legends' (on/off) in graph template settings, we (I?) will be happy... :)
(This is not only for aggregate plugin)
(A) Use thumbnail view
As you know, no legends displayed.
If you feel graphs are too small, change default thumbnail size in 'User Management -> (user) -> Graph Settings'. (B) Use 'graph_nolegend' implementation of Cacti
When invoking 'graph_view.php', you may add '&graph_nolegend=' in HTTP request so that can skip over drawing legends.
But it is used mainly to create thumbnails or export graphs.
Let's try to add options in 'graph.php' as follows: (tested with Cacti0.8.7g)
Then you can see graph details without legends.102:<table width='1' cellpadding='0'>
103: <tr>
104: <td>
105: <img class='graphimage' id='graph_<?php print $_GET["local_graph_id"] ?>' src='<?php print htmlspecialchars("graph_image.php?action=view&local_graph_id=" . $_GET["local_graph_id"] . "&rra_id=" . $rra["id"] . (isset($_GET["graph_nolegend"]) ? "&graph_nolegend=" . $_GET["graph_nolegend"] : ""));?>' border='0' alt='<?php print htmlspecialchars($graph_title);?>'>
106: </td>
107: <td valign='top' style='padding: 3px;' class='noprint'>
But if Cacti had toggle option such like 'Draw Legends' (on/off) in graph template settings, we (I?) will be happy... :)
Re: Would like to have no data legends on Aggregrate graph
Thank you so much for the explanation. I have lots of "groups" of ports that I do aggregate graphs and I do not need the legends taking up space for what I need it for.
Thanks again !
Thanks again !
Who is online
Users browsing this forum: No registered users and 0 guests