configuration-templates – Diff between revs 37 and 98
?pathlinks?
Rev 37 | Rev 98 | |||
---|---|---|---|---|
1 | ########################################################################### |
1 | ########################################################################### |
|
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
|
3 | ########################################################################### |
3 | ########################################################################### |
|
4 | |
4 | |
|
5 | check process apache with pidfile /var/run/apache2/apache2.pid |
5 | check process apache with pidfile /var/run/apache2/apache2.pid |
|
6 | group www-data |
6 | group www-data |
|
7 | start program = "/etc/init.d/apache2 start" |
7 | start program = "/etc/init.d/apache2 start" |
|
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 > 50% 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 restart |
|
16 | # if 3 restarts within 5 cycles then timeout |
16 | # if 3 restarts within 5 cycles then timeout |
|
17 | |
17 | |
|
18 |
|
- | ||
19 | |
- | ||
20 | |
- | ||
21 | |
- |