Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring Apache web server status

Monitoring Apache web server status

I need to be able to monitor the status of an Apache web server from a remote system on the Internet. Does anyone know of a way to check if a web site is up or down by using a query (like HTTP GET command) from another system on the Internet? Can I use a Perl or shell script to do this? If the web site goes down then I need the script to send an email to page me? Thank you for your help.
6 REPLIES
Marco Paganini
Respected Contributor

Re: Monitoring Apache web server status

Hello Paul,

Piece of cake. Just use wget like that:

wget YOUR_URL_GOES_HERE >/dev/null 2>&1 && echo "OK"

Just change the "echo OK" command for whatever you need, like a program that sends you mail or something.

Regards,
Paga

Keeping alive, until I die.
Marco Paganini
Respected Contributor

Re: Monitoring Apache web server status

Oops...

Or even better, you may want to send email when your server is NOT OK. :)

wget YOUR_URL_GOES_HERE >/dev/null 2>&1 || echo "Webserver is down" | mail youraddress@goeshere.com
Keeping alive, until I die.
harry d brown jr
Honored Contributor

Re: Monitoring Apache web server status

Take a look at BigBrother at http://www.bb4.com


live free or die
harry

Live Free or Die
Marco Paganini
Respected Contributor

Re: Monitoring Apache web server status

...

Or:

Angel Network Monitor: http://www.paganini.net/angel (I wrote it myself, shameless plug here. :))

Netsaint: http://www.netsaint.org (very complete, but complex to install)
Keeping alive, until I die.
Volker Borowski
Honored Contributor

Re: Monitoring Apache web server status

Big Brother seems ok to me.
If you like to have decent Web-Statistics as well, check out Webtrends:

http://www.webtrends.com

Volker

Re: Monitoring Apache web server status

Does anyone know if "wget" is available for HP-UX?