check process mongrel_1 with pidfile /home/deploy/radiant/current/log/mongrel.3000.pid group mongrel_cluster start program = "/usr/bin/mongrel_rails cluster::start -C /home/deploy/radiant/current/config/mongrel_cluster.yml --clean --only 3000" stop program = "/usr/bin/mongrel_rails cluster::stop -C /home/deploy/radiant/current/config/mongrel_cluster.yml --only 3000" if totalmem is greater than 80.0 MB for 2 cycles then restart if cpu is greater than 80% for 2 cycles then alert if cpu is greater than 40% for 4 cycles then restart if 5 restarts within 5 cycles then timeout if failed port 3000 protocol http with timeout 30 seconds then restart check process mongrel_2 with pidfile /home/deploy/radiant/current/log/mongrel.3001.pid group mongrel_cluster start program = "/usr/bin/mongrel_rails cluster::start -C /home/deploy/radiant/current/config/mongrel_cluster.yml --clean --only 3001" stop program = "/usr/bin/mongrel_rails cluster::stop -C /home/deploy/radiant/current/config/mongrel_cluster.yml --only 3001" if totalmem is greater than 80.0 MB for 2 cycles then restart if cpu is greater than 80% for 2 cycles then alert if cpu is greater than 40% for 4 cycles then restart if 5 restarts within 5 cycles then timeout if failed port 3001 protocol http with timeout 30 seconds then restart