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