]> granicus.if.org Git - icinga2/commitdiff
Fix nested hostgroup example 6975/head
authorBas Couwenberg <sebastic@xs4all.nl>
Tue, 26 Feb 2019 07:49:36 +0000 (08:49 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Feb 2019 07:49:36 +0000 (08:49 +0100)
In Icinga 1.x the list of members was set on the group object, in Icinga 2 the list of groups is set on the member objects.

doc/23-migrating-from-icinga-1x.md

index 4dd6e8397d5da07176100cdc6cdedf3e90a7e437..4583b16062d4381dee2c187ea1c56b952a98ced7 100644 (file)
@@ -116,11 +116,11 @@ This can be migrated to Icinga 2 and [using group assign](17-language-reference.
 
 
     object HostGroup "hg1" {
+      groups = [ "hg2" ]
       assign where host.name in [ "host1", "host2" ]
     }
 
     object HostGroup "hg2" {
-      groups = [ "hg1" ]
       assign where host.name == "host3"
     }