template Service "generic-service" { } /** * Basic node health checks */ apply Service "disk" { import "generic-service" check_command = "disk" assign where host.vars.kernel == "linux" } apply Service "icinga" { import "generic-service" check_command = "icinga" assign where host.vars.kernel == "linux" } apply Service "load" { import "generic-service" check_command = "load" assign where host.vars.kernel == "linux" } apply Service "procs" { import "generic-service" check_command = "procs" assign where host.vars.kernel == "linux" } apply Service "swap" { import "generic-service" check_command = "swap" assign where host.vars.kernel == "linux" } /* OS specific basic health checks */ apply Service "apt" { import "generic-service" check_command = "apt" volatile = true assign where host.vars.os_family == "debian" } /** * Serice health checks */ apply Service "pgsql" { import "generic-service" check_command = "pgsql" vars.pgsql_hostname = "/run/postgresql" vars += host.vars.pgsql assign where host.vars.pgsql != "" }