[ZBXNEXT-4725] Restore "Hosts/Templates" and "Groups" fields in the "Template" tab Created: 2018 Sep 12  Updated: 2024 Apr 10  Resolved: 2018 Oct 23

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 4.0.0beta1
Fix Version/s: 4.0.1rc1, 4.2.0alpha1, 4.2 (plan)

Type: Change Request Priority: Minor
Reporter: beatcracker Assignee: Miks Kronkalns
Resolution: Fixed Votes: 9
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File host-filtering-by-template.png    
Issue Links:
Causes
causes ZBXNEXT-4807 Ability to select all filter results ... Open
Duplicate
Sub-task
Team: Team B
Sprint: Sprint 44, Sprint 45
Story Points: 1

 Description   

In pre 4.0 versions of Zabbix we could assign templates to hosts/groups directly from the "Templates" tab in template editor.

3.4 - Creating a template:

In 4.0.0beta1 this functionality is not available and the only way to mass-assign templates to hosts is to filter hosts in "Hosts" screen and use "Mass update".

This is a poor replacement, since there is no way to actually see all hosts linked to a template.

Please, restore this functionality to pre 4.0 state.



 Comments   
Comment by Ilya Kruchinin [ 2018 Sep 13 ]

Confirmed, really annoying, and also applies to Host Groups.

All discovered hosts (despite having "add to host" action removed) are still going to "Discovered Hosts" as per Administration configuration, and it is really difficult to remove the hosts from this Host Group.

Comment by Miks Kronkalns [ 2018 Oct 12 ]

Acceptance criteria

  • There is working filter in host list page (Configuration -> Hosts) that gives user possibility to select only hosts that are directly linked to at least one of selected templates.
  • There is another working filter in templates list page (Configuration -> Templates) that gives user possibility to filter templates with selected templates directly linked to them. Field name is "Linked templates".
  • New filters will use standard Zabbix multiselect control.
  • Filter will not impact performance of Configuration -> Hosts and Config -> Templates pages in a bad way.
  • When user points its mouse on multiselect item, html title attribute shows full template name.

Decisions made

  • The first version supports host filtering only by directly linked templates and template filtering by directly linked templates.
  • "It is not planned to add quick filtering links in templates list page (Configuration -> Templates) that would link to host list page (Configuration -> Hosts) with applied filter.

What's affected
Frontend.
Documentation.

UI

  • Configuration -> Hosts will have additional multiselect filter field "Templates". This field allows user to filter only hosts that have direct linkage to at least one of selected templates. In multiselect chosen templates will not contain any details about its linked templates.host-filtering-by-template.png

  • Configuration -> Templates page will have additional multiselect filter field "Linked templates". It will filter only templates that are directly linked to templates specified in field.
  • To fill empty space that has appeared adding a new filter field, the "Proxy" field will be showed in inactive (gray) style in its current position and becomes active and editable when user selects "Proxy" in filter field "Monitored by".
  • Each multiselect item will be extended by html title attribute that contains item's full name.

Translation string changes
No translation string changes expected.

Documentation changes

  • New feature should be described in public Zabbix documentation page devoted to Hosts (both text and screenshots should be updated).
  • The existence of new filter should be mentioned in What's new in Zabbix 4.0.x page as well.

 

Comment by Miks Kronkalns [ 2018 Oct 15 ]

Implemented in development branch: svn://svn.zabbix.com/branches/dev/ZBXNEXT-4725

Comment by richlv [ 2018 Oct 16 ]

This seems like a very nice solution - what about a link in the template properties page that would open such a filtered list?

neogan ZBXNEXT-5020 reported the request for this changes.

Comment by Alexander Vladishev [ 2018 Oct 16 ]

A link in the template properties page will be created under different issue.

Comment by Miks Kronkalns [ 2018 Oct 19 ]

Fixed in:

  • 4.0.1rc1 r85921
  • 4.2.0alpha1 (trunk) r85922
Comment by Olli Ihamäki [ 2018 Nov 07 ]

Change made here has nothing to do with original issue reported here. It is still very difficult (compared to Zabbix 3.x) to link and especially unkink host to/from template.

Comment by richlv [ 2019 Jan 16 ]

Olli, you might want to open a new issue about that, and mention it here.

Comment by Edgar Reichler [ 2019 Feb 11 ]

opened a new issue https://support.zabbix.com/browse/ZBXNEXT-5026

Generated at Sat Apr 27 00:16:16 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.