I think there might be a better way, but you could run the check against a different port. On that other port, you could have it run your custom check and return an OK response if your check passes and fail if it doesn't.
From: Sanjeev Kumar [mailto:replysku...@gmail.com] Sent: Friday, May 15, 2009 10:26 AM To: haproxy@formilux.org Subject: Re: New to HAproxy - how to define custom health-check msg? Hi, I am planning to use HAproxy to load-balance my custom-service(Tcp Application) on Real-servers. My service is not Http-based, hence option 'httpchk' would be not be replied by my App. Just checking TCP-connection open is not sufficient. How can I define my custom "send-string" and "expected-string" using HA-proxy ?? Any direction/pointers would be highly appreciated. -Sanjeev kumar Internal Virus Database is out of date. Checked by AVG - www.avg.com Version: 8.5.325 / Virus Database: 270.12.21/2101 - Release Date: 05/06/09 17:58:00