2013-10-15 17:52:30 +02:00
|
|
|
<?php
|
|
|
|
$this->is_service = true;
|
2013-10-18 09:59:06 +02:00
|
|
|
$this->hostquery = implode($this->hostnames, ',');
|
|
|
|
$this->servicequery = implode($this->servicenames, ',');
|
|
|
|
$this->target = array(
|
|
|
|
'host' => $this->hostquery,
|
|
|
|
'service' => $this->servicequery
|
|
|
|
);
|
2013-10-15 17:52:30 +02:00
|
|
|
?>
|
|
|
|
|
2014-04-09 19:13:46 +02:00
|
|
|
<div class="controls">
|
2014-04-16 19:43:56 +02:00
|
|
|
<?= $this->tabs; ?>
|
2014-04-09 19:13:46 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content">
|
2014-04-16 19:43:56 +02:00
|
|
|
<h1> Summary for <?= count($objects) ?> services </h1>
|
2013-10-15 17:52:30 +02:00
|
|
|
|
2014-04-16 19:43:56 +02:00
|
|
|
<?= $this->render('multi/components/objectlist.phtml'); ?>
|
|
|
|
<table class="avp">
|
|
|
|
<tr>
|
|
|
|
<th align="center">
|
|
|
|
<h3><?= array_sum(array_values($service_states)) ?> Services</h3>
|
|
|
|
</th>
|
|
|
|
<th></th>
|
|
|
|
<th align="center">
|
|
|
|
<h3><?= array_sum(array_values($host_states)) ?> Hosts</h3>
|
|
|
|
</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center">
|
|
|
|
<?= $this->service_pie->render(); ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
foreach ($service_states as $state => $count) {
|
|
|
|
if ($count > 0) {
|
|
|
|
echo ucfirst($state) . ': ' . $count . '<br />';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
|
|
|
<?= $this->host_pie->render(); ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
foreach ($host_states as $state => $count) {
|
|
|
|
if ($count > 0) {
|
|
|
|
echo ucfirst($state) . ': ' . $count . '<br />';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2014-04-09 19:13:46 +02:00
|
|
|
</table>
|
2013-10-16 18:50:19 +02:00
|
|
|
|
2014-04-16 19:43:56 +02:00
|
|
|
<h2> <?=$this->icon('servicegroup.png')?> Service Actions </h2>
|
|
|
|
|
2014-04-09 19:13:46 +02:00
|
|
|
<table class="avp newsection">
|
|
|
|
<tbody>
|
2014-04-16 19:43:56 +02:00
|
|
|
<?= $this->render('multi/components/summary.phtml'); ?>
|
|
|
|
<?= $this->render('multi/components/comments.phtml'); ?>
|
|
|
|
<?= $this->render('multi/components/downtimes.phtml'); ?>
|
2014-04-09 19:13:46 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-10-15 12:39:06 +02:00
|
|
|
|
2014-04-16 19:43:56 +02:00
|
|
|
<?= $this->render('multi/components/flags.phtml') ?>
|
|
|
|
</div>
|
2014-04-09 19:13:46 +02:00
|
|
|
|
|
|
|
<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>
|