文件操作 - fail2ban
返回文件管理
返回主菜单
删除本文件
文件: /etc/monit/monitrc.d/fail2ban
编辑文件内容
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
修改文件时间
将文件时间修改为当前时间的前一年
删除文件