Try to assign check commands for all hosts
This commit is contained in:
parent
f6f08dad3a
commit
a7e67523a1
1 changed files with 9 additions and 6 deletions
|
@ -53,7 +53,7 @@ apply Service "icinga" {
|
||||||
|
|
||||||
check_command = "icinga"
|
check_command = "icinga"
|
||||||
|
|
||||||
assign where host.name == NodeName
|
assign where host.name
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "icinga API certificate" {
|
apply Service "icinga API certificate" {
|
||||||
|
@ -69,7 +69,7 @@ apply Service "icinga API certificate" {
|
||||||
vars.ssl_cert_warn = 30
|
vars.ssl_cert_warn = 30
|
||||||
vars.ssl_cert_rootssl_cert = "/var/lib/icinga2/certs/ca.crt"
|
vars.ssl_cert_rootssl_cert = "/var/lib/icinga2/certs/ca.crt"
|
||||||
|
|
||||||
assign where host.name == NodeName
|
assign where host.name
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "icinga CA certificate" {
|
apply Service "icinga CA certificate" {
|
||||||
|
@ -83,7 +83,7 @@ apply Service "icinga CA certificate" {
|
||||||
vars.ssl_cert_warn = 396
|
vars.ssl_cert_warn = 396
|
||||||
vars.ssl_cert_critical = 376
|
vars.ssl_cert_critical = 376
|
||||||
|
|
||||||
assign where host.name == NodeName
|
assign where host.name
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "kernel-status" {
|
apply Service "kernel-status" {
|
||||||
|
@ -98,8 +98,9 @@ apply Service "load" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
check_command = "load"
|
check_command = "load"
|
||||||
|
command_endpoint = host.name
|
||||||
|
|
||||||
assign where host.name == NodeName
|
assign where host.name
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "pgsql " for (name => config in host.vars.pgsql_dbs) {
|
apply Service "pgsql " for (name => config in host.vars.pgsql_dbs) {
|
||||||
|
@ -130,8 +131,9 @@ apply Service "procs" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
check_command = "procs"
|
check_command = "procs"
|
||||||
|
command_endpoint = host.name
|
||||||
|
|
||||||
assign where host.name == NodeName
|
assign where host.name
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "proc-" for (proc => config in host.vars.procs) {
|
apply Service "proc-" for (proc => config in host.vars.procs) {
|
||||||
|
@ -162,6 +164,7 @@ apply Service "users" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
check_command = "users"
|
check_command = "users"
|
||||||
|
command_endpoint = host.name
|
||||||
|
|
||||||
assign where host.name == NodeName
|
assign where host.name
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue