2023-08-15 15:46:37 +00:00
|
|
|
// 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"
|
|
|
|
}
|
|
|
|
|
2023-08-17 07:49:33 +00:00
|
|
|
template Host "linux-host" {
|
2023-08-15 15:46:37 +00:00
|
|
|
import "generic-host"
|
|
|
|
|
2023-08-17 07:49:33 +00:00
|
|
|
vars.os = "Linux"
|
2023-08-19 11:23:01 +00:00
|
|
|
|
|
|
|
vars.disks["/"] = {
|
|
|
|
disk_partitions = "/"
|
|
|
|
}
|
2023-08-17 07:49:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
template Host "debian-host" {
|
|
|
|
import "linux-host"
|
|
|
|
|
2023-08-15 15:46:37 +00:00
|
|
|
vars.osfamily = "Debian"
|
|
|
|
|
|
|
|
vars.procs = {
|
|
|
|
"ssh" = {
|
|
|
|
procs_command = "sshd"
|
|
|
|
procs_critical = "1:50"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-17 08:39:30 +00:00
|
|
|
|
|
|
|
template Host "postfix-host" {
|
2023-08-17 08:42:02 +00:00
|
|
|
vars.procs["postfix"] = {
|
|
|
|
procs_command = "master"
|
|
|
|
procs_argument = "postfix"
|
|
|
|
procs_critical = "1:2"
|
2023-08-17 08:39:30 +00:00
|
|
|
}
|
|
|
|
}
|
2023-09-03 11:09:43 +00:00
|
|
|
|
|
|
|
template Host "puppet-host" {
|
|
|
|
vars.procs["puppet"] = {
|
2023-09-03 12:02:33 +00:00
|
|
|
procs_command = "puppet"
|
2023-09-03 11:09:43 +00:00
|
|
|
procs_critical = "1:2"
|
|
|
|
}
|
|
|
|
}
|