Add monitoring of dovecot replication
authorAlex Dehnert <alex@dehnerts.com>
Mon, 26 Aug 2019 06:37:36 +0000 (02:37 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Mon, 26 Aug 2019 06:37:36 +0000 (02:37 -0400)
local.d/olinda.cfg

index 482ba53ecd3bf55636aa3a3ab69c1d6b23505fdb..78f1d3ab2a3e9b53d16e5643091ad45c7533db2d 100644 (file)
@@ -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