mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 05:14:25 +02:00
ScheduleServiceCheckCommandForm: Ignore services which have no active checks
refs #3665
This commit is contained in:
parent
7bda65978c
commit
ac50992aab
@ -92,6 +92,10 @@ class ScheduleServiceCheckCommandForm extends ObjectsCommandForm
|
|||||||
{
|
{
|
||||||
foreach ($this->objects as $object) {
|
foreach ($this->objects as $object) {
|
||||||
/** @var \Icinga\Module\Monitoring\Object\Service $object */
|
/** @var \Icinga\Module\Monitoring\Object\Service $object */
|
||||||
|
if (! $object->active_checks_enabled) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$check = new ScheduleServiceCheckCommand();
|
$check = new ScheduleServiceCheckCommand();
|
||||||
$check->setObject($object);
|
$check->setObject($object);
|
||||||
$this->scheduleCheck($check, $this->request);
|
$this->scheduleCheck($check, $this->request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user