mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-05-13 14:36:43 +00:00
> Yes, scripting is not supported in path. https://bitbucket.org/tildeslash/monit/issues/372/webadmin-shows-only-the-first-part-of#comment-27946048
9 lines
403 B
Text
9 lines
403 B
Text
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
|