configuration-templates – Diff between revs 27 and 37
?pathlinks?
Rev 27 | Rev 37 | |||
---|---|---|---|---|
Line 8... | Line 8... | |||
8 | stop program = "/etc/init.d/apache2 stop" |
8 | stop program = "/etc/init.d/apache2 stop" |
|
9 | # if failed host www-data.example.com port 80 protocol http |
9 | # if failed host www-data.example.com port 80 protocol http |
|
10 | # and request "/monit/token" then restart |
10 | # and request "/monit/token" then restart |
|
11 | if cpu is greater than 60% for 2 cycles then alert |
11 | if cpu is greater than 60% for 2 cycles then alert |
|
12 | if cpu > 80% for 5 cycles then restart |
12 | if cpu > 80% for 5 cycles then restart |
|
13 | if totalmem > 500 MB for 5 cycles then restart |
13 | if totalmem > 50% for 5 cycles then restart |
|
14 | if children > 250 then restart |
14 | if children > 250 then restart |
|
15 | if loadavg(5min) greater than 10 for 8 cycles then stop |
15 | if loadavg(5min) greater than 10 for 8 cycles then stop |
|
16 | # if 3 restarts within 5 cycles then timeout |
16 | # if 3 restarts within 5 cycles then timeout |
|
17 | |
17 | |