VMware Cloud Community
julius_hyperic
Contributor
Contributor

Can't Monitor Openldap activity

I want to try to monitor my Openldap server but it doesn't work and i don't have any idea.

My Hq agent try to gather information from ldap server but in the slapd debug mode i see that he is looking in :

base=""

so i don't get any information

Can someone explain me how i can fix this please.
0 Kudos
1 Reply
Leander
Contributor
Contributor

I also had some problems with the OpenLDAP plugin (and still have, actually).
Did you enable the "monitor" database in slapd.conf and did you configure the
"OpenLDAP 2.3.x" server in HQ (i.e.: ldapHostURL, ldapTreePathToDN and
ldapPasswd)?

What happens when you run this?

ldapsearch -LLL -H ldap://<LDAP_HOST> -x -w <LDAP_PASS> -D "<ROOT_DN>" -b "cn=Monitor" -s sub monitorCounter

Have you tried running the plugin from the command line?

For discovery:

user@host:~hyperic# jre/bin/java -jar pdk/lib/hq-product.jar -p openldap -m discover -Dlog=debug -Dplugins.include=openldap

For metrics:

user@host:~hyperic# jre/bin/java -jar pdk/lib/hq-product.jar -p openldap -Dplugins.include=openldap -DldapHostURL="ldap://<LDAP_HOST>/" -DldapTreePathToDN="<ROOT_DN>" -DldapPasswd=<LDAP_PASS>

I myself have not been able to get the OpenLDAP plugin to autodiscover any of its
services and I'm still struggling with adding them manually...

Leander
0 Kudos