mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
ProcessCheckResultForm: Skip objects with passive checks disabled
Icinga won't accept check results for such.
This commit is contained in:
parent
065915397a
commit
4e48f9d2a1
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user