Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/partials/monitoring.service.list.php')
-rw-r--r--ui/app/partials/monitoring.service.list.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/app/partials/monitoring.service.list.php b/ui/app/partials/monitoring.service.list.php
index 9d3ffd5cb88..6c22fbbc977 100644
--- a/ui/app/partials/monitoring.service.list.php
+++ b/ui/app/partials/monitoring.service.list.php
@@ -77,19 +77,19 @@ foreach ($data['services'] as $serviceid => $service) {
$root_cause = [];
- foreach ($data['events'][$serviceid] as $event) {
+ foreach (array_slice($service['problem_events'], 0, $data['max_in_table']) as $problem_event) {
if ($root_cause) {
$root_cause[] = ', ';
}
- $root_cause[] = $data['can_monitor_problems']
- ? new CLink($event['name'],
+ $root_cause[] = $data['can_monitor_problems'] && $problem_event['triggerid'] !== null
+ ? new CLink($problem_event['name'],
(new CUrl('zabbix.php'))
->setArgument('action', 'problem.view')
->setArgument('filter_name', '')
- ->setArgument('triggerids', [$event['objectid']])
+ ->setArgument('triggerids', [$problem_event['triggerid']])
)
- : $event['name'];
+ : $problem_event['name'];
}
$table->addRow(new CRow(array_merge($row, [