Add missing assign statements to apply rules

This commit is contained in:
Jan Dittberner 2023-08-15 17:55:10 +02:00
parent 022e34449a
commit 4bac805e3f

View file

@ -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
}