we use haproxy to do load balancing and health check on our APIs. I’m trying to use the external-check feature on haproxy 1.7 with the chroot option. It won’t work and I don’t know why:
external-check command /var/lib/haproxy/check.sh
The /var/lib/haproxy directory looks like:
│ └── bash
│ └── log
The check.sh script does something simple like:
#!/bin/bash echo "Here the args:" echo $@ >> /text.txt exit 0
When I take this configuration online haproxy is immediately assuming the APIs are offline.
Any ideas why that is so?