mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
parent
25e2baa566
commit
89ed498069
@ -6,26 +6,29 @@ $command = array_shift($parts);
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr class="newsection">
|
<tr class="newsection">
|
||||||
<th><?= $this->translate('Command') ?></th>
|
<th><?= $this->translate('Command'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->escape($command) ?>
|
<?= $this->escape($command); ?>
|
||||||
<?php if ($this->hasPermission('monitoring/command/schedule-check') && $object->passive_checks_enabled): ?>
|
<?php if ($this->hasPermission('monitoring/command/schedule-check') && $object->passive_checks_enabled) {
|
||||||
<?php if ($object->getType() === $object::TYPE_HOST) {
|
$title = sprintf($this->translate('Submit a one time or so called passive result for the %s check'), $command);
|
||||||
$processCheckResult = $this->href(
|
if ($object->getType() === $object::TYPE_HOST) {
|
||||||
|
echo $this->qlink(
|
||||||
|
$this->icon('reply') . ' ' . $this->translate('Process check result'),
|
||||||
'monitoring/host/process-check-result',
|
'monitoring/host/process-check-result',
|
||||||
array('host' => $object->getName())
|
array('host' => $object->getName()),
|
||||||
|
array('data-base-target' => '_self', 'title' => $title),
|
||||||
|
false
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$processCheckResult = $this->href(
|
echo $this->qlink(
|
||||||
|
$this->icon('reply') . ' ' . $this->translate('Process check result'),
|
||||||
'monitoring/service/process-check-result',
|
'monitoring/service/process-check-result',
|
||||||
array('host' => $object->getHost()->getName(), 'service' => $object->getName())
|
array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
|
||||||
|
array('data-base-target' => '_self', 'title' => $title),
|
||||||
|
false
|
||||||
);
|
);
|
||||||
|
}
|
||||||
} ?>
|
} ?>
|
||||||
<a href="<?= $processCheckResult ?>" data-base-target="_self">
|
|
||||||
<?= $this->icon('reply') ?>
|
|
||||||
<?= $this->translate('Process check result') ?>
|
|
||||||
</a>
|
|
||||||
<?php endif ?>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user