icinga-zones/global-templates/host-templates.conf
Jan Dittberner d436094797 Add more generic checks
- introduce host template linux-host to define vars.os
- sort service definitions alphabetically
- replace assign where true with assign where host.name == NodeName
- add load, ping4, ping6, ssh and users checks
- add http checks for hosts with vars.http_vhosts
- define basic vars.http_vhosts for master (beholder.cacert.org)
2023-08-17 09:50:59 +02:00

36 lines
679 B
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"
}
template Host "linux-host" {
import "generic-host"
vars.os = "Linux"
}
template Host "debian-host" {
import "linux-host"
vars.osfamily = "Debian"
vars.procs = {
"ssh" = {
procs_command = "sshd"
procs_critical = "1:50"
}
}
}