mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
parent
8aa1dcd4f9
commit
daa9d8a9ef
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
use Icinga\Module\Monitoring\Object\Host;
|
use Icinga\Module\Monitoring\Object\Host;
|
||||||
use Icinga\Module\Monitoring\Object\Service;
|
use Icinga\Module\Monitoring\Object\Service;
|
||||||
|
/** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */
|
||||||
?>
|
?>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@ -9,15 +10,15 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||||||
<?= $this->timeSince($object->host_last_state_change) ?>
|
<?= $this->timeSince($object->host_last_state_change) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->iconImage()->service($object) ?>
|
<?= $this->iconImage()->service($object) ?>
|
||||||
<?= $this->escape($object->host_display_name) ?>
|
<?= $this->escape($object->host_display_name) ?>
|
||||||
<?php if ($object->host_display_name !== $object->host_name): ?>
|
<?php if ($object->host_display_name !== $object->host_name): ?>
|
||||||
(<?= $this->escape($object->host_name) ?>)
|
(<?= $this->escape($object->host_name) ?>)
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
||||||
<br>
|
<br>
|
||||||
<?= $this->escape($object->host_address) ?>
|
<?= $this->escape($object->host_address) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?= $this->render('partials/host/statusicons.phtml') ?>
|
<?= $this->render('partials/host/statusicons.phtml') ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -29,9 +30,9 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||||||
<td>
|
<td>
|
||||||
<?= $this->iconImage()->host($object) ?>
|
<?= $this->iconImage()->host($object) ?>
|
||||||
<?= $this->translate('Service') ?>: <?= $this->escape($object->service_display_name) ?>
|
<?= $this->translate('Service') ?>: <?= $this->escape($object->service_display_name) ?>
|
||||||
<?php if ($object->service_display_name !== $object->service_description): ?>
|
<?php if ($object->service_display_name !== $object->service_description): ?>
|
||||||
(<?= $this->escape($object->service_description) ?>)
|
(<?= $this->escape($object->service_description) ?>)
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?= $this->render('partials/service/statusicons.phtml') ?>
|
<?= $this->render('partials/service/statusicons.phtml') ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user