summaryrefslogtreecommitdiff
path: root/monit/fail2ban.conf
diff options
context:
space:
mode:
Diffstat (limited to 'monit/fail2ban.conf')
-rw-r--r--monit/fail2ban.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/monit/fail2ban.conf b/monit/fail2ban.conf
new file mode 100644
index 0000000..96f9d26
--- /dev/null
+++ b/monit/fail2ban.conf
@@ -0,0 +1,5 @@
+check process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid
+ start program = "/etc/init.d/fail2ban start"
+ stop program = "/etc/init.d/fail2ban stop"
+ if 3 restarts within 3 cycles then alert
+ if 5 restarts within 5 cycles then timeout