Graph Title change

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

Moderators: Developers, Moderators

Post Reply
eviltrooper
Posts: 13
Joined: Fri Mar 11, 2011 7:22 am

Graph Title change

Post by eviltrooper »

Hello,

i create graphs for my interfaces on cisco switches..

so that he shows me "Traffic - Gig 0/1 - Servername"

i edit the "Data Queries" - "SNMP - Interface Statistics" - "In/Out Bits" the

"Graph Template - Interface - Traffic (bits/sec)"

to this

title Traffic - |query_ifName| - |query_ifalias|

but if i chance the "ifalias" on my switch from "Servername" to "testinterface" or something. How can i move cacti to change automatic my Graph title??

anyone an idea?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Graph Title change

Post by noname »

To apply changes to existing graphs, try:

1) Choose graph(s) in Graph Management
2) Select "Reapply Suggested Names" and click [Go]
eviltrooper
Posts: 13
Joined: Fri Mar 11, 2011 7:22 am

Re: Graph Title change

Post by eviltrooper »

only works on one interface.. if i change another.. nothing happens :(

or do i have to wait 5 minute for an new poll???
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Graph Title change

Post by noname »

Then, try this:

1) Devices -> your device
2) At the bottom of screen, in "Associated Data Queries", click green circle icon ("Reload Data Query")
3) Do the above (=Reapply Suggested Names)
eviltrooper
Posts: 13
Joined: Fri Mar 11, 2011 7:22 am

Re: Graph Title change

Post by eviltrooper »

This works..

put on every change i must do this steps??

i change the "Re-Index Method" to "verify all Fields" because "uptime goes backwards" is not a godd option to me..

i hope "verify all field" will re-index every time a new poll will start !?

can i use this CLI command

"php5 host.php?action=query_reload&id=1&host_id=237"
for all my hosts?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Graph Title change

Post by noname »

eviltrooper wrote:put on every change i must do this steps??
Probably you should so -- when you have changed interface's description, created new VLAN, etc.
eviltrooper wrote:i change the "Re-Index Method" to "verify all Fields" because "uptime goes backwards" is not a godd option to me..

i hope "verify all field" will re-index every time a new poll will start !?
I'm not sure, sorry.
eviltrooper wrote:can i use this CLI command

"php5 host.php?action=query_reload&id=1&host_id=237"
for all my hosts?
From CLI, use 'cacti/cli/poller_reindex_hosts.php'.
http://docs.cacti.net/manual:087:6_reference.4_cli_script.2_reindex_hosts
eviltrooper
Posts: 13
Joined: Fri Mar 11, 2011 7:22 am

Re: Graph Title change

Post by eviltrooper »

Thanks very much.
Note: Stop the Poller during Re-Indexing Re-Indexing interferes with the poller operation. Please make sure, that the poller is not running and will not start during a reindex operation
what if when cacti starts polling???

or shoud i change my crontab for polling so that he dont poll on Midnight or an half an hour an do mit reindexing stuff.?

Because we change often our Alias on your Switches.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest