Le 10/7/21 à 11:59 AM, Basti Schubert a écrit :
Hi there,
i'd like to use variables in healtchecks to set the host header to the
ip of the server that is beeing checked, something like this:
http-check connect port 443 ssl
http-check send meth GET uri /ecp/healthcheck.htm ver HTTP/1.1 hdr host
$SERVERIP
http-check expect status 200
Problem is: i don't know if this is possible and if there is already a
variable for such configs (can %si from the log format section be used
for this?)
I'm on haproxy 2.2.x
Hi,
It is possible to use sample fetches and log-format variables. Thus, you can
indeed rely on "%si". But you must use 2.2.14 or newer.
--
Christopher Faulet