diff options
author | Viktor Szépe <viktor@szepe.net> | 2014-12-24 14:45:48 +0100 |
---|---|---|
committer | Viktor Szépe <viktor@szepe.net> | 2014-12-24 14:45:48 +0100 |
commit | 971c3d93feefb6f189faaa13faf93f890d40b9a6 (patch) | |
tree | eeb9529632888cdd5b7f1de4399adb263c4c8659 /files | |
parent | cc89649d04f3ec9e6613f31b9fa8769881ef5428 (diff) | |
download | fail2ban-971c3d93feefb6f189faaa13faf93f890d40b9a6.tar.gz |
Monit config
Copy it to `/etc/monit/monitrc.d/fail2ban`
More info: https://github.com/szepeviktor/debian-server-tools/blob/master/monitoring/monit/monit-debian-setup.sh#L113
Diffstat (limited to 'files')
-rw-r--r-- | files/monit/fail2ban | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/files/monit/fail2ban b/files/monit/fail2ban new file mode 100644 index 00000000..8e6c9419 --- /dev/null +++ b/files/monit/fail2ban @@ -0,0 +1,9 @@ +check process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid + group services + start program = "/etc/init.d/fail2ban force-start" + stop program = "/etc/init.d/fail2ban stop || :" + if failed unixsocket /var/run/fail2ban/fail2ban.sock then restart + if 5 restarts within 5 cycles then timeout + +check file fail2ban_log with path /var/log/fail2ban.log + if match "ERROR|WARNING" then alert |