60 lines
1.9 KiB
PHTML
60 lines
1.9 KiB
PHTML
<?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>
|