I have a slapd LDAP server which is critical to my application. I want to monitor it in order to detect when it has become over-loaded or if it fails.
Unfortunately we are stuck with a very old edition of slapd which has a known bug: It cannot cope with more than 64 concurrent connections. If a client attempts to open any more connections slapd blocks, causing all kinds of problems.
I have been asked to make a tool which will find the number of connections open at any given moment - this might be used in an automatic monitoring tool, but how can I find out the state of slapd? Is there a way to do it?