Use += for groups in the example config.

Fixes #5084
This commit is contained in:
Gunnar Beutner 2013-11-20 09:49:17 +01:00
parent 933ac5f403
commit 9bf5ad2a2b
2 changed files with 3 additions and 6 deletions

View File

@ -7,7 +7,7 @@ template Host "generic-host" {
}
template Host "linux-server" inherits "generic-host" {
groups = [ "linux-servers" ],
groups += [ "linux-servers" ],
services["ping4"] = {
templates = [ "generic-service" ],
@ -19,7 +19,7 @@ template Host "linux-server" inherits "generic-host" {
}
template Host "windows-server" inherits "generic-host" {
groups = [ "windows-servers" ],
groups += [ "windows-servers" ],
services["ping4"] = {
templates = [ "generic-service" ],

View File

@ -3,12 +3,9 @@
* in the conf.d directory (e.g. one per host). By default all *.conf
* files in this directory are included.
*/
object Host "localhost" inherits "generic-host" {
object Host "localhost" inherits "linux-server" {
display_name = "localhost",
groups = [ "linux-servers", "windows-servers" ],
services["ping4"] = {
templates = [ "generic-service" ],