[ZBXNEXT-975] Host Group assignment should have the ability to link templates with hosts Created: 2011 Sep 21  Updated: 2024 Feb 29

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 1.8.6
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Kam Lane Assignee: Unassigned
Resolution: Unresolved Votes: 79
Labels: hostgroups, templates, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File hostgroups.php.PNG    
Issue Links:
Duplicate
is duplicated by ZBXNEXT-2162 Link templates to groups => link to i... Closed
is duplicated by ZBXNEXT-1373 link template to host group Closed
is duplicated by ZBXNEXT-2265 Template link at host group level Closed

 Description   

If I assign a template to a hostgroup, and then I assign a host to a hostgroup, I'd like the ability for the host to be linked to the template without having to go into the host can manually linking it.



 Comments   
Comment by richlv [ 2011 Sep 21 ]

just to clarify - templates are not assigned to host groups, they are linked to hosts.
not sure how would this look like - but this is basically a request to implement host group->template association

Comment by Kam Lane [ 2011 Nov 07 ]

The reasoning behind this is because the hostgroups view is a little mis-leading to those that are new to the product. If I add a host to a host group, "Hosts (0)" increments. If I add a Template, then "Templates (0)" increments...however it doesn't link. When I first started using zabbix, I created host groups and added templates to them thinking that that action itself did the linking since it showed up in the hostgroup view. As I read and worked with the product more, I learned how it worked. Maybe a solution would be to not show Hosts and Templates together in Host groups but have a drop down like with user/user groups in the configuration showing the associations.

Comment by Gerard Lynch [ 2012 Sep 05 ]

+1 for getting this feature.

I've just started using Zabbix and at present the logic is rather confusing - I would normally assume that associating a template with a host group would apply the template to all members.

Comment by Airone [ 2012 Oct 10 ]

In HP Operation Manager you can link template to node group (host group in Zabbix). With this feature template are automatically linked to new hosts.

+1 for getting this feature.

Comment by tagwolf [ 2013 Feb 07 ]

Sorry posted this on a duped ticket:

I don't think this is trivial. When working with large amounts of hosts it's actually a pretty big deal. It makes sense to have apache servers in the apache group linked to the apache monitoring template at the group level.

This is something I've actually been waiting for for about 5 years now. I hope you guys implement it someday soon. I love all the improvements and bug fixes but yea, this is a big one for me.

A Big Huge +1 from me! We monitor thousands of servers and services and have a nicely organized infrastructure. Assigning templates at a group level just makes sense!

Comment by Noah Leaman [ 2013 Mar 11 ]

As Airone already mentioned, this is how HPOM works. It through me off in the beginning as well. As far as implementation goes, the ability to designate a host group that "template assignment" group type to change it's behavior would be great. In other words, users should have the option to use a host group as either a normal "container" (as they are now) or as an auto/dynamic template-assignment group type. Being able to deal with and/or warn about loosing item history/trends data would be necessary as well.

Comment by John Hayes [ 2013 Nov 30 ]

Agreed on this.

I have about 60 hosts, which are divided into various groups. The groups match templates, as certain sets of checks are only relevant to that group.

If I could apply the template to the group it would save me (a small amount of) effort when creating a host, but also reduce the risk of user error.

Comment by Tony Feldmann [ 2014 Feb 14 ]

I also would like to see this. Could someone address whether there is any intention on implementing this?

Comment by tagwolf [ 2014 Sep 25 ]

This is not a trivial feature.

This is pretty important to workflow and setup. I can't imagine it'd be too difficult to add a DB table for hostgroup_templates_linked (Dunno your naming convention, just an example).

Then all you need is to add a checkbox for something like:

Automatically link templates to hosts in this group, and a function call when adding a host to a group to check if that group contains linked templates to apply.

Comment by Micha Slezak [ 2016 Jun 09 ]

Here is nice page http://www.zabbix.com/development_services.php where on the bottom of this page is possibility to Contribute on specific feature. I think that it can be way how to promote some feature requests and to do something like crowdfunding on specific feature. Zabbix dev setup price and we can contribute on this feature I think it can be good way how to pay for each feature and to to pay whole development by one customer.

Comment by Gabriel Cerioni [ 2018 Sep 26 ]

I'm new at zabbix and I know it's going to take some time for me to be able to help improving and delivering features.
But I'm pretty sure this is a show-stopper for bigger environments. It might have some workaround using automation.

I have more than 30.000 servers, and I'm studying a way to use Zabbix instead of proprietary tools...
Applying monitor templates against group of hosts is vital for our Ops.

I'll update this thread if I find any way to automate this.

Comment by Denis Kot [ 2018 Sep 26 ]

You don't have to do it manually or create workaround. Zabbix already has `Auto registration` rules (https://www.zabbix.com/documentation/3.4/manual/discovery/auto_registration)

Comment by Alex Kalimulin [ 2024 Feb 29 ]

Zabbix 6.2 separated host and template groups, any objections against closing this?

Generated at Mon Apr 07 11:34:26 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.