How to monitor passenger / mod_rails processes?

Matt picture Matt · May 29, 2009 · Viewed 8.1k times · Source

I searched the site already but couldn't find any suitable information. As there is always some expert around I'm sure one of guys knows exactly what I'm searching for :-)

We're on a balanced system:

Machine 1:     HAProxy load balancer
Machine 2 & 3: Apache mod_rails and (of course) our Rails applications

Those were the days when we were able to monitor all Mongrel processes using monit (or other monitoring tools).

Is there any way to do an easy and clever monitoring of passenger processes with monit (or other tools), too? How can I dynamically get all pids of the running processes and pass them to monitoring?

Matt

Answer

John Topley picture John Topley · May 29, 2009

There are various options available. Here are some of them: