adding interface description to title

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

hellofox
Posts: 13
Joined: Wed Oct 31, 2007 12:45 am

Post by hellofox »

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.
Attachments
graph with title
graph with title
graph_with_title.jpg (42.21 KiB) Viewed 10493 times
snapshot for graph management 1
snapshot for graph management 1
graph2.jpg (1.31 MiB) Viewed 10493 times
snapshot for graph management 2
snapshot for graph management 2
graph3.jpg (533.23 KiB) Viewed 10493 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
hellofox
Posts: 13
Joined: Wed Oct 31, 2007 12:45 am

Post by hellofox »

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
lankienen
Cacti User
Posts: 60
Joined: Fri Feb 06, 2009 3:15 am
Location: Dublin

Post by lankienen »

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.
Thanks this works for me BUT:

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 ! :D

lankienen
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

25 Cacti Servers! Wow!
Please use cli/poller_graphs_reapply_names.php
Reinhard
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

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!
[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]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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.
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

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.
So as I understood: I have to hit this button 200 times every day. As you may image, this is impossible.

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]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Well, this might help. But how would this be integrated into the GUI?
Until then, a daily "reindex" and "reapply suggested names" may help, but you will have to run latest code to make it lossless.

Please continue the dioscussion about leveraging the reindex stuff
R.
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

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.
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:Well, this might help. But how would this be integrated into the GUI?

Please continue the dioscussion about leveraging the reindex stuff
R.
Added a screnshot

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
vorschlag.jpg (70.56 KiB) Viewed 8700 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]
martin_k
Posts: 1
Joined: Wed May 26, 2010 8:02 am
Location: Grenoble, France

Post by martin_k »

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!
Hello,
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
For me, that re-index the interface's name of devices with description up-to-date. And it is possible to execute it in a cron.
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Sounds interessting - I'll give it a try.
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]
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

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]
Maher457
Cacti User
Posts: 54
Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France

PRoblem urgent

Post by Maher457 »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

When changing the "Suggested Names" section of a graph template associated to a data query, you will want to run "reapply suggested names" to make it work for existing graphs
R:
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests