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:
@@ -9,7 +9,9 @@ if [ `uname` = "FreeBSD" ]; then
|
|||||||
/sbin/pfctl -t fail2ban -T show | /usr/bin/grep -c .
|
/sbin/pfctl -t fail2ban -T show | /usr/bin/grep -c .
|
||||||
fi
|
fi
|
||||||
if [ `uname` = "Linux" ]; then
|
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
|
fi
|
||||||
|
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user