diff --git a/library/Director/IcingaConfig/IcingaConfig.php b/library/Director/IcingaConfig/IcingaConfig.php index c9c82a5c..3e35dc34 100644 --- a/library/Director/IcingaConfig/IcingaConfig.php +++ b/library/Director/IcingaConfig/IcingaConfig.php @@ -370,8 +370,9 @@ throw $e; $endpoints[] = IcingaEndpoint::create($props); $zones[] = IcingaZone::create(array( - 'object_name' => $name - ))->setEndpointList(array($name)); + 'object_name' => $name, + 'parent' => $this->getMasterZoneName() + ), $this->connection)->setEndpointList(array($name)); } $this->createFileForObjects('endpoint', $endpoints);