Jan Dittberner
c624514dcc
- define Matrix notification commands - define time periods and CAcert admin user group - define notification origins - add beholder host checks on both infra02sat and infra03sat
57 lines
1 KiB
Text
57 lines
1 KiB
Text
// vim: set ft=icinga2 et sw=2 ts=2 si ai:
|
|
|
|
/**
|
|
* Provides default settings for hosts. By convention
|
|
* all hosts should import this template.
|
|
*
|
|
* The CheckCommand object `hostalive` is provided by
|
|
* the plugin check command templates.
|
|
* Check the documentation for details.
|
|
*/
|
|
template Host "generic-host" {
|
|
max_check_attempts = 3
|
|
check_interval = 1m
|
|
retry_interval = 30s
|
|
|
|
check_command = "hostalive"
|
|
|
|
vars.notification.from = "master"
|
|
}
|
|
|
|
template Host "linux-host" {
|
|
import "generic-host"
|
|
|
|
vars.os = "Linux"
|
|
|
|
vars.disks["/"] = {
|
|
disk_partitions = "/"
|
|
}
|
|
}
|
|
|
|
template Host "debian-host" {
|
|
import "linux-host"
|
|
|
|
vars.osfamily = "Debian"
|
|
|
|
vars.procs = {
|
|
"ssh" = {
|
|
procs_command = "sshd"
|
|
procs_critical = "1:50"
|
|
}
|
|
}
|
|
}
|
|
|
|
template Host "postfix-host" {
|
|
vars.procs["postfix"] = {
|
|
procs_command = "master"
|
|
procs_argument = "postfix"
|
|
procs_critical = "1:2"
|
|
}
|
|
}
|
|
|
|
template Host "puppet-host" {
|
|
vars.procs["puppet"] = {
|
|
procs_command = "puppet"
|
|
procs_critical = "1:2"
|
|
}
|
|
}
|