configuration-templates – Rev 50
?pathlinks?
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
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
check file memcache_bin with path /usr/bin/memcached
group memcached
include /etc/monit/templates/rootbin
check file memcache_rc with path /etc/init.d/memcached
group memcached
include /etc/monit/templates/rootbin