LDAP monitoring
This script is part of a monitoring solution that allows to monitor several services and applications.
For more information about this monitoring solution please check out this post on my site.
#~ vi monitor_enable.ldif
dn: cn=module,cn=config
cn: module
objectClass: olcModuleList
olcModuleLoad: back_monitor
olcModulePath: /usr/lib/ldap
dn: olcDatabase={2}monitor,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {2}monitor
olcAccess: {0}to * by dn.exact=cn=monitor,ou=auth,dc=example,dc=com manage by * none
#~ ldapadd -Q -Y EXTERNAL -H ldapi:/// -f monitor_enable.ldif
#~
#~ vi /etc/ldap/slapd.conf
...
database monitor
access to *
by dn.exact=cn=monitor,ou=auth,dc=example,dc=com manage
by * none
#~
#~ git clone https://github.com/sergiotocalini/zaldap.git
#~ ./zaldap/deploy_zabbix.sh 'localhost' 'cn=monitor,ou=auth,dc=example,dc=com' 'xxxxxxxx'
#~