Data queries automatic update problem

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

Moderators: Developers, Moderators

Post Reply
fgeek
Posts: 5
Joined: Fri Apr 25, 2008 1:22 am

Data queries automatic update problem

Post by fgeek »

Another question is that I have changed SNMP - Interface Statistics in Data Queries and I would like to have graph's title changed automatically if I change something there. It would be pretty painful to change for example title and after that remove and add every graph again.

My idea is to put port description to graphs and if those are changed i.e. from switches those graphs would automatically update.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

There's the cli/reapply_suggested_names.php script that you may want to call on a regular basis.
In general, using |query_*| variable with graph titles will replace with the current value of that variable. Make sure to use appropriate reindex method (e.g. "Index Count changed")
Reinhard
fgeek
Posts: 5
Joined: Fri Apr 25, 2008 1:22 am

Post by fgeek »

Where can I locate such a script? Even google nor http://cacti.net/additional_scripts.php doesn't know anything related to that. Did you mean cli/poller_graphs_reapply_names.php?

I'll get following error when I'm trying it:

Code: Select all

hensal@foo:~/cacti-0.8.7b/cli$ /usr/bin/php -q poller_graphs_reapply_names.php -id=ALL
WARNING: Do not interrupt this script.  Interrupting during rename can cause issues

Warning: Invalid argument supplied for foreach() in /home/hensal/cacti-0.8.7b/cli/poller_graphs_reapply_names.php on line 136
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You've found the correct script. Enter the parameter as "-id=All". Mind the capitalization!
Reinhard
fgeek
Posts: 5
Joined: Fri Apr 25, 2008 1:22 am

Post by fgeek »

Thank you really much. I got everthing work like a dream.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests