[Date Prev][Date Next]
Re: Shell script to monitor LDAP server
"Dieter Kluenter" <firstname.lastname@example.org> writes:
> "Alexandre Vieira" <email@example.com> writes:
>> Hello all,
>> I have a Solaris 10 system that queries a clients openldap server to deliver a
>> certain service and the client is complaining that my system sometimes denies
>> services to clients. Well my system only denies service to clients if the
>> openldap system from the customer fails to answer.
>> In this sense I tried to write a script to monitor the openldap server and its
>> responsiveness but ldapsearch client in Solaris 10 doesn't work as I expected
>> For example, all ok:
>> bash# ldapsearch -v -b '' -s base -h 192.168.1.102:7323 'objectclass=top'
>> ldapsearch: started Fri Jun 13 01:51:53 2008
> You should search the monitor backend, with something like
> ldapsearch -b "cn=connections,cn=monitor" -s sub
Let me elaborate on this a bit further:
ldapsearch -b "cn=connections,cn=monitor" -s sub monitorcounter gives
information on following items
in addtion to connections you may search cn=waiters,cn=monitor, which
gives information on waiters of all operations.
Dieter Klünter | Systemberatung
GPG Key ID:8EF7B6C6