Restart via monit in case of access problems

This commit is contained in:
Lars Kruse 2024-10-19 14:57:51 +02:00
parent 605a8406de
commit b62586b893

View file

@ -8,4 +8,5 @@ check process apache with pidfile /run/apache2/apache2.pid
if cpu > 80% for 5 cycles then restart if cpu > 80% for 5 cycles then restart
if totalmem > {{ apache.check_memory_limit | default(apache_check_memory_limit) }} for 3 cycles then restart if totalmem > {{ apache.check_memory_limit | default(apache_check_memory_limit) }} for 3 cycles then restart
if children > 250 then restart if children > 250 then restart
if failed host 127.0.0.1 port 80 protocol http for 3 cycles then restart
if 3 restarts within 5 cycles then timeout if 3 restarts within 5 cycles then timeout