diff --git a/library/Icingadb/Model/Hostgroup.php b/library/Icingadb/Model/Hostgroup.php index 1ff6f0fba..0c28ee494 100644 --- a/library/Icingadb/Model/Hostgroup.php +++ b/library/Icingadb/Model/Hostgroup.php @@ -71,7 +71,8 @@ public function getDefaultSort() public function createBehaviors(Behaviors $behaviors) { $behaviors->add(new ReRoute([ - 'servicegroup' => 'service.servicegroup' + 'servicegroup' => 'service.servicegroup', + 'child' => 'host.to.from' ])); $behaviors->add(new Binary([ diff --git a/library/Icingadb/Model/Servicegroup.php b/library/Icingadb/Model/Servicegroup.php index 2e4b847b5..2db297a62 100644 --- a/library/Icingadb/Model/Servicegroup.php +++ b/library/Icingadb/Model/Servicegroup.php @@ -72,7 +72,8 @@ public function createBehaviors(Behaviors $behaviors) { $behaviors->add(new ReRoute([ 'host' => 'service.host', - 'hostgroup' => 'service.hostgroup' + 'hostgroup' => 'service.hostgroup', + 'child' => 'service.to.from' ])); $behaviors->add(new Binary([