configuration-templates – Blame information for rev 50
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
29 | office | 1 | ########################################################################### |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
3 | ########################################################################### |
||
4 | |||
5 | check process memcache with pidfile /var/run/memcached.pid |
||
6 | group cache |
||
7 | group memcached |
||
50 | office | 8 | depend memcache_bin |
9 | depend memcache_rc |
||
29 | office | 10 | start program = "/etc/init.d/memcached start" |
11 | stop program = "/etc/init.d/memcached stop" |
||
12 | if failed host 127.0.0.1 port 11211 and protocol memcache then restart |
||
13 | if cpu > 60% for 2 cycles then alert |
||
14 | if cpu > 98% for 5 cycles then restart |
||
50 | office | 15 | # if 5 restarts within 20 cycles then timeout |
29 | office | 16 | |
17 | check file memcache_bin with path /usr/bin/memcached |
||
18 | group memcached |
||
19 | include /etc/monit/templates/rootbin |
||
20 | |||
21 | check file memcache_rc with path /etc/init.d/memcached |
||
22 | group memcached |
||
23 | include /etc/monit/templates/rootbin |