11 Mar
2016
11 Mar
'16
8:09 p.m.
Rich Wales richw@richw.org wrote:
I am syncing two Dovecot sites using the dsync function.
If you are referring to replication ...
I would like to be able to run some sort of periodic health check to confirm that dsync is (or is not) running properly between the two sites, and alert me if dsync is failing or lagging excessively.
Does anyone know of a tool to do this?
No replication running:
| mail> doveadm replicator status
| Fatal: net_connect_unix(/var/run/dovecot/replicator-doveadm) failed: No such file or directory
Replication running:
| mail> doveadm replicator status
| Queued 'sync' requests 0
| Queued 'high' requests 0
| Queued 'low' requests 0
| Queued 'failed' requests 0
| Queued 'full resync' requests 0
| Waiting 'failed' requests 0
If those numbers tend to become significantly larger than 0, then replication has issues. I do not use that for health checking by something like ...
(If possible, something I can set up to run periodically in Nagios?)
… but used it once in a while when suspecting issues with replication.
HTH, Michael