External-check for each backend server

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

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

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.