httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilesh Govindarajan <>
Subject Re: [users@httpd] httpd to get process list
Date Thu, 27 May 2010 07:47:41 GMT
On Thu, May 27, 2010 at 12:42 PM, James Corteciano
<> wrote:
> Hi All,
> I have a nagios server to monitor the remote apache server and automatically
> restarting the service if it is detected unreachable. Now, in times of
> apache down, I just want to get the processes list or any means that could
> help during diagnostic operation. Can anyone recommend any good apps or
> maybe script for this type of scenario?
> Thank you.
> Regards,
> James

You could use a script which runs every minute or so to check if
apache is dead and dump the processlist at that instant into a file.
Though it may have a lot of performance overhead. You've been warned.
The script:


ps -C httpd &> /dev/null
if [ $? -ne 0 ]; then
  ps -A > /processlit

Nilesh Govindarajan
Twitter: nileshgr

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message