1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

update to check fail2ban and f2b

This commit is contained in:
VVelox
2017-02-17 10:32:27 -06:00
committed by GitHub
parent 21c953d11a
commit 8b78f863d3

View File

@@ -9,7 +9,9 @@ if [ `uname` = "FreeBSD" ]; then
/sbin/pfctl -t fail2ban -T show | /usr/bin/grep -c .
fi
if [ `uname` = "Linux" ]; then
iptables -L -n | grep -c f2b\-
f2b1=`iptables -L -n | grep -c f2b\-`
f2b2=`iptables -L -n | grep -c fail2ban\-`
expr $f2b1 + $f2b2
fi
exit 0;