configuration-templates – Diff between revs 29 and 50
?pathlinks?
Rev 29 | Rev 50 | |||
---|---|---|---|---|
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 memcache with pidfile /var/run/memcached.pid |
5 | check process memcache with pidfile /var/run/memcached.pid |
|
6 | group cache |
6 | group cache |
|
7 | group memcached |
7 | group memcached |
|
- | 8 | depend memcache_bin |
||
- | 9 | depend memcache_rc |
||
8 | start program = "/etc/init.d/memcached start" |
10 | start program = "/etc/init.d/memcached start" |
|
9 | stop program = "/etc/init.d/memcached stop" |
11 | stop program = "/etc/init.d/memcached stop" |
|
10 | if failed host 127.0.0.1 port 11211 and protocol memcache then restart |
12 | if failed host 127.0.0.1 port 11211 and protocol memcache then restart |
|
11 | if cpu > 60% for 2 cycles then alert |
13 | if cpu > 60% for 2 cycles then alert |
|
12 | if cpu > 98% for 5 cycles then restart |
14 | if cpu > 98% for 5 cycles then restart |
|
13 | if 5 restarts within 20 cycles then timeout |
15 | # if 5 restarts within 20 cycles then timeout |
|
14 | depend memcache_bin |
- | ||
15 | depend memcache_rc |
- | ||
16 | |
16 | |
|
17 | check file memcache_bin with path /usr/bin/memcached |
17 | check file memcache_bin with path /usr/bin/memcached |
|
18 | group memcached |
18 | group memcached |
|
19 | include /etc/monit/templates/rootbin |
19 | include /etc/monit/templates/rootbin |
|
20 | |
20 | |
|
21 | check file memcache_rc with path /etc/init.d/memcached |
21 | check file memcache_rc with path /etc/init.d/memcached |
|
22 | group memcached |
22 | group memcached |
|
23 | include /etc/monit/templates/rootbin |
23 | include /etc/monit/templates/rootbin |
|
24 | |
24 | |