From 5566648683ed2355a93bf80ba3a2fef4773d66de Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Mon, 26 Aug 2019 02:37:36 -0400 Subject: [PATCH] Add monitoring of dovecot replication --- local.d/olinda.cfg | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/local.d/olinda.cfg b/local.d/olinda.cfg index 482ba53..78f1d3a 100644 --- a/local.d/olinda.cfg +++ b/local.d/olinda.cfg @@ -38,6 +38,22 @@ define service { host_name olinda } +define command{ + command_name check_dovecot_replicator + #command_line /var/lib/nagios/check_doveadm_replication/check_doveadm_replication.sh --sudo=dovecot -{w,c}"Waiting_Failed_Requests=2:1,/^Queued_.*_Requests$/=:1" + command_line /var/lib/nagios/check_doveadm_replication/check_doveadm_replication.sh --sudo=dovecot -w"Waiting_Failed_Requests=:1,/^Queued_.*_Requests$/=:1" -c"Waiting_Failed_Requests=:1,/^Queued_.*_Requests$/=:1" + #command_line /var/lib/nagios/check_doveadm_replication/check_doveadm_replication.sh --sudo=dovecot -w "Waiting_Failed_Requests=2:1" -c "Waiting_Failed_Requests=2:1" + +} + +define service { + name olinda-dovecot-replicator + use adehnert-service + service_description DOVECOT-REPLICATOR + check_command check_dovecot_replicator + host_name olinda +} + define service { name olinda-postfix-queue use adehnert-service -- 2.34.1