23 lines
564 B
Plaintext
23 lines
564 B
Plaintext
|
|
## Icinga APP
|
||
|
|
apply Service "Icinga2 App Status" {
|
||
|
|
import "generic-service"
|
||
|
|
check_command = "icinga"
|
||
|
|
command_endpoint = host.name
|
||
|
|
assign where "icinga2-master" in host.vars.my_groups
|
||
|
|
}
|
||
|
|
|
||
|
|
apply Service "IcingaDB Status" {
|
||
|
|
import "generic-service"
|
||
|
|
check_command = "icingadb"
|
||
|
|
command_endpoint = host.name
|
||
|
|
assign where "icinga2-master" in host.vars.my_groups
|
||
|
|
}
|
||
|
|
|
||
|
|
# master only
|
||
|
|
apply Service "Icinga2 Cluster" {
|
||
|
|
import "generic-service"
|
||
|
|
check_command = "cluster"
|
||
|
|
command_endpoint = host.name
|
||
|
|
assign where "icinga2-master" in host.vars.my_groups
|
||
|
|
}
|