Hello, Take a look at the "check program" test, you can write a bash script that connects to your LDAP server and have monit check the exit code and take action based on that. I'm afraid shell scripting itself is out of scope for this list though...
-------- Original message -------- Subject: Re: Passing Credentials to Ldap Server From: Darshana Patel <[email protected]> To: This is the general mailing list for monit <[email protected]> CC: Hi Leif, Can you guide me with using the script as i am new to this tool and dont ahve much idea about it From: Leif Gustafson <[email protected]> To: [email protected] Date: 07/11/2013 11:24 AM Subject: Re: Passing Credentials to Ldap Server Sent by: [email protected] You might be better off using a script for this one (even just a shell script and openldap tools could work) and using the "check program" test, particularly if encryption is involved. -------- Original message -------- Subject: Passing Credentials to Ldap Server From: Darshana Patel <[email protected]> To: This is the general mailing list for monit <[email protected]> CC: Hi All, I am trying to connect to an ldap server using monit. However i am getting a failure message saying "Anonymous bind failure". Can anyone please tell me how to send the LDAP server credentials while connecting . Kindly tell me the exact send expect statements used in the monitrc file . Thanks =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
