adding interface description to title
Moderators: Developers, Moderators
Hi Ganalf, thank you for your reply.
As to the first question, I really forgot where to change the title, sorry for my limit brain capacity.
I've uploaded three graphs, sorry for not being able to post the graph by URL. These graphs will show you two graphs with unique title with a same graph template 'Interface - Traffic (bits/sec)'. Obviously, modifying graph template is not my way to achieve to change title for the graph.
waiting for your kindly reply, thanks again.
As to the first question, I really forgot where to change the title, sorry for my limit brain capacity.
I've uploaded three graphs, sorry for not being able to post the graph by URL. These graphs will show you two graphs with unique title with a same graph template 'Interface - Traffic (bits/sec)'. Obviously, modifying graph template is not my way to achieve to change title for the graph.
waiting for your kindly reply, thanks again.
- Attachments
-
- graph with title
- graph_with_title.jpg (42.21 KiB) Viewed 10176 times
-
- snapshot for graph management 1
- graph2.jpg (1.31 MiB) Viewed 10176 times
-
- snapshot for graph management 2
- graph3.jpg (533.23 KiB) Viewed 10176 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
If you want to manually change the Graph Title, please visit the according Graph Template. Then, please check the box next to the "Title" field, that reads: "Use Per-Graph Value (Ignore this Value)"
Be aware, that this will request you to ALWAYS enter a custom title when creating new graph for this very graph template.
Checking this box should enable an option, that eveb allows you to change titles for existing graphs (see: Graph Management)
Reinhard
Be aware, that this will request you to ALWAYS enter a custom title when creating new graph for this very graph template.
Checking this box should enable an option, that eveb allows you to change titles for existing graphs (see: Graph Management)
Reinhard
Hi Gandolf, thank you very much. As your advice, I've managed to customize the graph title.
gandalf wrote:If you want to manually change the Graph Title, please visit the according Graph Template. Then, please check the box next to the "Title" field, that reads: "Use Per-Graph Value (Ignore this Value)"
Be aware, that this will request you to ALWAYS enter a custom title when creating new graph for this very graph template.
Checking this box should enable an option, that eveb allows you to change titles for existing graphs (see: Graph Management)
Reinhard
Thanks this works for me BUT:melchandra wrote:Yes. If you update the descriptions on your switch you have to go to the device and re-run the query. Then go to "graph management" find your graph, check it, and at the bottom select the option to "reapply suggested names". If you've got a bunch of graphs to change that are all the same graph templete, edit the graph templete and click save. You don't have to make any changes, but clicking save forces cacti to update all the graph titles.
I have already 25 cacti servers with 1800 switches and need a solution to
"reapply suggested names" with not many clicks.
its only possible to "select all" 100 graphs of a switch stack (4pages) 1000 ROWs are too much for cacti.
Any help appreciaded !
lankienen
Need this too..
Okay..I'll describe a scenario:
Cacti is now running fine. query_ifAlias is shown in every graph in the title (modification of the the data query method).
Now somebody plugins in a new server to an interface, and also the alias-descirption is changed.
If I want the title changed in cacti I have to:
1) goto the device and click the little green circle next to the Associated Data Queries
2) goto the graph management screen, check the checkbox next to the graphes and choose "reapply suggested names" from below
This works fine, but, what if I do not know, if somebody changed the ifAlias-Description? the cli/poller_graphs_reapply_names.php Script just does the work of Step 2)? I am thinking of make a cronjob for this script - but how can I automate step 1)? Is there any other possibilty then clicking through my 200 devices every week by hand?
Thanks in advance!
Okay..I'll describe a scenario:
Cacti is now running fine. query_ifAlias is shown in every graph in the title (modification of the the data query method).
Now somebody plugins in a new server to an interface, and also the alias-descirption is changed.
If I want the title changed in cacti I have to:
1) goto the device and click the little green circle next to the Associated Data Queries
2) goto the graph management screen, check the checkbox next to the graphes and choose "reapply suggested names" from below
This works fine, but, what if I do not know, if somebody changed the ifAlias-Description? the cli/poller_graphs_reapply_names.php Script just does the work of Step 2)? I am thinking of make a cronjob for this script - but how can I automate step 1)? Is there any other possibilty then clicking through my 200 devices every week by hand?
Thanks in advance!
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
The usual approach is to let "Re-Index Method" do the clicking.
Unfortunalety, "Uptime Goes Backwards" is not best fitted. E.g. "Interface Count" may be better. But if only the description has changed, that won't do as well. Unfortunately "Verify All Fields" is quite "expensive".
Some people run "reindex" and "reapply" every day. Re-Index is very expensive and only the last upgrade is ready ti run in parallel with the poller. So to some extend, you've hit it.
From my understanding, "better way to achieve this" has to be hooked into the "reindexing" branch of the code. E.g. tell a data query to watch changes of ifAlias and change database accordingly.
Open to more discussions
R.
Unfortunalety, "Uptime Goes Backwards" is not best fitted. E.g. "Interface Count" may be better. But if only the description has changed, that won't do as well. Unfortunately "Verify All Fields" is quite "expensive".
Some people run "reindex" and "reapply" every day. Re-Index is very expensive and only the last upgrade is ready ti run in parallel with the poller. So to some extend, you've hit it.
From my understanding, "better way to achieve this" has to be hooked into the "reindexing" branch of the code. E.g. tell a data query to watch changes of ifAlias and change database accordingly.
Open to more discussions
R.
So as I understood: I have to hit this button 200 times every day. As you may image, this is impossible.gandalf wrote:The usual approach is to let "Re-Index Method" do the clicking.
Unfortunalety, "Uptime Goes Backwards" is not best fitted. E.g. "Interface Count" may be better. But if only the description has changed, that won't do as well. Unfortunately "Verify All Fields" is quite "expensive".
Some people run "reindex" and "reapply" every day. Re-Index is very expensive and only the last upgrade is ready ti run in parallel with the poller. So to some extend, you've hit it.
From my understanding, "better way to achieve this" has to be hooked into the "reindexing" branch of the code. E.g. tell a data query to watch changes of ifAlias and change database accordingly.
Open to more discussions
R.
Changes in the code are a nice idea. I'll check if my php-skills are high enough to master this one. In which file the reindex methods are defined?
So would be nice instead of "Verifiy all Fields" to "Verify specific Fields" and choose the desired one(s).
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
Daily reindex = Clicking for each device?gandalf wrote: Until then, a daily "reindex" and "reapply suggested names" may help, but you will have to run latest code to make it lossless.
R.
Lossless? Latest Code? Sorry don't get it. =/gandalf wrote: Until then, a daily "reindex" and "reapply suggested names" may help, but you will have to run latest code to make it lossless.
R.
Added a screnshotgandalf wrote:Well, this might help. But how would this be integrated into the GUI?
Please continue the dioscussion about leveraging the reindex stuff
R.
Also there should be an option to change the reindex method - Currently it is just possible to Delete a Data Query and re-add it with a different reindex method.
- Attachments
-
- vorschlag.jpg (70.56 KiB) Viewed 8383 times
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
Hello,Sirup wrote:Need this too..
Okay..I'll describe a scenario:
Cacti is now running fine. query_ifAlias is shown in every graph in the title (modification of the the data query method).
Now somebody plugins in a new server to an interface, and also the alias-descirption is changed.
If I want the title changed in cacti I have to:
1) goto the device and click the little green circle next to the Associated Data Queries
2) goto the graph management screen, check the checkbox next to the graphes and choose "reapply suggested names" from below
This works fine, but, what if I do not know, if somebody changed the ifAlias-Description? the cli/poller_graphs_reapply_names.php Script just does the work of Step 2)? I am thinking of make a cronjob for this script - but how can I automate step 1)? Is there any other possibilty then clicking through my 200 devices every week by hand?
Thanks in advance!
I am not sure if i misunderstood your problem but what if you try this command ?
Code: Select all
php cli/poller_reindex_hosts.php --id=All -qid=1
Sounds interessting - I'll give it a try.
Thanks A LOT!
Thanks A LOT!
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
Thanks this worked!!
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0
[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
PRoblem urgent
I wanted to modify the title of the graph template "Interface Traffic Bits/sec" in order to have the alias name,description;name on it in one line when i graph.
So in Data queries:
in Graph Template - Interface - Traffic (bits/sec)
|host_description| -|query_ifName| -|query_ifAlias| -|query_ifDescr|
But this doesn' work!
i go to graph templates and in the case title of Graph Template i write this:
|host_description| -|query_ifName| -|query_ifAlias| -|query_ifDescr|
i have uncheck Use Per-Graph Value (Ignore this Value).
so it the value was forced and when i don't have an alias for exemple it showed me |query_ifAlias| !
so i tried to put as default |host_description| - Traffic and uncheck the Use Per-Graph Value (Ignore this Value). and when i checked it back.
I had no more comments next to the traffic(ALIAS,name,descr)
is there another way to have the alias,name in the title back without forcing like i do because when i had no alias in the equipement i had this: |query_ifAlias| is there a way to have a blank?please tell me it's urgent because now the title that i have is |host_description|-Traffic and i couldnt restore it as default
So in Data queries:
in Graph Template - Interface - Traffic (bits/sec)
|host_description| -|query_ifName| -|query_ifAlias| -|query_ifDescr|
But this doesn' work!
i go to graph templates and in the case title of Graph Template i write this:
|host_description| -|query_ifName| -|query_ifAlias| -|query_ifDescr|
i have uncheck Use Per-Graph Value (Ignore this Value).
so it the value was forced and when i don't have an alias for exemple it showed me |query_ifAlias| !
so i tried to put as default |host_description| - Traffic and uncheck the Use Per-Graph Value (Ignore this Value). and when i checked it back.
I had no more comments next to the traffic(ALIAS,name,descr)
is there another way to have the alias,name in the title back without forcing like i do because when i had no alias in the equipement i had this: |query_ifAlias| is there a way to have a blank?please tell me it's urgent because now the title that i have is |host_description|-Traffic and i couldnt restore it as default
Who is online
Users browsing this forum: No registered users and 1 guest