[ZBX-5639] Availability report ignores global option "Dropdown first entry" Created: 2012 Oct 01  Updated: 2017 May 30  Resolved: 2012 Nov 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.15, 2.0.3rc1
Fix Version/s: 2.0.4, 2.1.0

Type: Incident report Priority: Major
Reporter: Oleksii Zagorskyi Assignee: Oleg Egorov (Inactive)
Resolution: Fixed Votes: 0
Labels: availability, reports
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

Even if we select "None" for "Dropdown first entry" global option, on the Availability report "Host group" and "Host" will have "not selected" but actually report works as for "All"

I.e. we see statistic of all hosts from all groups and it's critical problem on big installations.

Reproduced for latest 1.8 and 2.0.



 Comments   
Comment by Oleg Egorov (Inactive) [ 2012 Oct 26 ]

RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-5639 r31105

Comment by Toms (Inactive) [ 2012 Oct 29 ]

(1) Mode: By trigger template
Select some group and host with triggers
Triggers doesn't appear in list, thou they should.

oleg.egorov RESOLVED

tomtom this problem still exists

choose template group, then template, then host, now change template. You will see empty list, but host selection is to "all". If you chose some host and then again "all" you will see triggers.

oleg.egorov I can't reproduce this issue now, if this problem exist, please say me

oleg.egorov RESOLVED

tomtom Revision number missing!
This is quite hackish leading to following bug:
mode:"By trigger template"
open availability report in two tabs
in first filter some triggers using first 3 drop-downs
in second tab do the same with diferent template
in first tab press filter, selected options are gone

as well there is undefined index:
Undefined index: filter_hostid [report2.php:80]
it is noticeable in several combinations, including with mode: "By host"

oleg.egorov RESOLVED IN r31322 + minor minor code refactoring in r31323

tomtom CLOSED

Comment by Toms (Inactive) [ 2012 Oct 29 ]

(2)
if (a) {
if (b)

{ do(); }

}
else

{ do(); }

Should be written as:
if (b || !a) { do(); }

oleg.egorov RESOLVED

tomtom Changes regarding those "ifs" changed logic and still wasn't optimal. See r31155, if OK close this sub-issue.

oleg.egorov CLOSED

oleg.egorov After changes in r31155, select in form "By trigger template" works incorrect

oleg.egorov Fixed in r31204

tomtom CLOSED. This worked incorrect as well in code from which I made changes

Comment by Toms (Inactive) [ 2012 Oct 29 ]

(3)
select_config() should be assigned to variable $config not $gui, as it is everywhere in the code. As well $gui stands for Graphical User Interface and would be misleading anyway. Current variable $config should be renamed to something like $availabilityReportMode.

oleg.egorov RESOLVED

tomtom CLOSED

Comment by Toms (Inactive) [ 2012 Oct 29 ]

(4) select_config() should be called right before usage of its returned data.

oleg.egorov RESOLVED

tomtom CLOSED

Comment by Toms (Inactive) [ 2012 Oct 29 ]

(5) as an addition to this issue it would be nice to fix that selected values would be remembered in filter if "remember selected" is selected in configuration.

oleg.egorov In form "By trigger template" not need remember "Template trigger" and "Filter by host group" - Pavel decision

RESOLVED in r31144

Mode is not remembered now.

Group and template/host is only remembered if button "filter" is clicked.

Group and template/host is remembered if checkbox "Remember selected" in Configuration is checked.

oleg.egorov RESOLVED

tomtom CLOSED

Comment by Toms (Inactive) [ 2012 Oct 31 ]

(6) $_REQUEST['config'] as well should be renamed according to its logic.

oleg.egorov RESOLVED

tomtom CLOSED

Comment by Toms (Inactive) [ 2012 Oct 31 ]

(7)

if (!isset($_REQUEST['config']))

{ $_REQUEST['config'] = 0; }

instead of 0, constant AVAILABILITY_REPORT_BY_HOST should be used

oleg.egorov RESOLVED

tomtom CLOSED

Comment by Oleg Egorov (Inactive) [ 2012 Nov 06 ]

I found problem in 2.0.4, don't work "Filter by host group"
It will be fixed under this ZBX

oleg.egorov RESOLVED r31297

tomtom CLOSED

Comment by Toms (Inactive) [ 2012 Nov 15 ]

TESTED

Review my changes in r31462, if OK merge.

oleg.egorov CLOSED

Comment by Oleg Egorov (Inactive) [ 2012 Nov 15 ]

RESOLVED IN 2.0.4 r31471, 2.1.0 r31472
CLOSED

Generated at Thu Apr 25 12:13:06 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.