Healthcheck problem

Why doesnt this healthcheck work:

if i leave option httpchk out it throws: [WARNING] (1) : backend ‘tor_backend’ uses http-check rules without ‘option httpchk’, so the rules are ignored.

which stops any layer7 check showing in the stats backend ui, it shows a L4ok check but i need L7

option httpchk
http-check connect
http-check send meth GET
http-check send uri /version
http-check send ver HTTP/1.1
# option httpchk GET /version
http-check send hdr Host 
http-check send hdr X-
http-check send hdr Connection close
http-check expect status 200

if i put option httpchk in, i get: [ALERT] (1) : config : parsing [/usr/local/etc/haproxy/haproxyPBC.cfg:664] : ‘http-check send’ : unable to add http-check send rule at step 2 (missing connect rule)..
and the dcoker conatiner wont spin up

Hello,

as far as I know, you should use send only in the method-context once. So…

option httpchk
   http-check connect
   http-check send meth GET uri /version ver HTTP/1.1 hdr Host {content for Host-Header} hdr X- {content for X-Header} hdr Connection close
   http-check expect status 200

…should do the trick :wink: For your first two headers, the content is missing, too in my opinion.

best regards,
Markus