configuration-templates – Diff between revs 29 and 50

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 29 Rev 50
Line 3... Line 3...
3 ########################################################################### 3 ###########################################################################
Line 4... Line 4...
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
-   8 depend memcache_bin
7 group memcached 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 -  
14 depend memcache_bin -  
Line 15... Line 15...
15 depend memcache_rc 15 # if 5 restarts within 20 cycles then timeout
16   16  
17 check file memcache_bin with path /usr/bin/memcached 17 check file memcache_bin with path /usr/bin/memcached