# Healthcheck problem

**URL:** <https://discourse.haproxy.org/t/healthcheck-problem/11850>\
**Category:** Help!\
**Created:** [June 7, 2025, 12:23pm UTC](https://discourse.haproxy.org/t/healthcheck-problem/11850 "2025-06-07T12:23:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spormeon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/spormeon/32/2432_2.png) [@spormeon](https://discourse.haproxy.org/u/spormeon)\
**Post date:** [June 7, 2025, 12:23pm UTC](https://discourse.haproxy.org/t/healthcheck-problem/11850/1 "2025-06-07T12:23:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MaEh](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@MaEh](https://discourse.haproxy.org/u/MaEh)\
**Post date:** [June 11, 2025, 2:04pm UTC](https://discourse.haproxy.org/t/healthcheck-problem/11850/2 "2025-06-11T14:04:59Z")

</div>

Hello,

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

```auto
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 😉 For your first two headers, the content is missing, too in my opinion.

best regards,  
Markus
