HAProxy community

Haproxy Script to monitor application port



I have one linux box running HAproxy and two windows box running some application on port 8080.
I want that if the service on port 8080 is not responding then HAproxy consider that server is down.
I was thinking to have some script which runs on HAproxy and keep checking port like telnet server1 8080 and if the service is not responding that it will make the server as down state and will not forward any request to this server.

Anyone can suggest something or point me to some material that can help me in this.



No need for this, haproxy can health check the backends itself; please read:


Thats a useful feature. Thanks :slight_smile: