You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
783 B
Plaintext
50 lines
783 B
Plaintext
// vim: set ft=icinga2 et sw=2 ts=2 si ai:
|
|
apply Service "apt" {
|
|
import "generic-service"
|
|
|
|
check_command = "apt"
|
|
|
|
check_interval = 1h
|
|
retry_interval = 15m
|
|
|
|
vars.apt_list = true
|
|
|
|
assign where host.vars.osfamily == "Debian"
|
|
}
|
|
|
|
apply Service "icinga" {
|
|
import "generic-service"
|
|
|
|
check_command = "icinga"
|
|
|
|
assign where true
|
|
}
|
|
|
|
apply Service "procs" {
|
|
import "generic-service"
|
|
|
|
check_command = "procs"
|
|
|
|
assign where true
|
|
}
|
|
|
|
apply Service "proc-" for (proc => config in host.vars.procs) {
|
|
import "generic-service"
|
|
|
|
check_command = "procs"
|
|
|
|
vars += config
|
|
|
|
assign where host.vars.disks
|
|
}
|
|
|
|
apply Service "disk " for (disk => config in host.vars.disks) {
|
|
import "generic-service"
|
|
|
|
check_command = "disk"
|
|
|
|
vars += config
|
|
|
|
assign where host.vars.disks
|
|
}
|