From ed52d511312a2b6b05a15a1a74555aadcda5e0cc Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Thu, 10 Feb 2022 16:06:33 +0100 Subject: [PATCH] Remove param 'icingadb' and set param 'backend' as '_icingadb' when icingadb is used --- library/Businessprocess/HostNode.php | 2 +- library/Businessprocess/ServiceNode.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Businessprocess/HostNode.php b/library/Businessprocess/HostNode.php index b0b9a83..eccf1aa 100644 --- a/library/Businessprocess/HostNode.php +++ b/library/Businessprocess/HostNode.php @@ -66,7 +66,7 @@ class HostNode extends MonitoredNode if (Module::exists('icingadb') && ($backendName === '_icingadb' || IcingadbSupport::useIcingaDbAsBackend()) ) { - $params['icingadb'] = 1; + $params['backend'] = '_icingadb'; } else { $params['backend'] = $this->getBpConfig()->getBackendName(); } diff --git a/library/Businessprocess/ServiceNode.php b/library/Businessprocess/ServiceNode.php index 47e8a1a..a0972a6 100644 --- a/library/Businessprocess/ServiceNode.php +++ b/library/Businessprocess/ServiceNode.php @@ -85,7 +85,7 @@ class ServiceNode extends MonitoredNode if (Module::exists('icingadb') && ($backendName === '_icingadb' || IcingadbSupport::useIcingaDbAsBackend()) ) { - $params['icingadb'] = 1; + $params['backend'] = '_icingadb'; } else { $params['backend'] = $this->getBpConfig()->getBackendName(); }