2013-10-14 18:17:58 +02:00
|
|
|
<?php
|
2013-10-15 18:09:16 +02:00
|
|
|
|
2014-03-08 09:23:48 +01:00
|
|
|
$o = $this->object;
|
|
|
|
$cf = $this->getHelper('CommandForm');
|
2013-10-20 13:15:11 +02:00
|
|
|
|
2014-03-08 09:23:48 +01:00
|
|
|
$data = array(
|
|
|
|
'host' => $o->host_name,
|
|
|
|
'service' => $o->service_description
|
|
|
|
);
|
2013-10-20 13:15:11 +02:00
|
|
|
|
2013-10-14 18:17:58 +02:00
|
|
|
?>
|
2014-03-21 19:56:55 +01:00
|
|
|
<tr class="newsection">
|
2014-05-27 23:44:02 +02:00
|
|
|
<th><?= $this->translate('Passive Checks') ?></th>
|
2014-03-20 17:33:06 +01:00
|
|
|
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
|
2014-03-08 09:23:48 +01:00
|
|
|
'',
|
|
|
|
$o->passive_checks_enabled,
|
|
|
|
'startacceptingpassivechecks',
|
|
|
|
'stopacceptingpassivechecks',
|
|
|
|
$o->passive_checks_enabled_changed === '1',
|
|
|
|
$data
|
|
|
|
) ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-27 23:44:02 +02:00
|
|
|
<th><?= $this->translate('Active Checks') ?></th>
|
2014-03-20 17:33:06 +01:00
|
|
|
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
|
2014-03-08 09:23:48 +01:00
|
|
|
'',
|
|
|
|
$o->active_checks_enabled,
|
|
|
|
'enableactivechecks',
|
|
|
|
'disableactivechecks',
|
|
|
|
$o->active_checks_enabled_changed === '1',
|
|
|
|
$data
|
|
|
|
) ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-27 23:44:02 +02:00
|
|
|
<th><?= $this->translate('Notifications') ?></th>
|
2014-03-20 17:33:06 +01:00
|
|
|
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
|
2014-03-08 09:23:48 +01:00
|
|
|
'',
|
|
|
|
$o->notifications_enabled,
|
|
|
|
'enablenotifications',
|
|
|
|
'disablenotifications',
|
|
|
|
$o->notifications_enabled_changed === '1',
|
|
|
|
$data
|
|
|
|
) ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-27 23:44:02 +02:00
|
|
|
<th><?= $this->translate('Event Handler') ?></th>
|
2014-03-20 17:33:06 +01:00
|
|
|
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
|
2014-03-08 09:23:48 +01:00
|
|
|
'',
|
|
|
|
$o->event_handler_enabled,
|
|
|
|
'enableeventhandler',
|
|
|
|
'disableeventhandler',
|
|
|
|
$o->event_handler_enabled_changed === '1',
|
|
|
|
$data
|
|
|
|
) ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-27 23:44:02 +02:00
|
|
|
<th><?= $this->translate('Flap Detection') ?></th>
|
2014-03-20 17:33:06 +01:00
|
|
|
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
|
2014-03-08 09:23:48 +01:00
|
|
|
'',
|
|
|
|
$o->flap_detection_enabled,
|
|
|
|
'enableflapdetection',
|
|
|
|
'disableflapdetection',
|
|
|
|
$o->flap_detection_enabled_changed === '1',
|
|
|
|
$data
|
|
|
|
) ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-27 23:44:02 +02:00
|
|
|
<th><?= $this->translate('Obsessing') ?></th>
|
2014-03-20 17:33:06 +01:00
|
|
|
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
|
2014-03-08 09:23:48 +01:00
|
|
|
'',
|
|
|
|
$o->obsessing,
|
|
|
|
'startobsessing',
|
|
|
|
'stopobsessing',
|
|
|
|
$o->obsessing_changed === '1',
|
|
|
|
$data
|
|
|
|
) ?></td>
|
|
|
|
</tr>
|