Check Syncrepl status


This Nagios script checks syncrepl status. Syncrepl 1 is the protocol used by OpenLDAP for synchronizing multiple LDAP directories.

No temporary files are used to check the state of the replication, just cookies with timestamps (the contextCSN attribute). The script will read the status cookies of the LDAP servers and display if they are in sync or not.


Required Perl modules:


$ -H <hostname> [-h] [-v] [-V]

Mandatory options


IP, host or LDAP URI of the slave server.


lag in seconds to raise a WARNING alert.


lag in seconds to raise a CRITICAL alert.

Other options

-v, -vv, -vvv

debugging level


print version and exit


print help and quit


slave server port (not used if LDAP URI in -H)


output performance data




DN to connect to master and slave


password for connection DN


LDAP URI of master server. If not given, a search is done in cn=monitor


suffix of servers (must contains the contextCSN attribute); if not given, a search in RootDSE is done


server ID (SID), mandatory for mirror mode; default value: 000


Remark: To use SSL/TLS, write ldaps: or ldap+tls: in LDAP URI.


This plugin, along with all other Nagios plugins from this site, can be downloaded in a single archive.



See the RFC4533 for more information