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