[ZBXNEXT-1820] Indicator if list entry is host or template Created: 2013 Jul 12  Updated: 2022 Sep 15  Resolved: 2022 Sep 15

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

Type: Change Request Priority: Minor
Reporter: Marc Assignee: Zabbix Development Team
Resolution: Unsupported version Votes: 4
Labels: hostgroups, hosts, patch, templates, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File ZBXNEXT-1820-2.0.10-ZBXNEXT-370.patch     PNG File ZBXNEXT-1820-2.0.10-host_groups.png     PNG File ZBXNEXT-1820-2.0.10-popup.png     PNG File ZBXNEXT-1820-2.0.10-templates.png     PNG File ZBXNEXT-1820-2.0.10-templates_only.png     PNG File ZBXNEXT-1820-2.0.10-triggers.png     File ZBXNEXT-1820-2.0.10-tweenboxes.patch     File ZBXNEXT-1820-2.0.10.patch     File zabbix-2.2-ZBXNEXT-1820.patch    

 Description   

Please add an indicator in lists like 'CONFIGURATION OF HOST GROUPS' stating whether an entry is a host or a template.
Currently one has to define a naming convention for hosts and templates to separate them clearly.



 Comments   
Comment by richlv [ 2013 Jul 13 ]

templates should be grey, enabled hosts should be blue and disabled hosts should be red. is that not the case for you ?

Comment by Marc [ 2013 Jul 13 ]

Sorry, just noticed, that I was not clear enough by saying 'CONFIGURATION OF HOST GROUPS'.

What I'm talking about are the selection lists which list hosts and templates in the same context.
For example the list for the selection of 'host' members in the configuration of a host group, or the selection of 'host/template' members in the configuration of a template.

Comment by Oleksii Zagorskyi [ 2013 Jul 13 ]

Marc is absolutely right, voted !

Comment by Marc [ 2013 Jul 13 ]

Another way to achieve distinction could be to provide separate selection lists for each of them.

This would make selection of large ranges a little bit more comfortable.
E.g. with just a visual differentiation it might be necessary to review the whole selection, if one wants to be sure that only hosts are selected.

Edit:
But this wouldn't help for host/template selection in pull-down menus, e.g. in window for selecting an item for trigger creation.

Comment by Marc [ 2013 Jul 16 ]

Yet another idea is to group them by type.

Comment by richlv [ 2013 Jul 16 ]

ah, i see. grouping might work - see interfaces in item properties

Comment by Marc [ 2013 Jul 16 ]

Yes, that's a good idea!

Comment by Marc [ 2013 Nov 08 ]

It's a bit tricky with the current implementation of tween object

Comment by Marc [ 2014 Jan 04 ]

Patch follows - nevertheless without t(w)een object support though

The attached patches:
ZBXNEXT-1820-2.0.10.patch
ZBXNEXT-18202.0.10ZBXNEXT-370.patch (proper patch when ZBXNEXT-370 patch is applied)

modify behavior of getHostsCB().

When there gets no template listed in a (host) combo-box, then the behavior is the same as without the patch - lists hosts without any option group.
But if there will be at least one template listed in a (host) combo-box, then hosts and templates are grouped as seen in the screen-shots.
A host option group will not be displayed when only templates are listed.

Comment by Marc [ 2014 Jan 06 ]

Attached patch:
ZBXNEXT-1820-2.0.10-tweenboxes.patch

adds tweenbox related modifications.

It does not include combobox related modifications from ZBXNEXT-1820-2.0.10.patch

The patch separates hosts and templates in dedicated tweenboxes. Some labels are changed too.

A proper patch compatible with ZBXNEXT-370 can be provided on demand.

This patch is not tested very well yet!

Comment by richlv [ 2014 Jan 18 ]

in some places grouping would be ok, in others separate lists would be better - for example, "copy to" page - ZBX-7672

Comment by Pavels Jelisejevs (Inactive) [ 2014 Mar 28 ]

The problem with this solution is that it still treats hosts and templates as similar entities, when in reality they are completely different things. Ideally, they shouldn't appear together in a single list at all.

Comment by Volker Fröhlich [ 2015 Apr 10 ]

2.2 version from Marc, only implementing the dropdown menu part

Comment by Ivo Kurzemnieks [ 2022 Sep 15 ]

Zabbix UI has undergone many changes. There are no more dropdowns (except maybe a few places) and starting from 6.2+ templates and hosts now are separated in template groups and host groups. The labels now clearly indicate what user is browsing and selecting. Whether it's a host or template. There should no longer be any confusion which is which (some bugs still might exist).
Closing the issue.
If you feel like there is something else to be done, feel free to reopen it.

Generated at Fri Apr 26 03:12:27 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.