ScheduleHostCheckCommandForm: Ignore hosts which have no active checks

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

View File

@ -45,6 +45,10 @@ class ScheduleHostCheckCommandForm extends ScheduleServiceCheckCommandForm
{
foreach ($this->objects as $object) {
/** @var \Icinga\Module\Monitoring\Object\Host $object */
if (! $object->active_checks_enabled) {
continue;
}
$check = new ScheduleHostCheckCommand();
$check
->setObject($object)