mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 00:24:23 +02:00
Fix nested hostgroup example
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.
This commit is contained in:
parent
cf0209efd2
commit
8d3c8fd107
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user