2023-08-15 15:46:37 +00:00
|
|
|
// 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"
|
2023-08-15 15:55:10 +00:00
|
|
|
|
2023-08-15 15:57:42 +00:00
|
|
|
assign where true
|
2023-08-15 15:46:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply Service "procs" {
|
|
|
|
import "generic-service"
|
|
|
|
|
|
|
|
check_command = "procs"
|
2023-08-15 15:55:10 +00:00
|
|
|
|
2023-08-15 15:57:42 +00:00
|
|
|
assign where true
|
2023-08-15 15:46:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply Service "proc-" for (proc => config in host.vars.procs) {
|
|
|
|
import "generic-service"
|
|
|
|
|
|
|
|
check_command = "procs"
|
|
|
|
|
|
|
|
vars += config
|
2023-08-15 15:55:10 +00:00
|
|
|
|
2023-08-15 15:57:42 +00:00
|
|
|
assign where host.vars.disks
|
2023-08-15 15:46:37 +00:00
|
|
|
}
|
|
|
|
|
2023-08-15 16:15:05 +00:00
|
|
|
apply Service "disk " for (disk => config in host.vars.disks) {
|
2023-08-15 15:46:37 +00:00
|
|
|
import "generic-service"
|
|
|
|
|
|
|
|
check_command = "disk"
|
|
|
|
|
|
|
|
vars += config
|
2023-08-15 15:55:10 +00:00
|
|
|
|
2023-08-15 15:57:42 +00:00
|
|
|
assign where host.vars.disks
|
2023-08-15 15:46:37 +00:00
|
|
|
}
|