From aa88b77502e4ad2fbb0de74abbd266a3e0e767d5 Mon Sep 17 00:00:00 2001 From: root <root@frhb10854ds.ikexpress.com> Date: Mon, 14 Dec 2020 12:44:33 +0100 Subject: [PATCH] Fix count number --- check_fail2ban.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_fail2ban.sh b/check_fail2ban.sh index 6142ba9..4936c21 100755 --- a/check_fail2ban.sh +++ b/check_fail2ban.sh @@ -115,7 +115,7 @@ bcount=$(echo "$ban"|grep -v ^\# | grep -v ^$|wc -l) if [ "$bcount" -ge ${warn} ] && [ "$bcount" -lt ${crit} ]; then State="Warning" -elif [ "$bcount" -ge ${warn} ];then +elif [ "$bcount" -ge ${crit} ];then State="Critical" else State="Ok" -- GitLab