Use `hostgroup_name' instead of `hostgroup' to filter hosts and services
refs #8613
This commit is contained in:
parent
f7550f55c1
commit
e5eca97169
|
@ -28,7 +28,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($hostgroups as $h): ?>
|
<?php foreach ($hostgroups as $h): ?>
|
||||||
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup' => $h->hostgroup)) ?>">
|
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup_name' => $h->hostgroup)) ?>">
|
||||||
<?php if ($h->services_critical_last_state_change_unhandled): ?>
|
<?php if ($h->services_critical_last_state_change_unhandled): ?>
|
||||||
<td class="state change critical unhandled">
|
<td class="state change critical unhandled">
|
||||||
<strong><?= $this->translate('CRITICAL'); ?></strong>
|
<strong><?= $this->translate('CRITICAL'); ?></strong>
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$h->hostgroup_alias,
|
$h->hostgroup_alias,
|
||||||
'monitoring/list/hosts',
|
'monitoring/list/hosts',
|
||||||
array('hostgroup' => $h->hostgroup),
|
array('hostgroup_name' => $h->hostgroup),
|
||||||
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $h->hostgroup_alias))
|
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $h->hostgroup_alias))
|
||||||
); ?>
|
); ?>
|
||||||
</td>
|
</td>
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$h->services_total,
|
$h->services_total,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array('hostgroup' => $h->hostgroup),
|
array('hostgroup_name' => $h->hostgroup),
|
||||||
array('title' => sprintf(
|
array('title' => sprintf(
|
||||||
$this->translate('List all services of all hosts in host group "%s"'),
|
$this->translate('List all services of all hosts in host group "%s"'),
|
||||||
$h->hostgroup_alias
|
$h->hostgroup_alias
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 0,
|
'service_state' => 0,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup_name' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
'service_acknowledged' => 0,
|
'service_acknowledged' => 0,
|
||||||
'service_in_downtime' => 0,
|
'service_in_downtime' => 0,
|
||||||
'host_problem' => 0,
|
'host_problem' => 0,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup_name' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
array(
|
array(
|
||||||
'service_state' => 2,
|
'service_state' => 2,
|
||||||
'service_handled' => 1,
|
'service_handled' => 1,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup_name' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
'service_acknowledged' => 0,
|
'service_acknowledged' => 0,
|
||||||
'service_in_downtime' => 0,
|
'service_in_downtime' => 0,
|
||||||
'host_problem' => 0,
|
'host_problem' => 0,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup_name' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -210,7 +210,7 @@
|
||||||
array(
|
array(
|
||||||
'service_state' => 3,
|
'service_state' => 3,
|
||||||
'service_handled' => 1,
|
'service_handled' => 1,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup_name' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -240,7 +240,7 @@
|
||||||
'service_acknowledged' => 0,
|
'service_acknowledged' => 0,
|
||||||
'service_in_downtime' => 0,
|
'service_in_downtime' => 0,
|
||||||
'host_problem' => 0,
|
'host_problem' => 0,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup_name' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -264,7 +264,7 @@
|
||||||
array(
|
array(
|
||||||
'service_state' => 1,
|
'service_state' => 1,
|
||||||
'service_handled' => 1,
|
'service_handled' => 1,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup_name' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -291,7 +291,7 @@
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 99,
|
'service_state' => 99,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup_name' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -7,7 +7,7 @@ foreach ($object->hostgroups as $name => $alias) {
|
||||||
$list[] = $this->qlink(
|
$list[] = $this->qlink(
|
||||||
$alias,
|
$alias,
|
||||||
'monitoring/list/hosts',
|
'monitoring/list/hosts',
|
||||||
array('hostgroup' => $name),
|
array('hostgroup_name' => $name),
|
||||||
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $alias))
|
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $alias))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue