2013-08-22 17:17:58 +02:00
|
|
|
<?php $showService = $object->service_description && $tabs->getActiveName() !== 'host' ?>
|
2014-03-06 14:20:34 +01:00
|
|
|
<?php if (!$this->compact): ?>
|
|
|
|
<?= $tabs ?>
|
2013-08-22 17:17:58 +02:00
|
|
|
<?php endif ?>
|
2014-03-06 14:20:34 +01:00
|
|
|
<table class="objectstate">
|
|
|
|
<tr class="state <?= $this->monitoringState($object, 'host') ?><?= $object->host_handled ? ' handled' : '' ?>">
|
|
|
|
<td class="state"<?= $showService ? '' : ' rowspan="2"' ?>>
|
2014-05-27 23:44:02 +02:00
|
|
|
<?= $this->translate($this->util()->getHostStateName($object->host_state)) ?><br />
|
2014-05-29 13:03:10 +02:00
|
|
|
<?= $this->prefixedTimeSince($object->host_last_state_change, true) ?>
|
2013-07-12 14:33:17 +02:00
|
|
|
</td>
|
2014-03-06 14:20:34 +01:00
|
|
|
<td><b><?= $this->escape($object->host_name) ?></b><?php
|
|
|
|
if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
2014-03-08 19:48:47 +01:00
|
|
|
<br><?= $this->escape($object->host_address) ?>
|
2014-03-06 14:20:34 +01:00
|
|
|
<?php endif ?>
|
|
|
|
</td>
|
2013-07-12 14:33:17 +02:00
|
|
|
</tr>
|
2013-08-22 17:17:58 +02:00
|
|
|
<?php if ($showService): ?>
|
2014-03-06 14:20:34 +01:00
|
|
|
<tr class="state <?= $this->monitoringState($object, 'service') ?><?= $object->service_handled ? ' handled' : '' ?>">
|
|
|
|
<td class="state">
|
2014-05-27 23:44:02 +02:00
|
|
|
<?= $this->translate($this->util()->getServiceStateName($object->service_state)) ?><br />
|
2014-05-29 13:03:10 +02:00
|
|
|
<?= $this->prefixedTimeSince($object->service_last_state_change, true) ?>
|
2013-07-12 14:33:17 +02:00
|
|
|
</td>
|
2014-05-27 23:44:02 +02:00
|
|
|
<td><b><?= $this->translate('Service') ?>: <?= $this->escape($object->service_description) ?></b>
|
2014-03-06 19:59:37 +01:00
|
|
|
|
|
|
|
<?= $this->render('show/components/statusIcons.phtml') ?>
|
|
|
|
|
|
|
|
</td>
|
2013-07-12 14:33:17 +02:00
|
|
|
</tr>
|
2014-03-06 14:20:34 +01:00
|
|
|
<?php else: ?>
|
|
|
|
<tr><td><!--<b>Host state</b>--> </td></tr>
|
|
|
|
<?php endif ?>
|
2013-07-12 14:33:17 +02:00
|
|
|
</table>
|