From 6955e5d410f87be4423ac86111841721292911fd Mon Sep 17 00:00:00 2001 From: VVelox Date: Fri, 17 Feb 2017 10:33:02 -0600 Subject: [PATCH] don't assume it appends the jail name --- snmp/fail2ban | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snmp/fail2ban b/snmp/fail2ban index f4b3969..6eeb9f3 100644 --- a/snmp/fail2ban +++ b/snmp/fail2ban @@ -9,8 +9,8 @@ if [ `uname` = "FreeBSD" ]; then /sbin/pfctl -t fail2ban -T show | /usr/bin/grep -c . fi if [ `uname` = "Linux" ]; then - f2b1=`iptables -L -n | grep -c f2b\-` - f2b2=`iptables -L -n | grep -c fail2ban\-` + f2b1=`iptables -L -n | grep -c f2b\` + f2b2=`iptables -L -n | grep -c fail2ban\` expr $f2b1 + $f2b2 fi