Created
November 14, 2009 20:31
-
-
Save bturnbull/234738 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
## monit.d/memcached.monitrc | |
check process memcached | |
group memcached | |
with pidfile /var/run/memcached/memcached.pid | |
start program = "/etc/init.d/memcached start" | |
stop program = "/etc/init.d/memcached stop" | |
if failed port 11211 4 times within 5 cycles then restart | |
if 4 restarts within 5 cycles then timeout | |
depends on memcached_bin | |
depends on memcached_rc | |
check file memcached_bin with path /usr/bin/memcached | |
group memcached | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
check file memcached_rc with path /etc/init.d/memcached | |
group memcached | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
## monit.d/httpd.monitrc | |
check process httpd | |
group www | |
with pidfile /var/log/httpd/httpd.pid | |
start program = "/usr/sbin/apachectl start" as uid apache and gid apache | |
stop program = "/usr/sbin/apachectl stop" as uid apache and gid apache | |
if 4 restarts within 5 cycles then timeout | |
if failed host localhost port 80 protocol http 4 times within 5 cycles then restart | |
check file httpd_bin with path /usr/sbin/httpd | |
group www | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
check file apachectl_bin with path /usr/sbin/apachectl | |
group www | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
check file httpd_conf with path /etc/httpd/conf/httpd.conf | |
group www | |
if failed checksum then unmonitor | |
if failed permission 644 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
check file heroku_cert with path /etc/httpd/conf/certs/self_signed_for_gemcutter_staging_heroku_com/gemcutter-staging.heroku.com.crt | |
group www | |
if failed checksum then unmonitor | |
if failed permission 644 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
check file heroku_key with path /etc/httpd/conf/certs/self_signed_for_gemcutter_staging_heroku_com/gemcutter-staging.heroku.com.key.insecure | |
group www | |
if failed checksum then unmonitor | |
if failed permission 644 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
## monit.d/postgresql.monitrc | |
check process postgresql | |
group database | |
with pidfile /var/run/postmaster.5432.pid | |
start program = "/etc/init.d/postgresql start" as uid postgres and gid postgres | |
stop program = "/etc/init.d/postgresql stop" as uid postgres and gid postgres | |
if failed host localhost port 5432 protocol postgresql 4 times within 5 cycles then restart | |
if 4 restarts within 5 cycles then timeout | |
depends on postgresql_bin | |
depends on postgresql_rc | |
check file postgresql_bin with path /usr/local/pgsql/bin/postgres | |
group database | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid postgres then unmonitor | |
if failed gid postgres then unmonitor | |
check file postgresql_rc with path /etc/init.d/postgresql | |
group database | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
## monit.d/delayed_job_production.monitrc | |
check process delayed_job_production | |
group delayed_job_production | |
with pidfile /var/www/rubycentral/gemcutter.org/shared/pids/delayed_job.pid | |
start = "/var/www/rubycentral/gemcutter.org/current/script/delayed_job -e production start" as uid rubycentral and gid rubycentral | |
stop = "/var/www/rubycentral/gemcutter.org/current/script/delayed_job -e production stop" as uid rubycentral and gid rubycentral | |
check file delayed_job_production_bin with path /var/www/rubycentral/gemcutter.org/current/script/delayed_job | |
group delayed_job_production | |
if failed checksum then unmonitor | |
if failed permission 775 then unmonitor | |
if failed uid rubycentral then unmonitor | |
if failed gid rubycentral then unmonitor | |
## monit.d/delayed_job_staging.monitrc | |
check process delayed_job_staging | |
group delayed_job_staging | |
with pidfile /var/www/rubycentral/staging.gemcutter.org/shared/pids/delayed_job.pid | |
start = "/var/www/rubycentral/staging.gemcutter.org/current/script/delayed_job -e staging start" as uid rubycentral and gid rubycentral | |
stop = "/var/www/rubycentral/staging.gemcutter.org/current/script/delayed_job -e staging stop" as uid rubycentral and gid rubycentral | |
depends on delayed_job_staging_bin | |
check file delayed_job_staging_bin with path /var/www/rubycentral/staging.gemcutter.org/current/script/delayed_job | |
group delayed_job_staging | |
if failed checksum then unmonitor | |
if failed permission 775 then unmonitor | |
if failed uid rubycentral then unmonitor | |
if failed gid rubycentral then unmonitor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment