Hi,
I have modified the graph template "Interface - Traffic (bits/sec)" by:
Setting the Title to "|host_description| |query_ifName| > |query_ifAlias|" and unticking "Use per graph value".
This has resulted in all the titles of my existing graphs changing to this format. Good.
When I create a new graph based on this template, the title remains in the old format "|host_description| - Traffic - |query_ifName|" eg (NHRCRBCR01 - Traffic - Gi1/0/12)
If I select the new graphs and choose "Reapply Suggested Names", the title doesn't change.
If I select the new graphs and choose "Change Graph Template", the title still doesn't change on the graphs or the Graph Management pages - but when I actually click on one of the graphs, the correct string is displayed at the top of the page (NHRCRBCR01 Gi1/0/12 > # FW NHRNKFW02 DBLAN), but not in the actual graph image.
Where am I going wrong here?
Cacti Version 0.8.7b
Thanks.
Graph title not getting set by Graph Template
Moderators: Developers, Moderators
Graph title not getting set by Graph Template
- Attachments
-
- Graph Management Screen
- cacti1.gif (35.52 KiB) Viewed 2738 times
-
- Graph Management (Edit) Screen
- cacti2.gif (44.24 KiB) Viewed 2738 times
Ok - have found the bit under Data Queries where I can specify the preferred titling of the Graphs generated from that query.
I have added my new definition and promoted it to the top of the list.
Now when I create new graphs, they get the correct title. Good.
However, when I select a newly created graph and choose "Reapply Suggested Names" it reverts back to the old name... Why?
Thanks.
I have added my new definition and promoted it to the top of the list.
Now when I create new graphs, they get the correct title. Good.
However, when I select a newly created graph and choose "Reapply Suggested Names" it reverts back to the old name... Why?
Thanks.
Its the default "SNMP - Interface Statistics" data query. I have modified the "In/Out Bits (64-bit Counters)" associated graph template to be like the attached screenshot.
I have not changed anything else from the defaults.
Thanks.
I have not changed anything else from the defaults.
Thanks.
- Attachments
-
- SNMP - Interface Statistics Data Query (In/Out Bits (64-Bit Counters) associated graph template)
- cacti3.gif (77.07 KiB) Viewed 2720 times
Tried replacing the ">" with a "-", but it makes no difference.
I added the new naming syntax to the "In/Out Bits" associated graph template as well as the "In/Out Bits (64-bit Counters)". This appears to have fixed it.
The graph is of type "In/Out Bits (64-bit Counters)" though, so not sure why it picks to reanme based on the "In/Out Bits" graph.
Regardless, the reason I was going down this road was to have a quick way to reapply the names of the graphs when the descriptions (ifAlias) changed on my switches. However, I have noticed that the "Reapply Suggested Names" doesn't requery the device anyway - so what is the point of it?
If I actually go to the device in question and rerun the SNMP Interfaces query in debug mode, this then updates all the graphs.
So my next question is can I bulk rerun the SNMP Interfaces query for all my devices? Or am I missing the point of some of this?
Thanks.
I added the new naming syntax to the "In/Out Bits" associated graph template as well as the "In/Out Bits (64-bit Counters)". This appears to have fixed it.
The graph is of type "In/Out Bits (64-bit Counters)" though, so not sure why it picks to reanme based on the "In/Out Bits" graph.
Regardless, the reason I was going down this road was to have a quick way to reapply the names of the graphs when the descriptions (ifAlias) changed on my switches. However, I have noticed that the "Reapply Suggested Names" doesn't requery the device anyway - so what is the point of it?
If I actually go to the device in question and rerun the SNMP Interfaces query in debug mode, this then updates all the graphs.
So my next question is can I bulk rerun the SNMP Interfaces query for all my devices? Or am I missing the point of some of this?
Thanks.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
In fact, re-index method and suggested name should avoid to manually re-query (re-index is used in our lingo) or reapply names.bl243 wrote:However, I have noticed that the "Reapply Suggested Names" doesn't requery the device anyway - so what is the point of it?
Unfortunately, applying a host template will always get you stupid re-index method of "uptime goes backwards" which only reindexes an reboot events. In many cases, "index count changed" is the better one.
This will greatly be enhanced with 088 and will alsoo allow for chaging the reindex method without deleteing and re-adding it. Currently, changing the global re-index method default is the best we have.
R.
Who is online
Users browsing this forum: No registered users and 2 guests