Inital commit
This commit is contained in:
10
conf/monit/fail2ban.conf
Normal file
10
conf/monit/fail2ban.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
check process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid
|
||||
start program = "/usr/bin/systemctl start fail2ban"
|
||||
stop program = "/usr/bin/systemctl stop fail2ban"
|
||||
if failed unixsocket /var/run/fail2ban/fail2ban.sock then restart
|
||||
if failed unixsocket /var/run/fail2ban/fail2ban.sock for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: Fail2Ban Socket'"
|
||||
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: Fail2Ban Socket'"
|
||||
|
||||
if not exist for 1 cycles then restart
|
||||
if not exist for 3 cycles then exec "/opt/MonitNotify.sh 'Fail2Ban service'"
|
||||
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: Fail2Ban service'"
|
||||
Reference in New Issue
Block a user