@senattcs wrote:
I have an HAProxy as a member in A10 and whenever A10 sends “/healthcheck” call- HAProxy needs to return “ACTIVE” word. I was trying-
backend xxx.healthcheck
mode http
timeout server 60s
default-server inter 5s fall 3 rise 2
http-check expect string “ACTIVE”errorfile 503 /var/prod/xxx-shared/scripts/HAProxy/hk.http
but definitely I’m doing something wrong- as my tests are showing
503 Service Unavailable
No server is available to handle this request.instead of ACTIVE word in the response.
contents of hk.http:
HTTP/1.1 200 OK\r\n
<?xml version="1.0" encoding="UTF-8"?> ACTIVE
Server: Apache-Coyote/1.1\r\n
Content-Type: text/html;charset=UTF-8\r\n
Posts: 1
Participants: 1