Define process checks for master

This commit is contained in:
Jan Dittberner 2023-08-17 10:39:30 +02:00
parent 68238a1ad2
commit e5db0ccf9b
2 changed files with 32 additions and 0 deletions

View file

@ -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"
}
}
}

View file

@ -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"
}
}