Script to check Apache

KevinO kevin at kevino.org
Thu Apr 17 16:05:34 MST 2008


Joshua Zeidner wrote:
> On Thu, Apr 17, 2008 at 3:57 PM, KevinO <kevin at kevino.org> wrote:
>> Joshua Zeidner wrote:
>>  > On Thu, Apr 17, 2008 at 3:35 PM, Joshua Zeidner <jjzeidner at gmail.com> 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" user at domain.com
> 
>  my snarky response: the server may be up but network may be down.
> 
If the local net is down, you're not going to check anything remote nor send an email anywhere.
If the remote network is down, the remote website is down.
-- 
KevinO


More information about the PLUG-discuss mailing list