[ZBX-9791] Fired triggers could be linked to random hosts on maps Created: 2015 Aug 19  Updated: 2017 May 30  Resolved: 2015 Sep 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.5.0
Fix Version/s: 3.0.0alpha2

Type: Incident report Priority: Critical
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: maps, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It happens because we missed "I" in $hostId:

include/maps.inc.php:

foreach ($triggersFromMonitoredHosts as $triggerId => $trigger) {
    foreach ($trigger['hosts'] as $host) {
        $hostd = $host['hostid'];

        if (isset($hostIdToSelementIds[$hostId])) {
            foreach ($hostIdToSelementIds[$hostId] as $selementId) {
                $selements[$selementId]['triggers'][$triggerId] = $triggerId;
            }
        }
    }
}


 Comments   
Comment by Alexander Vladishev [ 2015 Aug 20 ]

Broken in ZBX-9375.

Comment by Gunars Pujats (Inactive) [ 2015 Aug 25 ]

(1) No translation strings changed.

iivs CLOSED.

Comment by Gunars Pujats (Inactive) [ 2015 Aug 25 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-9791

Comment by Ivo Kurzemnieks [ 2015 Sep 01 ]

TESTED.

Generated at Fri Apr 26 06:11:34 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.