adding interface description to title
Moderators: Developers, Moderators
adding interface description to title
Is it possible to add the interface description to the title of a graph?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Yes. |query_ifDescr| can be added. You can change the behaviour of Interface Traffic Graph Template Title creation:
- goto Data Queries
- pick "SNMP - Interface Statistices"
- pick the correct Graph Template
- change the order of "Suggested Names" for the Graph Titles
This will work only, if the Device returns valid data for the corresponding OID!
Reinhard
- goto Data Queries
- pick "SNMP - Interface Statistices"
- pick the correct Graph Template
- change the order of "Suggested Names" for the Graph Titles
This will work only, if the Device returns valid data for the corresponding OID!
Reinhard
-
- Cacti User
- Posts: 311
- Joined: Tue Jun 29, 2004 12:52 pm
- Location: Indiana
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.
Dave
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Cacti saves all "descriptive" values from SNMP Queries in the table snmp_cache. This will be updated when clicking on the little green circle next to the Data Query of the host. Then, please apply melchandra's procedure.dwarner01 wrote:I am able to display this alias now. thanks for your help. If the description on the switch changes it does not seem to reflect in the graph title. Is the value of the first record the only one that is checked for the query_ifAlias value?
dave
There was (perhaps still is) some bug when selecting multiple interfaces when creating graphs. You it "may" be better to create them one by one. Please try and report your findings. This one may be cured by one of the latest cact versions. Please check ChangeLog for this
Reinhard
-
- Posts: 37
- Joined: Fri Feb 24, 2006 2:37 pm
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
It works from the top downwards. But it takes a name/title only, if all variables can be filled. Changes to that |query_*| variables will take effect only, if requested (see: re-index method) or manually selected by pressing the green circle.
When changing the sequence of title/names, select the Graphs you want to change from Graph Management and choose "Reapply Suggested Name" from the Actions dropdown
Reinhard
When changing the sequence of title/names, select the Graphs you want to change from Graph Management and choose "Reapply Suggested Name" from the Actions dropdown
Reinhard
Interface alias gets truncated
I've followed the steps to add the switch interface alias / description to my graph template.
It works, but the alias gets truncated after 15 characters.
Any ideas?
It works, but the alias gets truncated after 15 characters.
Any ideas?
- Attachments
-
- truncated_alias.JPG (29.59 KiB) Viewed 67621 times
-
- truncated_alias2.JPG (29.22 KiB) Viewed 67621 times
Re: Interface alias gets truncated
Goto Settings -> Visual and change the Maximum Title Length to something higher than 45 characters.siouxee wrote:I've followed the steps to add the switch interface alias / description to my graph template.
It works, but the alias gets truncated after 15 characters.
Any ideas?
NoVA Agg 3550 #1 - |query_ifName||query_ifAlias|
NoVA Agg 3550 #1 - |query_ifName||query_ifAlias|
this is what I am left with on the graph. Any thoughts? Is there something wrong with my syntax. It seems to work on some, but not all.
this is what I am left with on the graph. Any thoughts? Is there something wrong with my syntax. It seems to work on some, but not all.
from the above discussion, appropriate description of interface is necessary for cacti to show graph title. But I had another different experience. When I installed cacti 0.87 the first time and made some tests before I installed plugin architecture. I had successfully changed graph titles for two graphs as my wish, not followed the description of interface configured on the router. But when I installed PA, I couldn't find where to change graph titles arbitrarily any more. I have got suggestion from Jimmy to create the according graph templates, but it's still not my points. I mean I really had changed graph titles freely, just adding some words in a text field, without changing graph template or applying ifdescr or ifalias, but now I couldn't do it anymore. that's what I was confused!
Wish any of you may give me any advice. thanks!
Wish any of you may give me any advice. thanks!
Who is online
Users browsing this forum: No registered users and 0 guests