monitoring: Remove multi/* view scripts
They are no longer used.
This commit is contained in:
parent
56102a1e39
commit
8594ff6843
|
@ -1,25 +0,0 @@
|
|||
<?php
|
||||
|
||||
$objectName = $this->is_service ? 'Services' : 'Hosts';
|
||||
|
||||
?><tr class="newsection" data-base-target="_next">
|
||||
<th><a href=<?= sprintf($this->translatePlural('%u Comment', '%u Comments', count($comments)), count($comments)) ?></th>
|
||||
<td>
|
||||
<a href="<?= $this->href('monitoring/command/removecomment', $this->target) ?>"><?=
|
||||
$this->icon('cancel')
|
||||
?> <?= $this->translate('Remove Comments') ?></a><br />
|
||||
<a href="<?= $this->href('monitoring/command/delaynotifications', $this->target); ?>"><?=
|
||||
$this->icon('bell-off-empty')
|
||||
?> <?= $this->translate('Delay Notifications') ?></a><br />
|
||||
<a title="<?= $this->translate('Acknowledge all problems on the selected hosts or services') ?>"
|
||||
href="<?= $this->href('monitoring/command/acknowledgeproblem') ?>, $this->target); ?>">
|
||||
<?= $this->icon('ok') ?> Acknowledge
|
||||
</a>
|
||||
</td>
|
||||
<td><a href=" <?= $this->href(
|
||||
'monitoring/list/comments',
|
||||
array('comment_internal_id' => '(' . implode('|', $this->comments) . ')')
|
||||
);
|
||||
?>"> <?= sprintf($this->translatePlural('%u comment', '%u comments', count($comments)), count($comments)) ?></a>.
|
||||
</td>
|
||||
</tr>
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
|
||||
$objectName = $this->is_service ? 'Services' : 'Hosts';
|
||||
|
||||
?>
|
||||
<tr class="newsection">
|
||||
<th><?= count($downtimes) ?> Downtimes</th>
|
||||
<td>
|
||||
<a href="<?=$this->href('monitoring/command/removedowntime', $this->target); ?>"><?=
|
||||
$this->icon('cancel') ?>Remove Downtimes</a><br />
|
||||
<a title="Schedule downtimes for all selected <?= $objectName ?>" href="<?=
|
||||
$this->href('monitoring/command/scheduledowntime', $this->target) ?>"><?=
|
||||
$this->icon('plug')
|
||||
?> Schedule Downtimes</a>
|
||||
</td>
|
||||
<td>
|
||||
Change <a data-base-target='_next' href="<?= $this->href('') ?>"> <?= count($downtimes) ?> downtimes</a>.
|
||||
</td>
|
||||
</tr>
|
|
@ -1,25 +0,0 @@
|
|||
<form
|
||||
id="<?= $form->getId() ?>"
|
||||
name="<?= $form->getName() ?>"
|
||||
enctype="<?= $form->getEnctype() ?>"
|
||||
action="<?= $form->getAction() ?>"
|
||||
method="post"
|
||||
>
|
||||
<table class="avp newsection">
|
||||
<?php foreach($this->form->getElements() as $name => $element):
|
||||
if ($element instanceof \Icinga\Web\Form\Element\TriStateCheckbox):
|
||||
$element->setDecorators(array('ViewHelper'));
|
||||
?>
|
||||
<tr>
|
||||
<th><label for="<?= $element->getName() ?>"> <?= $element->getLabel() ?> </label></th>
|
||||
<td><?= $element->render() ?></td>
|
||||
</tr>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?= $element->render() ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
</form>
|
|
@ -1,65 +0,0 @@
|
|||
<?php
|
||||
|
||||
$objectCount = count($objects);
|
||||
|
||||
$links = array();
|
||||
for ($i = 0; $i < $objectCount && $i < 5; $i++) {
|
||||
$object = $objects[$i];
|
||||
|
||||
if ($this->is_service) {
|
||||
$links[] = $this->qlink(
|
||||
$object->host_name . ' ' . $object->service_description,
|
||||
'monitoring/show/service',
|
||||
array(
|
||||
'host' => $object->host_name,
|
||||
'service' => $object->service_description
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$links[] = $this->qlink(
|
||||
$object->host_name,
|
||||
'monitoring/show/host',
|
||||
array(
|
||||
'host' => $object->host_name
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->is_service) {
|
||||
$objectName = $this->translate('Services');
|
||||
$link = 'monitoring/list/services';
|
||||
$target = array(
|
||||
'host' => $this->hostquery,
|
||||
'service' => $this->servicequery
|
||||
);
|
||||
} else {
|
||||
$objectName = $this->translate('Hosts');
|
||||
$link = 'monitoring/list/hosts';
|
||||
$target = array(
|
||||
'host' => $this->hostquery
|
||||
);
|
||||
}
|
||||
|
||||
$more = clone $this->url;
|
||||
|
||||
|
||||
?><tr class="newsection" data-base-target="_next">
|
||||
<th><?= $this->qlink(
|
||||
$this->translate('List all'),
|
||||
$more->setPath($link),
|
||||
null,
|
||||
array('title' => $this->translate('List all selected objects'))
|
||||
) ?></th>
|
||||
<td colspan="3">
|
||||
<?php
|
||||
|
||||
echo implode(', ', $links);
|
||||
|
||||
if ($objectCount > 5) {
|
||||
echo ' ' . sprintf($this->translate('and %d more'), count($objects) - 5);
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
|
@ -1,59 +0,0 @@
|
|||
<?php
|
||||
|
||||
$cf = $this->getHelper('CommandForm');
|
||||
$servicequery = isset($this->servicequery) ? $this->servicequery : '';
|
||||
$objectName = $this->is_service ? $this->translate('Services') : $this->translate('Hosts');
|
||||
|
||||
$params = array(
|
||||
'host' => $this->target['host'],
|
||||
'service' => null,
|
||||
'checktime' => time(),
|
||||
'forcecheck' => '1'
|
||||
);
|
||||
if (array_key_exists('service', $this->target)) {
|
||||
$params['service'] = $this->target['service'];
|
||||
} else {
|
||||
unset($params['service']);
|
||||
}
|
||||
?>
|
||||
<tr class="newsection">
|
||||
<th><?= count($objects) . ' ' . $objectName ?></th>
|
||||
<td>
|
||||
<a href="<?=
|
||||
$this->href('monitoring/command/reschedulenextcheck', $params) ?>"><?=
|
||||
$this->icon('rescheduel')
|
||||
?> Recheck</a><br />
|
||||
<a href="<?= $this->href('monitoring/command/reschedulenextcheck', $this->target) ?>"><?=
|
||||
$this->icon('reschedule')
|
||||
?> Reschedule</a><br />
|
||||
</td>
|
||||
<td>Perform actions on <?= count($objects) . ' ' . $objectName ?>.</td>
|
||||
</tr>
|
||||
|
||||
<tr class="newsection">
|
||||
<th><?= $this->problems ?> Problems</th>
|
||||
<td>
|
||||
<a title="Schedule downtimes for all selected hosts" href="<?=
|
||||
$this->href('monitoring/command/scheduledowntime', $this->target) ?>"><?=
|
||||
$this->icon('plug')
|
||||
?> Schedule Downtimes</a>
|
||||
</td>
|
||||
<td><?= sprintf(
|
||||
'Handle %d problems on %d %s.',
|
||||
$this->problems,
|
||||
count($this->objects),
|
||||
$objectName
|
||||
) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= count($this->unhandled) ?> Unhandled</th>
|
||||
<td colspan="2">
|
||||
<a title="Acknowledge all problems on the selected hosts or services" href="<?=
|
||||
$this->href('monitoring/command/acknowledgeproblem', $this->target) ?>"><?=
|
||||
$this->icon('ok')
|
||||
?> Acknowledge</a><br />
|
||||
<a title="Remove all acknowledgements from all selected hosts or services" href="<?=
|
||||
$this->href('monitoring/command/removeacknowledgement', $target) ?>"><?=
|
||||
$this->icon('remove_petrol.png') ?> Remove Acknowledgements</a>
|
||||
</td>
|
||||
</tr>
|
|
@ -1,62 +0,0 @@
|
|||
<?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>
|
|
@ -1,61 +0,0 @@
|
|||
<?php
|
||||
$this->is_service = true;
|
||||
$this->hostquery = implode($this->hostnames, ',');
|
||||
$this->servicequery = implode($this->servicenames, ',');
|
||||
$this->target = array(
|
||||
'host' => $this->hostquery,
|
||||
'service' => $this->servicequery
|
||||
);
|
||||
?>
|
||||
|
||||
<div class="controls">
|
||||
<?= $this->tabs ?>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<?php if (count($objects) === 0): ?>
|
||||
<?= mt('monitoring', 'No services matching the filter'); ?>
|
||||
<?php else: ?>
|
||||
<h1> Summary for <?= count($objects) ?> services </h1>
|
||||
|
||||
<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
|
||||
|
||||
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>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><?=$this->icon('conf')?> 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>
|
||||
|
||||
<?= $this->render('multi/components/flags.phtml') ?>
|
||||
<?php endif ?>
|
||||
</div>
|
Loading…
Reference in New Issue