[ZBX-9257] No history links in trigger popups for triggers with 2 or more items Created: 2015 Jan 28 Updated: 2017 May 30 Resolved: 2015 Feb 10 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.4.3 |
Fix Version/s: | 2.4.4rc1, 2.5.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Jakub Kuchta | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | regression, triggers | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
All browsers (PHP issue) |
Attachments: | 1.png 2.png trigger_hosts_after.png trigger_hosts_before.png | ||||||||
Issue Links: |
|
Description |
If we create a trigger with at least two items in expression, the popup window will not show links to history of the items. (1.png). I've tracked down the issue to tr_status.php, line 547, but the problem probably lies somewhere in setMenuPopup or getTrigger. Checking the value of the array returned by getTrigger: $descArray = CMenuPopupHelper::getTrigger($trigger, $triggerItems); Array ( [type] => trigger [triggerid] => 15217 [items] => Array ( [1] => Array ( [name] => Procent wolnego miejsca na C: [params] => Array ( [itemid] => 30666 [action] => showgraph ) ) [0] => Array ( [name] => Wolne miejsce na C: [params] => Array ( [itemid] => 30665 [action] => showgraph ) ) ) [acknowledge] => [eventTime] => [configuration] => Array ( [hostid] => 10276 ) [url] => [showEvents] => 1 ) The index of the nested array "index" starts at 1 - something futher down doesn't cope well with this. $description = new CSpan($trigger['description'], 'link_menu'); $triggerPopupData = CMenuPopupHelper::getTrigger($trigger, $triggerItems); sort($triggerPopupData['items']); $description->setMenuPopup($triggerPopupData); |
Comments |
Comment by richlv [ 2015 Jan 29 ] |
(1) not directly related, but a minor issue : regression, broken by :
if this can not be handled in this issue, please split it out in a separate issue iivs RESOLVED for:
sasha CLOSED |
Comment by richlv [ 2015 Jan 29 ] |
confirming in trunk r51893; seems to happen when trigger references items from more than one host regression, caused by : ------------------------------------------------------------------------ ..F....... |
Comment by richlv [ 2015 Jan 29 ] |
(2) the links are missing in monitoring -> triggers. they are still there in monitoring -> overview, but they did not have host prefixed even before the regression in r41617. let's figure out why those menus are different and fix them in all places we can think of. looks like... if items with different keys are from 2 different hosts, links are missing in monitoring -> triggers, and they are available, but without host prefix. iivs another similar thing happens: trigger with 2 items from same host seems to work, but 3 no longer work (even if all if them are supported). Not it Monitoring->Overview and not in Monitoring->Triggers. iivs RESOLVED for:
sasha The links are not sorted. REOPENED iivs As discussed, I move item retrieval code in one place and fixed sorting. sasha Any API calls should be outside menu helpers. REOPENED iivs RESOLVED in r52079 sasha CLOSED |
Comment by Ivo Kurzemnieks [ 2015 Jan 30 ] |
RESOLVED for:
|
Comment by Alexander Vladishev [ 2015 Feb 09 ] |
(3) Take a look at my changes in r52107. iivs Thanks! |
Comment by Ivo Kurzemnieks [ 2015 Feb 09 ] |
Fixed:
Fixed in:
|