@mr.simonski wrote:
Hey there,
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:global
chroot /var/lib/haproxy
external-check
user haproxy
group haproxy
…
backend ABC
option external-check
external-check command /var/lib/haproxy/check.sh
…The /var/lib/haproxy directory looks like:
.
├── bin
│ └── bash
├── check.sh
├── dev
│ └── log
└── text.txtThe 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?
Posts: 3
Participants: 2