Forum Moderators: phranque

Message Too Old, No Replies

apache monitoring tool

urgent

         

LinuxNewB

4:14 am on Jun 14, 2007 (gmt 0)

10+ Year Member



Hello Dudes,
Is there any tool to monitor the performance of apache? or any site(economical) to monitor my apache performence and indicate me any failure occurs?Please Help me.
I need it urgent.Hope your fast response.Thanks in advance.

StupidScript

6:36 pm on Jun 14, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's a simple shell script (run it under cron every minute or so) that checks to see whether Apache is still running and, if not, restarts it:

#!/bin/bash
if [! "$(/sbin/pidof httpd)" ]
then
apachectl start
fi

<edit>
Set your cronjob to email you the output so you know when Apache has been restarted.
</edit>

[edited by: StupidScript at 6:41 pm (utc) on June 14, 2007]