diff --git a/global-templates/host-templates.conf b/global-templates/host-templates.conf index ffe20a9..c199820 100644 --- a/global-templates/host-templates.conf +++ b/global-templates/host-templates.conf @@ -34,3 +34,13 @@ template Host "debian-host" { } } } + +template Host "postfix-host" { + vars.procs = { + "postfix" = { + procs_command = "master" + procs_argument = "postfix" + procs_critical = "1:2" + } + } +} diff --git a/master/hosts.conf b/master/hosts.conf index 5c622a1..c2e4c26 100644 --- a/master/hosts.conf +++ b/master/hosts.conf @@ -1,6 +1,7 @@ // vim: set ft=icinga2 et sw=2 ts=2 si ai: object Host "beholder" { import "debian-host" + import "postfix-host" groups += [ "monitoring" ] @@ -40,4 +41,25 @@ object Host "beholder" { http_string = "Graphite" http_ipv6 = true } + + vars.procs["apache2"] = { + procs_command = "apache2" + procs_critical = "1:50" + } + vars.procs["carbon-cache"] = { + procs_command = "carbon-cache" + procs_critical = "1:2" + } + vars.procs["incrond"] = { + procs_command = "incrond" + procs_critical = "1:2" + } + vars.procs["icingadb"] = { + procs_command = "icingadb" + procs_critical = "1:2" + } + vars.procs["postgres"] = { + procs_command = "postgres" + procs_critical = "1:50" + } }