![]() ![]() #check process proftpd with pidfile /var/run/proftpd.pid Stop program = "/etc/init.d/fail2ban stop" ![]() Start program = "/etc/init.d/fail2ban start" If 5 restarts within 5 cycles then timeoutĬheck process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid Start program = "/etc/init.d/named start" If 3 restarts within 3 cycles then timeoutĬheck process named with pidfile /var/run/named.pid If failed host 192.168.1.60 port 80 protocol http then alert Start program = "/etc/init.d/nginx start" #start program = "/etc/init.d/exim start"Ĭheck process nginx with pidfile /var/run/nginx.pid #check process exim with pidfile /var/run/exim.pid #if 5 restarts within 5 cycles then timeout #if failed host 127.0.0.1 port 80 protocol http then alert #start program = "/etc/init.d/httpd start" #check process httpd with pidfile /var/run/httpd/httpd.pid If match 'table full, dropping packet' for 2 cycles then exec "/bin/bash -c '/usr/bin/monit unmonitor messages & /bin/sleep 3600 & /usr/bin/monit monitor messages'" If match 'temperature above threshold' for 2 cycles then exec "/bin/bash -c '/usr/bin/monit unmonitor messages & /bin/sleep 3600 & /usr/bin/monit monitor messages'" ![]() If match 'OOM killed process' for 2 cycles then exec "/bin/bash -c '/usr/bin/monit unmonitor messages & /bin/sleep 3600 & /usr/bin/monit monitor messages'" If match 'table full, dropping packet' then alert If match 'temperature above threshold' then alert Check file messages with path /var/log/messages ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |