Script to check Apache

Shawn Badger badger.shawn at gmail.com
Thu Apr 17 10:21:31 MST 2008


I use a product called Zabbix to monitor my servers and services. I used to
just check to see if port 80 or 443 where listing, but now I have my
monitoring software dig down into the site for a specific page. This way I
can test to be sure every aspect of the site is working.



On Thu, Apr 17, 2008 at 12:46 AM, Deepan <codeshepherd at gmail.com> wrote:

> Hi All,
> I am looking for a script to check if Apache is up
> and running, if not the script should send an
> email automatically. The script has to be run from
> a different machine (not from the machine that
> runs apache). So it has to query for a http
> address and if it receives any other reply that
> 200 OK, it should send the email. Can you guys
> suggest on how to go about ? Should I use curl ?
> or wget ? or ping ? I can handle the email part
> and cron part. If you guys have a similar script
> please share it if possible.
> Regards
> Deepan
> Sudoku Solver: http://www.sudoku-solver.net/
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20080417/cbfe3a6c/attachment.htm 


More information about the PLUG-discuss mailing list