diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php index acc03339..c2a0f00f 100644 --- a/library/Director/Objects/IcingaService.php +++ b/library/Director/Objects/IcingaService.php @@ -174,7 +174,7 @@ class IcingaService extends IcingaObject { $str = parent::toConfigString(); - if ($this->host_id && $this->getRelated('host')->isDisabled()) { + if (! $this->isDisabled() && $this->host_id && $this->getRelated('host')->isDisabled()) { return "/* --- This services host has been disabled ---\n" . $str . "*/\n"; } else {