How to monitor passenger / mod_rails processes?
-
06-09-2019 - |
Question
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
Solution
There are various options available. Here are some of them:
- The passenger-status tool lets you inspect its internal status
- FiveRuns Manage can monitor a Passenger installation
- Scout can also monitor Passenger
OTHER TIPS
I made a plugin which make Passenger processes monitorable by Monit: https://github.com/romanbsd/passenger_monit
Its a little ghetto but run these commands
watch passenger-status
watch passenger-memory-stats
then install and run htop
I did a quick search and I think I found the thing your looking for. He uses a script which runs off "passenger-status" as John Topley said. http://blog.slowb.ro/2013/06/18/add-passenger-status-to-monitoring-on-zenoss/