From 4bac805e3fd36d39cf2145873ccf29bfef0efc3b Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Tue, 15 Aug 2023 17:55:10 +0200 Subject: [PATCH] Add missing assign statements to apply rules --- global-templates/services.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/global-templates/services.conf b/global-templates/services.conf index 4bbacf2..df9be2d 100644 --- a/global-templates/services.conf +++ b/global-templates/services.conf @@ -16,12 +16,16 @@ apply Service "icinga" { import "generic-service" check_command = "icinga" + + assign where "generic-host" in host.groups } apply Service "procs" { import "generic-service" check_command = "procs" + + assign where "generic-host" in host.groups } apply Service "proc-" for (proc => config in host.vars.procs) { @@ -30,6 +34,8 @@ apply Service "proc-" for (proc => config in host.vars.procs) { check_command = "procs" vars += config + + assign where "procs" in host.vars } apply Service "disk-" for (disk => config in host.vars.disks) { @@ -38,4 +44,6 @@ apply Service "disk-" for (disk => config in host.vars.disks) { check_command = "disk" vars += config + + assign where "disks" in host.vars }