mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +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. (cherry picked from commit 8d3c8fd107f5c6e0da5551992208213fd4b8a867)
This commit is contained in:
parent
bac6f17eff
commit
32dc61a788
@ -116,11 +116,11 @@ This can be migrated to Icinga 2 and [using group assign](17-language-reference.
|
|||||||
|
|
||||||
|
|
||||||
object HostGroup "hg1" {
|
object HostGroup "hg1" {
|
||||||
|
groups = [ "hg2" ]
|
||||||
assign where host.name in [ "host1", "host2" ]
|
assign where host.name in [ "host1", "host2" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
object HostGroup "hg2" {
|
object HostGroup "hg2" {
|
||||||
groups = [ "hg1" ]
|
|
||||||
assign where host.name == "host3"
|
assign where host.name == "host3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user