<% processes.each do |process| %> check process mongrel_cluster_<%= application %>_<%= process[:port] %> with pidfile <%= process[:pid_path] %> group mongrel_cluster_<%= application %> start program = "<%= process[:name] %> start <%= process[:start_options] %>" stop program = "<%= process[:name] %> stop <%= process[:stop_options] %>" if failed host 127.0.0.1 port <%= process[:port] %> protocol http and request "/" then alert if totalmem > 100 Mb then restart if cpu is greater than 60% for 2 cycles then alert if cpu > 80% for 5 cycles then restart if loadavg(5min) greater than 10 for 8 cycles then restart if 3 restarts within 5 cycles then timeout <% end %>