ScheduleServiceCheckCommandForm: Ignore services which have no active checks

refs #3665
This commit is contained in:
Johannes Meyer 2019-02-01 14:02:26 +01:00
parent 7bda65978c
commit ac50992aab
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,10 @@ class ScheduleServiceCheckCommandForm extends ObjectsCommandForm
{
foreach ($this->objects as $object) {
/** @var \Icinga\Module\Monitoring\Object\Service $object */
if (! $object->active_checks_enabled) {
continue;
}
$check = new ScheduleServiceCheckCommand();
$check->setObject($object);
$this->scheduleCheck($check, $this->request);