apply Service "proc named" {
import "generic-service"
- #host_name = "ns1.uhu-banane.de"
+
+ if ( host.vars.client_endpoint ) {
+ // specify where the check is executed
+ command_endpoint = host.vars.client_endpoint
+ }
check_command = "procs"
vars.procs_argument = "/usr/sbin/named"
http_uri = "/"
}
+ vars.is_mail_sattelite = true
+
vars.ping_wrta = 200
vars.ping_crta = 300
vars.is_ns = true
vars.check_dns_domain = "uhu-banane.de"
+ vars.is_mail_sattelite = true
+ vars.is_mta = true
+
+ vars.mailq_warning = 3
+ vars.mailq_critical = 10
+
+
/* Define http vhost attributes for service apply rules in `services.conf`. */
vars.http_vhosts["http"] = {
http_uri = "/"
check_command = "mailq"
- //specify where the check is executed
- command_endpoint = host.vars.client_endpoint
+ if ( host.vars.client_endpoint ) {
+ // specify where the check is executed
+ command_endpoint = host.vars.client_endpoint
+ }
+
+ vars.mailq_warning = 100
+ vars.mailq_critical = 300
+
+ assign where host.vars.is_mta && ! host.vars.is_mail_sattelite
+}
+
+apply Service "mailq" {
+ import "generic-service"
+
+ check_command = "mailq"
+
+ if ( host.vars.client_endpoint ) {
+ // specify where the check is executed
+ command_endpoint = host.vars.client_endpoint
+ }
+
+ vars.mailq_warning = 3
+ vars.mailq_critical = 10
+
+ assign where host.vars.is_mail_sattelite
+}
+
+apply Service "proc postfix" {
+ import "generic-service"
+
+ if ( host.vars.client_endpoint ) {
+ // specify where the check is executed
+ command_endpoint = host.vars.client_endpoint
+ }
+
+ check_command = "procs"
+ vars.procs_argument = "/usr/lib/postfix/sbin/master"
+ vars.procs_ppid = 1
+ vars.procs_warning = "1:1"
+ vars.procs_critical = "1:2"
+ vars.procs_user = "root"
- assign where host.vars.client_endpoint && host.vars.is_mta
+ assign where host.vars.is_mta || host.vars.is_mail_sattelite
}
apply Service "smtp" {
import "generic-service"
check_command = "smtp"
- assign where host.vars.is_mta
+ assign where host.vars.is_mta && ! host.vars.is_mail_sattelite
}
apply Service "imap" {