Skip to content

Commit

Permalink
monitoring: Display soft states in the host detail view
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Oct 28, 2015
1 parent c0c9f3b commit b325c47
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -6,7 +6,12 @@ use Icinga\Module\Monitoring\Object\Host;
<tr>
<td class="state-col state-<?= Host::getStateText($object->host_state) ?><?= $object->host_handled ? ' handled' : '' ?>">
<div class="state-header"><?= Host::getStateText($object->host_state, true) ?></div>
<div class="state-meta"><?= $this->timeSince($object->host_last_state_change) ?></div>
<div class="state-meta">
<?= $this->timeSince($object->host_last_state_change) ?>
<?php if ((int) $object->host_state > 0 && (int) $object->host_state_type === 0): ?>
<div><?= $this->translate('Soft', 'Soft state') ?> <?= $object->host_attempt ?></div>
<?php endif ?>
</div>
</td>
<td>
<?= $this->iconImage()->host($object) ?>
Expand Down

0 comments on commit b325c47

Please sign in to comment.