mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
ScheduleHostCheckCommandForm: Ignore hosts which have no active checks
refs #3665
This commit is contained in:
parent
c2fc370273
commit
7bda65978c
@ -45,6 +45,10 @@ class ScheduleHostCheckCommandForm extends ScheduleServiceCheckCommandForm
|
|||||||
{
|
{
|
||||||
foreach ($this->objects as $object) {
|
foreach ($this->objects as $object) {
|
||||||
/** @var \Icinga\Module\Monitoring\Object\Host $object */
|
/** @var \Icinga\Module\Monitoring\Object\Host $object */
|
||||||
|
if (! $object->active_checks_enabled) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$check = new ScheduleHostCheckCommand();
|
$check = new ScheduleHostCheckCommand();
|
||||||
$check
|
$check
|
||||||
->setObject($object)
|
->setObject($object)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user