From 25517df98743045dad745aab9f6a37c3e1e93c1b Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Fri, 21 Oct 2022 10:07:25 +0200 Subject: [PATCH] add a missing file --- check_haproxy_health | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_haproxy_health b/check_haproxy_health index 663243e..fc91dc8 100755 --- a/check_haproxy_health +++ b/check_haproxy_health @@ -11,6 +11,7 @@ # 2020-12-03 v1.2 <axel.hahn@iml.unibe.ch> loop over multiple frontend status urls # 2021-12-14 v1.3 <axel.hahn@iml.unibe.ch> use updated haproxy paser in sourced file # 2022-04-01 v1.4 <axel.hahn@iml.unibe.ch> use wget default params; shell fixes +# 2022-10-21 v1.5 <axel.hahn@unibe.ch> remove grep: warning: stray \ before white space # ====================================================================== . $(dirname $0)/inc_pluginfunctions @@ -29,7 +30,7 @@ if [ $? -ne 0 ]; then ph.abort "UNKNOWN: unable to read ha proxy config $cfgfile ... $(ls -l $cfgfile)" fi -cat $cfgfile | grep "\ mode\ .*http" >/dev/null +cat $cfgfile | grep " mode .*http" >/dev/null if [ $? -ne 0 ]; then ph.abort "UNKNOWN: haproxy is not in http mode" fi -- GitLab