[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Shell script to monitor LDAP server



"Dieter Kluenter" <dieter@dkluenter.de> writes:

> "Alexandre Vieira" <nullpt@gmail.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'
>> namingContexts
>> 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

monitorConnectionNumber:
monitorConnectionOpsReceived:
monitorConnectionOpsExecuting: 
monitorConnectionOpsPending: 
monitorConnectionOpsCompleted:
monitorConnectionGet:
monitorConnectionRead:
monitorConnectionWrite:

in addtion to connections you may search cn=waiters,cn=monitor, which
gives information on waiters of all operations.


-Dieter

-- 
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6