parent
e0164e8bcb
commit
45e1406e2a
|
@ -79,39 +79,53 @@
|
||||||
</td>
|
</td>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<td class="groupname">
|
<td class="groupname">
|
||||||
<a href="<?= $this->href('monitoring/list/hosts', array('hostgroup' => $h->hostgroup)); ?>">
|
<?= $this->qlink(
|
||||||
<?= $this->escape($h->hostgroup_alias) ?>
|
$h->hostgroup_alias,
|
||||||
</a>
|
'monitoring/list/hosts',
|
||||||
|
array('hostgroup' => $h->hostgroup),
|
||||||
|
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $h->hostgroup_alias))
|
||||||
|
); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="total">
|
<td class="total">
|
||||||
<?= $this->qlink($h->services_total, 'monitoring/list/services', array('hostgroup' => $h->hostgroup)) ?>
|
<?= $this->qlink(
|
||||||
|
$h->services_total,
|
||||||
|
'monitoring/list/services',
|
||||||
|
array('hostgroup' => $h->hostgroup),
|
||||||
|
array('title' => sprintf(
|
||||||
|
$this->translate('List all services of all hosts in host group "%s"'),
|
||||||
|
$h->hostgroup_alias
|
||||||
|
))
|
||||||
|
); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="state">
|
<td class="state">
|
||||||
<?php if ($h->services_ok): ?>
|
<?php if ($h->services_ok): ?>
|
||||||
<span class="state ok">
|
<span class="state ok">
|
||||||
<a href="<?= $this->href(
|
<?= $this->qlink(
|
||||||
|
$h->services_ok,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 0,
|
'service_state' => 0,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
)
|
),
|
||||||
); ?>" title="<?= printf(
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u service with status ok in host group %s',
|
'List %u service that is currently in state OK on hosts in the host group "%s"',
|
||||||
'List %u services with status ok in host group %s',
|
'List %u services which are currently in state OK on hosts in the host group "%s"',
|
||||||
$h->services_ok
|
$h->services_ok
|
||||||
),
|
),
|
||||||
$h->services_ok,
|
$h->services_ok,
|
||||||
$h->hostgroup
|
$h->hostgroup_alias
|
||||||
); ?>">
|
)
|
||||||
<?= $h->services_ok; ?>
|
)
|
||||||
</a>
|
); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_critical_unhandled): ?>
|
<?php if ($h->services_critical_unhandled): ?>
|
||||||
<span class="state critical">
|
<span class="state critical">
|
||||||
<a href="<?= $this->href(
|
<?= $this->qlink(
|
||||||
|
$h->services_critical_unhandled,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 2,
|
'service_state' => 2,
|
||||||
|
@ -120,40 +134,43 @@
|
||||||
'host_problem' => 0,
|
'host_problem' => 0,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
)
|
),
|
||||||
); ?>" title="<?php printf(
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u service with status critical unhandled in host group %s',
|
'List %u service that is currently in state CRITICAL on hosts in the host group "%s"',
|
||||||
'List %u services with status critical unhandled in host group %s',
|
'List %u services which are currently in state CRITICAL on hosts in the host group "%s"',
|
||||||
$h->services_critical_unhandled
|
$h->services_critical_unhandled
|
||||||
),
|
),
|
||||||
$h->services_critical_unhandled,
|
$h->services_critical_unhandled,
|
||||||
$h->hostgroup
|
$h->hostgroup_alias
|
||||||
); ?>">
|
)
|
||||||
<?= $h->services_critical_unhandled; ?>
|
)
|
||||||
</a>
|
); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_critical_handled): ?>
|
<?php if ($h->services_critical_handled): ?>
|
||||||
<span class="state critical handled">
|
<span class="state critical handled">
|
||||||
<a href="<?= $this->href(
|
<?= $this->qlink(
|
||||||
|
$h->services_critical_handled,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 2,
|
'service_state' => 2,
|
||||||
'service_handled' => 1,
|
'service_handled' => 1,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
)
|
),
|
||||||
); ?>" title="<?php printf(
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u service with status critical handled in host group %s',
|
'List %u service that is currently in state CRITICAL (Acknowledged) on hosts in the host group "%s"',
|
||||||
'List %u services with status critical handled in host group %s',
|
'List %u services which are currently in state CRITICAL (Acknowledged) on hosts in the host group "%s"',
|
||||||
$h->services_critical_handled
|
$h->services_critical_handled
|
||||||
),
|
),
|
||||||
$h->services_critical_handled,
|
$h->services_critical_handled,
|
||||||
$h->hostgroup
|
$h->hostgroup_alias
|
||||||
); ?>">
|
)
|
||||||
<?= $h->services_critical_handled; ?>
|
)
|
||||||
</a>
|
); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_critical_unhandled): ?>
|
<?php if ($h->services_critical_unhandled): ?>
|
||||||
|
@ -161,7 +178,8 @@
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_unknown_unhandled): ?>
|
<?php if ($h->services_unknown_unhandled): ?>
|
||||||
<span class="state unknown">
|
<span class="state unknown">
|
||||||
<a href="<?= $this->href(
|
<?= $this->qlink(
|
||||||
|
$h->services_unknown_unhandled,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 3,
|
'service_state' => 3,
|
||||||
|
@ -170,40 +188,43 @@
|
||||||
'host_problem' => 0,
|
'host_problem' => 0,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
)
|
),
|
||||||
); ?>" title="<?php printf(
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u service with status unknown unhandled in host group %s',
|
'List %u service that is currently in state UNKNOWN on hosts in the host group "%s"',
|
||||||
'List %u services with status unknown unhandled in host group %s',
|
'List %u services which are currently in state UNKNOWN on hosts in the host group "%s"',
|
||||||
$h->services_unknown_unhandled
|
$h->services_unknown_unhandled
|
||||||
),
|
),
|
||||||
$h->services_unknown_unhandled,
|
$h->services_unknown_unhandled,
|
||||||
$h->hostgroup
|
$h->hostgroup_alias
|
||||||
); ?>">
|
)
|
||||||
<?= $h->services_unknown_unhandled; ?>
|
)
|
||||||
</a>
|
); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_unknown_handled): ?>
|
<?php if ($h->services_unknown_handled): ?>
|
||||||
<span class="state unknown handled">
|
<span class="state unknown handled">
|
||||||
<a href="<?= $this->href(
|
<?= $this->qlink(
|
||||||
|
$h->services_unknown_handled,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 3,
|
'service_state' => 3,
|
||||||
'service_handled' => 1,
|
'service_handled' => 1,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
)
|
),
|
||||||
); ?>" title="<?php printf(
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u service with status unknown handled in host group %s',
|
'List %u service that is currently in state UNKNOWN (Acknowledged) on hosts in the host group "%s"',
|
||||||
'List %u services with status unknown handled in host group %s',
|
'List %u services which are currently in state UNKNOWN (Acknowledged) on hosts in the host group "%s"',
|
||||||
$h->services_unknown_handled
|
$h->services_unknown_handled
|
||||||
),
|
),
|
||||||
$h->services_unknown_handled,
|
$h->services_unknown_handled,
|
||||||
$h->hostgroup
|
$h->hostgroup_alias
|
||||||
); ?>">
|
)
|
||||||
<?= $h->services_unknown_handled; ?>
|
)
|
||||||
</a>
|
); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_unknown_unhandled): ?>
|
<?php if ($h->services_unknown_unhandled): ?>
|
||||||
|
@ -211,7 +232,8 @@
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_warning_unhandled): ?>
|
<?php if ($h->services_warning_unhandled): ?>
|
||||||
<span class="state warning">
|
<span class="state warning">
|
||||||
<a href="<?= $this->href(
|
<?= $this->qlink(
|
||||||
|
$h->services_warning_unhandled,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 1,
|
'service_state' => 1,
|
||||||
|
@ -220,40 +242,43 @@
|
||||||
'host_problem' => 0,
|
'host_problem' => 0,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
)
|
),
|
||||||
); ?>" title="<?php printf(
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u service with status warning unhandled in host group %s',
|
'List %u service that is currently in state WARNING on hosts in the host group "%s"',
|
||||||
'List %u services with status warning unhandled in host group %s',
|
'List %u services which are currently in state WARNING on hosts in the host group "%s"',
|
||||||
$h->services_warning_unhandled
|
$h->services_warning_unhandled
|
||||||
),
|
),
|
||||||
$h->services_warning_unhandled,
|
$h->services_warning_unhandled,
|
||||||
$h->hostgroup
|
$h->hostgroup_alias
|
||||||
); ?>">
|
)
|
||||||
<?= $h->services_warning_unhandled; ?>
|
)
|
||||||
</a>
|
); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_warning_handled): ?>
|
<?php if ($h->services_warning_handled): ?>
|
||||||
<span class="state warning handled">
|
<span class="state warning handled">
|
||||||
<a href="<?= $this->href(
|
<?= $this->qlink(
|
||||||
|
$h->services_warning_handled,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 1,
|
'service_state' => 1,
|
||||||
'service_handled' => 1,
|
'service_handled' => 1,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
)
|
),
|
||||||
); ?>" title="<?php printf(
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u service with status warning handled in host group %s',
|
'List %u service that is currently in state WARNING (Acknowledged) on hosts in the host group "%s"',
|
||||||
'List %u services with status warning handled in host group %s',
|
'List %u services which are currently in state WARNING (Acknowledged) on hosts in the host group "%s"',
|
||||||
$h->services_warning_handled
|
$h->services_warning_handled
|
||||||
),
|
),
|
||||||
$h->services_warning_handled,
|
$h->services_warning_handled,
|
||||||
$h->hostgroup
|
$h->hostgroup_alias
|
||||||
); ?>">
|
)
|
||||||
<?= $h->services_warning_handled; ?>
|
)
|
||||||
</a>
|
); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_warning_unhandled): ?>
|
<?php if ($h->services_warning_unhandled): ?>
|
||||||
|
@ -261,24 +286,26 @@
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($h->services_pending): ?>
|
<?php if ($h->services_pending): ?>
|
||||||
<span class="state pending">
|
<span class="state pending">
|
||||||
<a href="<?= $this->href(
|
<?= $this->qlink(
|
||||||
|
$h->services_pending,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array(
|
array(
|
||||||
'service_state' => 99,
|
'service_state' => 99,
|
||||||
'hostgroup' => $h->hostgroup,
|
'hostgroup' => $h->hostgroup,
|
||||||
'sort' => 'service_severity'
|
'sort' => 'service_severity'
|
||||||
)
|
),
|
||||||
); ?>" title="<?php printf(
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u service with status pending in host group %s',
|
'List %u service that is currently in state PENDING on hosts in the host group "%s"',
|
||||||
'List %u services with status pending in host group %s',
|
'List %u services which are currently in state PENDING on hosts in the host group "%s"',
|
||||||
$h->services_pending
|
$h->services_pending
|
||||||
),
|
),
|
||||||
$h->services_pending,
|
$h->services_pending,
|
||||||
$h->hostgroup
|
$h->hostgroup_alias
|
||||||
); ?>">
|
)
|
||||||
<?= $h->services_pending; ?>
|
)
|
||||||
</a>
|
); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue