OpenNTF.org - Web Site Checker - E-mails you
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
About This Code
Brief Description:
Web Site Checker - E-mails you if web site is down 
Rating:
Not Rated Yet 
Contributor:
Jeff Blackadar 
Category:
Application, Java 
Type:
Webdevelopment 
Notes Version:
R6.x 
Last Modified:
24 May 2006 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
This small application verifies that web servers are up and serving content using scheduled agents. If the site is down, the app e-mails support personnel.

The app has a view of URLCheck documents. Each document represents a web server or web site to be checked. The document contains the protocol, address and port of each site to be checked as well as a list of e-mail addresses to be contacted if the site is down as well as some advice about what type of error it is. This app has helped me respond to web outtages much faster. (This can be used to check that FTP servers are functioning as well)

The code consists of a scheduled Java agent, a configuration form (and documents) as well as a view. The app expects to have an agent log called pcheck2alog.nsf in the same directory as the application. This name (and path) can be changed in the code.

Usage / Example
* Put the .nsf on your server
* Set up a configuration document for your website, enter a line of text that can be found on a page of your website.
* Create the agent log database pcheck2alog.nsf in the same directory
* Schedule the agent to run (I use once every 10 minutes)
Code Attachments
webcheck.nsf (448 Kbytes)
 Comments

No documents found

 Add your comment!