Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added memcache monitoring and enabled the embedded web server.
- Loading branch information
António P. P. Almeida
committed
Oct 12, 2010
1 parent
6a88aae
commit 608ccbc
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#-*- mode: conf; mode: flyspell-prog; mode: autopair; ispell-current-dictionary: american -*- | ||
|
||
### Monitoring memcached. | ||
check process memcache with pidfile /var/run/memcached.pid | ||
group memcache | ||
start program = "/etc/init.d/memcached start" | ||
stop program = "/etc/init.d/memcached stop" | ||
if failed port 11211 protocol memcache then restart | ||
if 3 restarts within 5 cycles then timeout | ||
depends on memcached | ||
depends on memcached_init | ||
alert root@localhost only on {timeout} | ||
|
||
check file memcached with path /usr/bin/memcached | ||
group memcache | ||
if failed checksum then unmonitor | ||
if failed permission 755 then unmonitor | ||
if failed uid root then unmonitor | ||
if failed gid root then unmonitor | ||
alert root@localhost | ||
|
||
check file memcached_init with path /etc/init.d/memcached | ||
group memcache | ||
if failed checksum then unmonitor | ||
if failed permission 755 then unmonitor | ||
if failed uid root then unmonitor | ||
if failed gid root then unmonitor | ||
alert root@localhost |