blob: c194f9a9c4d352277934277d896bf64c7a713a46 (
plain)
1
2
3
4
5
6
7
8
9
|
check process nginx with pidfile /var/run/nginx.pid
group www-data
start program = "/etc/init.d/nginx start"
stop program = "/etc/init.d/nginx stop"
if children > 250 then restart
if loadavg(5min) greater than 2 for 8 cycles then stop
if failed host localhost port 80 type tcp protocol http for 3 times within 5 cycles then alert
if 3 restarts within 5 cycles then alert
if 5 restarts within 5 cycles then timeout
|