Graph title not getting set by Graph Template

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

Moderators: Developers, Moderators

Post Reply
bl243
Posts: 19
Joined: Tue Feb 03, 2009 6:11 am

Graph title not getting set by Graph Template

Post by bl243 »

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.
Attachments
Graph Management Screen
Graph Management Screen
cacti1.gif (35.52 KiB) Viewed 2741 times
Graph Management (Edit) Screen
Graph Management (Edit) Screen
cacti2.gif (44.24 KiB) Viewed 2741 times
bl243
Posts: 19
Joined: Tue Feb 03, 2009 6:11 am

Post by bl243 »

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

Post by gandalf »

Please post the settings of that data query for that very graph template
R.
bl243
Posts: 19
Joined: Tue Feb 03, 2009 6:11 am

Post by bl243 »

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.
Attachments
SNMP - Interface Statistics Data Query (In/Out Bits (64-Bit Counters) associated graph template)
SNMP - Interface Statistics Data Query (In/Out Bits (64-Bit Counters) associated graph template)
cacti3.gif (77.07 KiB) Viewed 2723 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please replace the ">" by sth different and retry
R.
bl243
Posts: 19
Joined: Tue Feb 03, 2009 6:11 am

Post by bl243 »

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.
User avatar
Hyperlord
Cacti User
Posts: 211
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany

Post by Hyperlord »

Did you try in /cli/ ?

php -q poller_graphs_reapply_names -id=All -d

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

Post by gandalf »

bl243 wrote:However, I have noticed that the "Reapply Suggested Names" doesn't requery the device anyway - so what is the point of it?
In fact, re-index method and suggested name should avoid to manually re-query (re-index is used in our lingo) or reapply names.
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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests