31 lines
604 B
Text
31 lines
604 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 "debian-host" {
|
||
|
import "generic-host"
|
||
|
|
||
|
vars.osfamily = "Debian"
|
||
|
|
||
|
vars.procs = {
|
||
|
"ssh" = {
|
||
|
procs_command = "sshd"
|
||
|
procs_critical = "1:50"
|
||
|
}
|
||
|
}
|
||
|
}
|