Monitoring Rails Application in Prouction

Anyone have any suggested tools or plugins to monitor a rail
application in production?

What kind of monitoring do you need to do? We use nagios to monitor uptime.

Pat

Many people use monit with success. This also looks promising: http://god.rubyforge.org/

I need to monitor the 'health' of the application more then just
uptime. What do others monitor in production rails applications
besides uptime?
Matt

I've not tried many, but monit(already mentioned) is pretty slick -
plus it provides a dsl to heal broken services.

#8000
check process mongrel-8000 with pidfile /var/www/the-soup/shared/log/
mongrel.8000.pid
     start program = "/usr/local/bin/ruby /usr/bin/mongrel_rails
start --user deploy --group mongrel -e production -d -c /var/www/the-
soup/current/ -p 8000 -P /var/www/the-soup/current/log/mongrel.
8000.pid -r /var/www/the-soup/current/public/"
     stop program = "/usr/local/bin/ruby /usr/bin/mongrel_rails stop -
c /var/www/the-soup/current/ -p 8000 -P /var/www/the-soup/current/log/
mongrel.8000.pid"

     if totalmem > 85.0 MB for 5 cycles then restart
     if failed port 8000 protocol http
         with timeout 10 seconds
         then restart
     group www

Plus also provides an http service for stats monitoring and control.

http://www.tildeslash.com/monit/

Cheers,
Jodi
General Partner
The nNovation Group inc.
www.nnovation.ca/blog

on-innovation.gif