Munin/Slapd Plugin
From Debuntu
< Munin
Munin can monitor your OpenLDAP health in terms of operations done by your server.
Contents |
Requirements
To get it working, your LDAP server needs to be configured to enable monitoring. this can be done as described in OpenLDAP/Monitoring_OpenLDAP.
Also, the python binding for ldap needs to be installed:
# apt-get install python-ldap
Install
Once this is done, get the plugin from http://munin-monitoring.org/attachment/ticket/146/munin-slapd-plugin and save it as let say slapd in your munin-node.
Give the right permissions:
# chmod 755 slapd
copy it to /etc/munin/plugins/ :
# cp slapd /etc/munin/plugins/
Configure
Open /etc/munin/plugin-conf.d/munin-node and add a section for slapd:
[slapd] ldap_uri ldap://localhost
As per 'slapd file, the options are:
# parsed environment variables: # ldap_uri: uri to bind to # bind_dn: dn to bind with # bind_pw: password to bind with # bind_timeout: timeout for ldap operations
Restart
Now, restart munin-node and you should be sorted
# /etc/init.d/munin-node restart
Troubleshooting
Tou can run:
# munin-run slapd
To troubleshoot the plugin.