From 9bf5ad2a2b352313b1a2edbd4328e724d3e9ab4b Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 20 Nov 2013 09:49:17 +0100 Subject: [PATCH] Use += for groups in the example config. Fixes #5084 --- etc/icinga2/conf.d/generic-host.conf | 4 ++-- etc/icinga2/conf.d/localhost.conf | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/etc/icinga2/conf.d/generic-host.conf b/etc/icinga2/conf.d/generic-host.conf index 7a23a285b..3094fd2cd 100644 --- a/etc/icinga2/conf.d/generic-host.conf +++ b/etc/icinga2/conf.d/generic-host.conf @@ -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" ], diff --git a/etc/icinga2/conf.d/localhost.conf b/etc/icinga2/conf.d/localhost.conf index c0dcefe6d..3d363f082 100644 --- a/etc/icinga2/conf.d/localhost.conf +++ b/etc/icinga2/conf.d/localhost.conf @@ -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" ], -- 2.49.0