2023-02-06 22:38:19 +01:00
|
|
|
# Ansible managed
|
|
|
|
|
|
|
|
check process apache with pidfile /run/apache2/apache2.pid
|
|
|
|
group webserver
|
|
|
|
start program = "/usr/sbin/service apache2 start" with timeout 60 seconds
|
|
|
|
stop program = "/usr/sbin/service apache2 stop"
|
|
|
|
if cpu > 60% for 2 cycles then alert
|
|
|
|
if cpu > 80% for 5 cycles then restart
|
2023-02-06 23:03:10 +01:00
|
|
|
if totalmem > {{ apache.check_memory_limit | default(apache_check_memory_limit) }} for 3 cycles then restart
|
2023-02-06 22:38:19 +01:00
|
|
|
if children > 250 then restart
|
2024-10-19 14:57:51 +02:00
|
|
|
if failed host 127.0.0.1 port 80 protocol http for 3 cycles then restart
|
2023-02-06 22:38:19 +01:00
|
|
|
if 3 restarts within 5 cycles then timeout
|