[ZBXNEXT-7687] Extend sorting in Top Hosts widget. Created: 2022 May 09  Updated: 2024 Sep 16  Resolved: 2023 Nov 07

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F), Server (S)
Affects Version/s: 6.0.3, 6.0.4
Fix Version/s: 7.0.0alpha5, 7.0 (plan)

Type: Change Request Priority: Trivial
Reporter: FNkey Assignee: Dmitrijs Fofanovs
Resolution: Fixed Votes: 5
Labels: sorting, tophosts, widget
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 6.0


Attachments: PNG File Interactive_hostname_field.png     PNG File Top_Hosts_widget_problem.png     PNG File image-2023-09-05-14-58-58-902.png     PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png     PNG File screenshot-5.png    
Issue Links:
Causes
causes ZBX-23183 Top hosts widget is not showing all h... Closed
causes ZBX-25220 Tops Hosts dashboard widget keeps loa... Closed
Epic Link: Zabbix 7.0
Team: Team A
Sprint: Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)
Story Points: 1

 Description   

Top Hosts widget require column name to sort rows, but only data with "item value" type can be sorted.
In my case I used to switch from deprecated Data Overview widget to Top Hosts widget and can't sort rows by "interactive" hostname.
My FR is about adding sort to all kinds of columns and especially to column with "host name" type that is interactive, from what I can dive into host parameters.



 Comments   
Comment by FNkey [ 2022 May 10 ]

Also, if I create column with item value "System name" than I can sort hosts by name, but hosts with "Down" status will disappear from widget. This is non-intuitive and strange behavior.

Comment by Constantin Oshmyan [ 2022 Jun 27 ]

Hi!
The same problem in the same scenario: I'm trying to migrate from the deprecated "Data Overview" widget to the "Top Hosts" one.
The only workaround at the moment is: to add some item containing the host name (like agent.hostname) and perform a sorting by this item value. However:

  • it's stupid to use an item value for visualization and sorting when we already have the host name column;
  • this workaround requires to have some item returning a host name; it's not always possible;
  • for this task (migration from the deprecated "Data Overview" widget) it would be valuable to have possibility to have a fixed, user-defined order of lines (besides the sorting by some field).
Comment by Alexei Vladishev [ 2023 Aug 01 ]

This functionality is coming in 7.0.

Comment by Dmitrijs Fofanovs [ 2023 Aug 09 ]

Resolved in feature/ZBXNEXT-7687-6.5

Comment by Dmitrijs Fofanovs [ 2023 Sep 11 ]

Implemented in:

Comment by Lidija Marsova (Inactive) [ 2023 Sep 18 ]

Documentation updated (7.0):

Comment by Dmitrijs Fofanovs [ 2023 Sep 20 ]

API documentation updated:

Generated at Mon Apr 28 03:19:27 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.