Use `servicegroup_name' instead of `servicegroup' to filter services
refs #8613
This commit is contained in:
parent
e5eca97169
commit
1e6f292910
|
@ -28,7 +28,7 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($servicegroups as $s): ?>
|
||||
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup' => $s->servicegroup)); ?>">
|
||||
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $s->servicegroup)); ?>">
|
||||
<?php if ($s->services_critical_last_state_change_unhandled): ?>
|
||||
<td class="state change critical unhandled">
|
||||
<strong><?= $this->translate('CRITICAL'); ?></strong>
|
||||
|
@ -82,7 +82,7 @@
|
|||
<?= $this->qlink(
|
||||
$s->servicegroup_alias,
|
||||
'monitoring/list/services',
|
||||
array('servicegroup' => $s->servicegroup),
|
||||
array('servicegroup_name' => $s->servicegroup),
|
||||
array('title' => sprintf($this->translate('List all services in the group "%s"'), $s->servicegroup_alias))
|
||||
); ?>
|
||||
</td>
|
||||
|
@ -96,9 +96,9 @@
|
|||
$s->services_ok,
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 0,
|
||||
'servicegroup' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
'service_state' => 0,
|
||||
'servicegroup_name' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
),
|
||||
array(
|
||||
'title' => sprintf(
|
||||
|
@ -124,7 +124,7 @@
|
|||
'service_acknowledged' => 0,
|
||||
'service_in_downtime' => 0,
|
||||
'host_problem' => 0,
|
||||
'servicegroup' => $s->servicegroup,
|
||||
'servicegroup_name' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
),
|
||||
array(
|
||||
|
@ -148,7 +148,7 @@
|
|||
array(
|
||||
'service_state' => 2,
|
||||
'service_handled' => 1,
|
||||
'servicegroup' => $s->servicegroup,
|
||||
'servicegroup_name' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
),
|
||||
array(
|
||||
|
@ -178,7 +178,7 @@
|
|||
'service_acknowledged' => 0,
|
||||
'service_in_downtime' => 0,
|
||||
'host_problem' => 0,
|
||||
'servicegroup' => $s->servicegroup,
|
||||
'servicegroup_name' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
),
|
||||
array(
|
||||
|
@ -202,7 +202,7 @@
|
|||
array(
|
||||
'service_state' => 3,
|
||||
'service_handled' => 1,
|
||||
'servicegroup' => $s->servicegroup,
|
||||
'servicegroup_name' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
),
|
||||
array(
|
||||
|
@ -232,7 +232,7 @@
|
|||
'service_acknowledged' => 0,
|
||||
'service_in_downtime' => 0,
|
||||
'host_problem' => 0,
|
||||
'servicegroup' => $s->servicegroup,
|
||||
'servicegroup_name' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
),
|
||||
array(
|
||||
|
@ -256,7 +256,7 @@
|
|||
array(
|
||||
'service_state' => 1,
|
||||
'service_handled' => 1,
|
||||
'servicegroup' => $s->servicegroup,
|
||||
'servicegroup_name' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
),
|
||||
array(
|
||||
|
@ -282,9 +282,9 @@
|
|||
$s->services_pending,
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 99,
|
||||
'servicegroup' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
'service_state' => 99,
|
||||
'servicegroup_name' => $s->servicegroup,
|
||||
'sort' => 'service_severity'
|
||||
),
|
||||
array(
|
||||
'title' => sprintf(
|
||||
|
|
|
@ -7,7 +7,7 @@ foreach ($object->servicegroups as $name => $alias) {
|
|||
$list[] = $this->qlink(
|
||||
$alias,
|
||||
'monitoring/list/services',
|
||||
array('servicegroup' => $name),
|
||||
array('servicegroup_name' => $name),
|
||||
array('title' => sprintf($this->translate('List all services in the group "%s"'), $alias))
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue