monitoring: No longer render last problem column in the host groups overview

I doubt that this column had any real value. If there's a "problem" on a host group, the state badges help you.

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-25 11:01:47 +02:00
parent 231bee086a
commit 1a4c1a5d94
1 changed files with 2 additions and 36 deletions

View File

@ -18,7 +18,6 @@ if (! $this->compact): ?>
<table class="groupview action" data-base-target="_next">
<thead>
<tr>
<th><?= $this->translate('Last Problem') ?></th>
<th><?= $this->translate('Host Group') ?></th>
<th><?= $this->translate('Total Hosts') ?></th>
<th><?= $this->translate('Host States') ?></th>
@ -27,41 +26,8 @@ if (! $this->compact): ?>
</tr>
</thead>
<tbody>
<?php foreach ($hostgroups as $hostgroup):
if ($hostgroup->hosts_down_unhandled) {
$handled = false;
$state = Host::STATE_DOWN;
$lastStateChange = $hostgroup->hosts_down_last_state_change_unhandled;
} elseif ($hostgroup->hosts_unreachable_unhandled) {
$handled = false;
$state = Host::STATE_UNREACHABLE;
$lastStateChange = $hostgroup->hosts_unreachable_last_state_change_unhandled;
} else {
$handled = true;
if ($hostgroup->hosts_down_handled) {
$state = Host::STATE_DOWN;
$lastStateChange = $hostgroup->hosts_down_last_state_change_handled;
} elseif ($hostgroup->hosts_unreachable_handled) {
$state = Host::STATE_UNREACHABLE;
$lastStateChange = $hostgroup->hosts_unreachable_last_state_change_handled;
} elseif ($hostgroup->hosts_up) {
$state = Host::STATE_UP;
$lastStateChange = $hostgroup->hosts_up_last_state_change;
} else {
$state = Host::STATE_PENDING;
$lastStateChange = $hostgroup->hosts_pending_last_state_change;
}
}
?>
<tr class="state <?= Host::getStateText($state) ?><?= $handled ? ' handled' : '' ?>" href="<?=
$this->href('monitoring/list/hosts', array('hostgroup_name' => $hostgroup->hostgroup_name))
?>">
<td class="state">
<strong><?= Host::getStateText($state, true) ?></strong>
<br>
<?= $this->timeSince($lastStateChange, $this->compact) ?>
</td>
<?php foreach ($hostgroups as $hostgroup): ?>
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup_name' => $hostgroup->hostgroup_name)) ?>">
<td class="groupname">
<?= $this->qlink(
$hostgroup->hostgroup_alias,