2014-03-06 19:57:21 +01:00
|
|
|
<?php
|
2013-08-22 17:17:58 +02:00
|
|
|
|
2014-03-06 19:57:21 +01:00
|
|
|
$parts = explode('!', $object->check_command);
|
|
|
|
$command = array_shift($parts);
|
|
|
|
|
2014-03-21 19:56:55 +01:00
|
|
|
?><tr class="newsection">
|
2014-03-06 19:57:21 +01:00
|
|
|
<th><?= $this->translate('Command') ?></th>
|
2014-12-11 15:52:23 +01:00
|
|
|
<td>
|
|
|
|
<?= $this->escape($command) ?>
|
|
|
|
<?php if ($object->passive_checks_enabled): ?>
|
|
|
|
<?php if ($object->getType() === $object::TYPE_HOST): ?>
|
|
|
|
<a href="<?= $this->href(
|
|
|
|
'monitoring/host/process-check-result',
|
|
|
|
array('host' => $object->getName())
|
|
|
|
); ?>"><?= $this->icon('reply'); ?> <?= $this->translate('Process check result'); ?></a>
|
|
|
|
<?php else: ?>
|
|
|
|
<a href="<?= $this->href(
|
|
|
|
'monitoring/service/process-check-result',
|
|
|
|
array('host' => $object->getHost()->getName(), 'service' => $object->getName())
|
|
|
|
); ?>"><?= $this->icon('reply'); ?> <?= $this->translate('Process check result'); ?></a>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php endif ?>
|
2014-03-06 19:57:21 +01:00
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$row = "<tr>\n <th>%s</th>\n <td>%s</td>\n</tr>\n";
|
|
|
|
for ($i = 0; $i < count($parts); $i++) {
|
|
|
|
printf($row, '$ARG' . ($i + 1) . '$', $this->escape($parts[$i]));
|
|
|
|
}
|
2013-10-15 12:48:33 +02:00
|
|
|
|