mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
16 lines
330 B
Plaintext
16 lines
330 B
Plaintext
![]() |
#!/bin/sh
|
||
|
|
||
|
# Addthis to snmpd.conf as below.
|
||
|
# extend fail2ban /etc/snmp/fail2ban
|
||
|
#
|
||
|
# Also please verify your fail to ban instalation for proper table/chain names.
|
||
|
|
||
|
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\-
|
||
|
fi
|
||
|
|
||
|
exit 0;
|