configuration-templates – Blame information for rev 29

Subversion Repositories:
Rev:
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
8 start program = "/etc/init.d/memcached start"
9 stop program = "/etc/init.d/memcached stop"
10 if failed host 127.0.0.1 port 11211 and protocol memcache then restart
11 if cpu > 60% for 2 cycles then alert
12 if cpu > 98% for 5 cycles then restart
13 if 5 restarts within 20 cycles then timeout
14 depend memcache_bin
15 depend memcache_rc
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