Inital commit

This commit is contained in:
2021-01-08 11:06:07 +01:00
commit 8f9fb4fd5c
13 changed files with 368 additions and 0 deletions

10
conf/monit/fail2ban.conf Normal file
View 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'"