Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have a couple of LDAP Servers, and would like to monitor them by using the following command.

./ldapsearch -h hostname -p port -b "cn=monitor" cn=monitor currentconnections

I want to do it from my workstation. What is the best way to accomplish this. Thanks, Julie

Replies are listed 'Best First'.
Re: check LDAP Server
by Utilitarian (Vicar) on Jan 26, 2011 at 20:30 UTC
    You should take a look at Net::LDAP it will allow you carry out reads easily and check the result. This could then be incorporated into an automated check

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."