Report abuse

monit.d/crm.conf


			
check process crm_mongrel_6 with pidfile /var/rails/crm/current/tmp/pids/mongrel.8006.pid
  start program = "/usr/bin/mongrel_rails cluster::start -C /var/rails/crm/current/config/mongrel_cluster.yml --clean --only 8006"
  stop program  = "/usr/bin/mongrel_rails cluster::stop  -C /var/rails/crm/current/config/mongrel_cluster.yml --clean --only 8006"
  if totalmem is greater than 120.0 Mb for 3 cycles then restart
  if cpu is greater than 50% for 2 cycles then alert
  if cpu is greater than 80% for 3 cycles then restart
  if loadavg(5min) is greater than 10 for 8 cycles then restart
  if 20 restarts within 25 cycles then timeout
  if failed host 127.0.0.1 port 8006 protocol http
    with timeout 10 seconds
    then restart
  group mongrel

/var/rails/crm/current/config/mongrel_cluster.yml


			
---
port: 8006
pid_file: tmp/pids/mongrel.pid
servers: 1
environment: production