Skip to content

Commit

Permalink
monitoring: Display soft states in the service 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 b325c47 commit 8212ff9
Showing 1 changed file with 12 additions and 2 deletions.
Expand Up @@ -7,7 +7,12 @@ use Icinga\Module\Monitoring\Object\Service;
<tr>
<td class="state-col state-<?= Host::getStateText($object->host_state) ?><?= $object->host_handled ? ' handled' : '' ?>">
<div class="state-label"><?= 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 All @@ -31,7 +36,12 @@ use Icinga\Module\Monitoring\Object\Service;
<tr>
<td class="state-col state-<?= Service::getStateText($object->service_state) ?><?= $object->service_handled ? ' handled' : '' ?>">
<div class="state-label"><?= Service::getStateText($object->service_state, true) ?></div>
<div class="state-meta"><?= $this->timeSince($object->service_last_state_change) ?></div>
<div class="state-meta">
<?= $this->timeSince($object->service_last_state_change) ?>
<?php if ((int) $object->service_state > 0 && (int) $object->service_state_type === 0): ?>
<div><?= $this->translate('Soft', 'Soft state') ?> <?= $object->service_attempt ?></div>
<?php endif ?>
</div>
</td>
<td>
<?= $this->iconImage()->service($object) ?>
Expand Down

0 comments on commit 8212ff9

Please sign in to comment.