I have to setup haproxy with agent-check, the backend servers reporting themselves their weight ("28%" for example) over http. Seems like haproxy can't speak http with it's agents, which seems weird. Is there no way to do it ?
I've tried this :
server X X:80 agent-check agent-port 80 agent-send "GET /some/url HTTP/1.0\r\n" check observe layer7
Which may or may not work, I actually have no idea. Is there any way to tell if the agent-check are succeeding or not ? The statistics page doesn't seem to change whether the url is valid or not. I'm guessing it's not working, because haproxy must be expecting just the value, not any of the http around it.