diff --git a/library/Director/Objects/IcingaHost.php b/library/Director/Objects/IcingaHost.php index 6a8f30c3..58414130 100644 --- a/library/Director/Objects/IcingaHost.php +++ b/library/Director/Objects/IcingaHost.php @@ -191,7 +191,7 @@ class IcingaHost extends IcingaObject 'parent' => $this->connection->getMasterZoneName() ), $this->connection)->setEndpointList(array($name)); - $pre = 'zones.d/' . $this->getRenderingZone() . '/'; + $pre = 'zones.d/' . $this->getRenderingZone($config) . '/'; $config->configFile($pre . 'agent_endpoints')->addObject($endpoint); $config->configFile($pre . 'agent_zones')->addObject($zone); }