configuration-templates
/monit/debian/templates/memcached |
@@ -5,14 +5,14 @@ |
check process memcache with pidfile /var/run/memcached.pid |
group cache |
group memcached |
depend memcache_bin |
depend memcache_rc |
start program = "/etc/init.d/memcached start" |
stop program = "/etc/init.d/memcached stop" |
if failed host 127.0.0.1 port 11211 and protocol memcache then restart |
if cpu > 60% for 2 cycles then alert |
if cpu > 98% for 5 cycles then restart |
if 5 restarts within 20 cycles then timeout |
depend memcache_bin |
depend memcache_rc |
# if 5 restarts within 20 cycles then timeout |
|
check file memcache_bin with path /usr/bin/memcached |
group memcached |