Check Syncrepl status¶
Presentation¶
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.
Usage¶
$ check_ldap_syncrepl_status.pl -H <hostname> [-h] [-v] [-V]
Mandatory options¶
- -H
IP, host or LDAP URI of the slave server.
- -w
lag in seconds to raise a WARNING alert.
- -c
lag in seconds to raise a CRITICAL alert.
Other options¶
- -v, -vv, -vvv
debugging level
- -V
print version and exit
- -h
print help and quit
- -p
slave server port (not used if LDAP URI in -H)
- -f
output performance data
- -t
timeout
- -D
DN to connect to master and slave
- -P
password for connection DN
- -U
LDAP URI of master server. If not given, a search is done in cn=monitor
- -S
suffix of servers (must contains the contextCSN attribute); if not given, a search in RootDSE is done
- -I
server ID (SID), mandatory for mirror mode; default value: 000
Tip
Remark: To use SSL/TLS, write ldaps:
or ldap+tls:
in LDAP URI.
Download¶
This plugin, along with all other Nagios plugins from this site, can be downloaded in a single archive.
Footnotes