From d4b769b8d795ccb30ac95f8f71097409bbecfc3a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 24 Jan 2017 09:45:32 +0100 Subject: [PATCH] IcingaHost: do not render Endpoint and Zone... ...for disabled hosts fixes #741 --- library/Director/Objects/IcingaHost.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Director/Objects/IcingaHost.php b/library/Director/Objects/IcingaHost.php index 8181b75c..a3eb8161 100644 --- a/library/Director/Objects/IcingaHost.php +++ b/library/Director/Objects/IcingaHost.php @@ -181,6 +181,10 @@ class IcingaHost extends IcingaObject return; } + if ($this->isDisabled()) { + return; + } + if ($this->getRenderingZone($config) === self::RESOLVE_ERROR) { return; }