At the moment i am using HAproxy to check an smtp server with the following:

    option tcp-check
    tcp-check expect rstring ^220
    tcp-check send QUIT\r\n
    tcp-check expect rstring ^221

But is it also possible to add in another check for the same service? This other check will be on port 80 and is a simple check to see if the IPHERE:80/mhtest will return the string "GOOD"

If either checks come back with an error i want my service to change to the backup one i have

server node1 check-send-proxy check inter 15s send-proxy
server node2 check-send-proxy check inter 15s send-proxy backup
  • Which version are you using? Which OS?
    – gxx
    Dec 31, 2015 at 11:54
  • centos 6.5 latest hproxy
    – PixelPaul
    Dec 31, 2015 at 22:41
  • 1
    You can write your own little health check application that connects to both services and whatever else, opening a health port on success. Jan 1, 2016 at 5:29

1 Answer 1


Yes, just use the external health check i.e:

external-check path "/usr/bin:/bin"
 external-check command /bin/true
 server s1 check

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .