63 lines
1.8 KiB
PHTML
63 lines
1.8 KiB
PHTML
<?php
|
|
$this->is_service = false;
|
|
$this->hostquery = implode($this->hostnames, ',');
|
|
$this->target = array('host' => $this->hostquery);
|
|
?>
|
|
|
|
<div class="controls">
|
|
<?= $this->tabs; ?>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<?php if (count($objects) === 0): ?>
|
|
<?= mt('monitoring', 'No hosts matching the filter'); ?>
|
|
<?php else: ?>
|
|
<h1> Summary for <?= count($objects) ?> hosts </h1>
|
|
<?= $this->render('multi/components/objectlist.phtml'); ?>
|
|
<table class="avp">
|
|
<tr>
|
|
<th align="center">
|
|
<h3><?= array_sum(array_values($states)) ?> Hosts</h3>
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<?= $this->pie->render(); ?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
foreach ($states as $state => $count) {
|
|
if ($count > 0) {
|
|
echo ucfirst($state) . ': ' . $count . '<br />';
|
|
}
|
|
}
|
|
?>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2> <?=$this->icon('host')?> Host Actions </h2>
|
|
|
|
<table class="avp newsection">
|
|
<tbody>
|
|
<?= $this->render('multi/components/summary.phtml'); ?>
|
|
<?= $this->render('multi/components/comments.phtml'); ?>
|
|
<?= $this->render('multi/components/downtimes.phtml'); ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<?= $this->render('multi/components/flags.phtml') ?>
|
|
<?php endif ?>
|
|
</div>
|
|
|
|
<a
|
|
rel="tooltip"
|
|
title="Submit passive checkresults"
|
|
href="<?= $this->href('monitoring/command/submitpassivecheckresult', $this->target); ?>"
|
|
class="button btn-cta btn-common btn-small"
|
|
>
|
|
<i class="icinga-icon-submit"></i>
|
|
</a>
|