Shell script to monitor LDAP server