# External-check for each backend server

**URL:** <https://discourse.haproxy.org/t/external-check-for-each-backend-server/1563>\
**Category:** Help!\
**Created:** [August 28, 2017, 6:24pm UTC](https://discourse.haproxy.org/t/external-check-for-each-backend-server/1563 "2017-08-28T18:24:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielsousa](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@gabrielsousa](https://discourse.haproxy.org/u/gabrielsousa)\
**Post date:** [August 28, 2017, 6:24pm UTC](https://discourse.haproxy.org/t/external-check-for-each-backend-server/1563/1 "2017-08-28T18:24:36Z")

</div>

how I do different external-check for each backend server ?

---

<div class="post-metadata">

**Author:** ![choonho](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/choonho/32/1249_2.png) [@choonho](https://discourse.haproxy.org/u/choonho)\
**Post date:** [August 23, 2020, 12:34pm UTC](https://discourse.haproxy.org/t/external-check-for-each-backend-server/1563/2 "2020-08-23T12:34:34Z")

</div>

Hi,

bumping this question again.

I have the following backend server configuration with 2 servers.  
Is it possible to have 2 external-check script for the 2 servers separately?  
ie,

- health-check01 for SERVER01
- health-check02 for SERVER02

backend HTTPS-BACKEND  
mode tcp  
balance roundrobin  
option external-check  
external-check path “/bin:/usr/bin:/usr/local/bin”  
external-check command /var/lib/haproxy/health-check01  
server SERVER01 10.0.1.67:443 check  
server SERVER02 10.0.1.68:443 check backup

Thanks

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [August 23, 2020, 12:38pm UTC](https://discourse.haproxy.org/t/external-check-for-each-backend-server/1563/3 "2020-08-23T12:38:49Z")

</div>

No, but you have all the data available to distinguish between one and the other, so you can also call a specific script from your parent caller script.
