ProcessCheckResultForm: Skip objects with passive checks disabled

Icinga won't accept check results for such.
This commit is contained in:
Johannes Meyer 2021-04-14 10:56:04 +02:00
parent 065915397a
commit 4e48f9d2a1

View File

@ -93,6 +93,10 @@ class ProcessCheckResultCommandForm extends ObjectsCommandForm
{
foreach ($this->objects as $object) {
/** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */
if (! $object->passive_checks_enabled) {
continue;
}
$command = new ProcessCheckResultCommand();
$command->setObject($object);
$command->setStatus($this->getValue('status'));