mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-10-31 03:14:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHTML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHTML
		
	
	
	
	
	
| <?php $showService = $object->service_description && $tabs->getActiveName() !== 'host' ?>
 | |
| <?php if (!$this->compact): ?>
 | |
| <?= $tabs ?>
 | |
| <?php endif ?>
 | |
| <table class="objectstate">
 | |
|   <tr class="state <?= $this->monitoringState($object, 'host') ?><?= $object->host_handled ? ' handled' : '' ?>">
 | |
|     <td class="state"<?= $showService ? '' : ' rowspan="2"' ?>>
 | |
|       <strong><?= $this->translate($this->util()->getHostStateName($object->host_state)) ?></strong><br />
 | |
|       <?= $this->prefixedTimeSince($object->host_last_state_change, true) ?>
 | |
|     </td>
 | |
|     <td><b><?= $this->escape($object->host_name) ?></b><?php
 | |
|  if ($object->host_address && $object->host_address !== $object->host_name): ?>
 | |
|  <br><?= $this->escape($object->host_address) ?>
 | |
| <?php endif ?>
 | |
|     </td>
 | |
|   </tr>
 | |
| <?php if ($showService): ?>
 | |
|   <tr class="state <?= $this->monitoringState($object, 'service') ?><?= $object->service_handled ? ' handled' : '' ?>">
 | |
|     <td class="state">
 | |
|       <strong><?= $this->translate($this->util()->getServiceStateName($object->service_state)) ?></strong><br />
 | |
|       <?= $this->prefixedTimeSince($object->service_last_state_change, true) ?>
 | |
|     </td>
 | |
|     <td><b><?= $this->translate('Service') ?>: <?= $this->escape($object->service_description) ?></b>
 | |
| 
 | |
|     <?= $this->render('show/components/statusIcons.phtml') ?>
 | |
| 
 | |
| </td>
 | |
|   </tr>
 | |
| <?php else: ?>
 | |
|   <tr><td><!--<b>Host state</b>--> </td></tr>
 | |
| <?php endif ?>
 | |
| </table>
 |