43 lines
1.6 KiB
PHTML
43 lines
1.6 KiB
PHTML
<?php
|
|
|
|
$cf = $this->getHelper('CommandForm');
|
|
|
|
?><tr>
|
|
<th><?= $this->translate('Last check') ?></th>
|
|
<td data-base-target="_self"><?= $this->img('img/icons/refresh_petrol.png') ?> <?= $cf->labelSubmitForm(
|
|
$this->translate('Check now'),
|
|
$this->translate('Reschedule next check immediately'),
|
|
'link-like',
|
|
'reschedulenextcheck',
|
|
array(
|
|
'host' => $this->object->host_name,
|
|
'service' => $this->object->service_description,
|
|
'checktime' => time(),
|
|
'forcecheck' => '1'
|
|
)
|
|
) ?> <?= $this->timeSince($object->last_check) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= $this->translate('Next check') ?></th>
|
|
<td><!--<input type="submit" value="Reschedule" style="width: 7em;" /> --><a href="<?= $this->href(
|
|
'monitoring/command/reschedulenextcheck',
|
|
array(
|
|
'host' => $object->host_name,
|
|
'service' => $object->service_description
|
|
)
|
|
) ?>"><?= $this->img('img/icons/reschedule_petrol.png') ?> <?= $this->translate('Reschedule') ?></a> <?= $this->timeUntil($object->next_check) ?></td>
|
|
</tr>
|
|
<?php if ($object->check_execution_time): ?>
|
|
<tr>
|
|
<th><?= $this->translate('Check execution time') ?></th>
|
|
<td><?= $object->check_execution_time ?>s</td>
|
|
</tr>
|
|
<?php endif ?>
|
|
<?php if ($object->check_latency): ?>
|
|
<tr>
|
|
<th><?= $this->translate('Check latency') ?></th>
|
|
<td><?= $object->check_latency ?>s</td>
|
|
</tr>
|
|
<?php endif ?>
|
|
|