Re: Script to check Apache

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Joshua Zeidner
Date:  
To: Main PLUG discussion list
Subject: Re: Script to check Apache
On Thu, Apr 17, 2008 at 3:57 PM, KevinO <> wrote:
> Joshua Zeidner wrote:
> > On Thu, Apr 17, 2008 at 3:35 PM, Joshua Zeidner <> wrote:
> >> Im going to go with the deceptively simple approach:
> >>
> >> $ps -A | grep httpd | wc -l
> >
> > in the case of apache 2 swap 'httpd' for 'apache'.
> >
> > -jmz
> >
> >
> $ wget -qO /dev/null http://www.google.com || echo | mail -s "Website is down"


my snarky response: the server may be up but network may be down.

-jmz


>
> --
>
>
> KevinO
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>




--

- http://www.joshuazeidner.com/
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss