From 23c7ef8c208f65a1ec22915bea2edebb45a878d0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 17 Mar 2021 16:49:43 +0100 Subject: [PATCH] haproxy: zabbix returns either 200 or 401 - maybe this way? Signed-off-by: Pierre-Yves Chibon --- roles/haproxy/templates/haproxy.cfg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 03a6220da3..3231e66d74 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -494,6 +494,5 @@ backend zabbix-backend balance hdr(appserver) server zabbix01 zabbix01:80 check inter 10s rise 1 fall 2 option httpchk GET / - http-check expect status 401 - http-check expect status 200 + http-check expect status 200,401 {% endif %}