Refresh Hosts that reference an updated host template

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Refresh Hosts that reference an updated host template

Post by gandalf »

We have just some dozens of devices referencing the same host template. From time to time we expand the host templates adding newly developed graph templates.

To generate the appropriate graphs, we select each host. Then we set the host template to "none"; save. Next step is to reselect the former host template; save.
Now the new graph templates are shown in the list and generating graphs works as usual.

Proposal:
Add a "Refresh Host Template" Button. Clicking it should reread the current templates associated with the host template currently used and save them to the database.
Last edited by gandalf on Sun Aug 06, 2006 2:13 pm, edited 1 time in total.
thermoman
Posts: 11
Joined: Sun Jul 23, 2006 6:48 am

Post by thermoman »

Same here. This is an urgently needed feature.

But it would be better to have this option in the device overview.

so i can select all the hosts that need a "host template refresh" and then select in the combo box at the bottom "reapply host template" or something like this.

it is really annoying to click though all devices, setting host template to "none" and then back to the old value only to get the new graph templates for this device.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sort of like "Sync Hosts with Current Template"?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
thermoman
Posts: 11
Joined: Sun Jul 23, 2006 6:48 am

Post by thermoman »

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

Post by gandalf »

You may find my tweak at http://forums.cacti.net/viewtopic.php?t=7494 useful. It's not officially supported, but runs on my 0.8.6h installation. It works only on Graph Templates added to a Host Template, not on Data Queries
And, I suppose, there might be a better place to call it (not Graph Management). Perhaps a "Re-Apply Host Template" in the "Actions" dropdown on the "Devices" List?
Reinhard
manuel
Posts: 1
Joined: Tue Dec 05, 2006 8:59 am

Post by manuel »

Attached patch adds a "Reapply Host Template"-Action to the "Devices"-List.

/ manuel
Attachments
cacti-0.8.6i-reapplyht.patch
(2.4 KiB) Downloaded 337 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

many thanks for the patch. Maybe you could submit a bug request to http://bugs.cacti.net ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Please submit to bugs.cacti.net.

Do include a link to this post, but do not make that the bug.

Include an explanation of the issue in the bug report and include the patch as and attached file.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests