Solved

Website -- Monitoring Service ?

Posted on 2012-03-23
2
341 Views
Last Modified: 2012-03-26
I currently use http://www.siteuptime.com 
which shows when a webpage is DOWN, but does
not notify me when a webpage displays
an error message.

What cheap solution can
I use that offers this ?
0
Comment
Question by:finance_teacher
2 Comments
 
LVL 5

Assisted Solution

by:Sjizzel
Sjizzel earned 250 total points
ID: 37756865
PRTG might be something for you.

http://www.paessler.com/prtg
0
 
LVL 6

Accepted Solution

by:
worthyking1 earned 250 total points
ID: 37760811
Create a custom error routine to email yourself an alert (or email to MMS to text yourself the alert) when an error occurs in your code.

Couple ways you can do this:

1. Write a basic error checking and emailing function which would be stored in a common include file, then call the function (and pass the error condition to it) from error-checking points throughout your code. This does mean, of course, that you'll need to call the error-checking function after each DB call etc. which means editing all of your code. Here's a good starting point for that method: http://www.4guysfromrolla.com/webtech/060399-1.shtml

If that's too much work for you then...

2. In IIS setup a custom 500 error page, then grab the error condition on that page and email/text the details to yourself.  Your custom 500 error page can grab all the salient info with something like this:

Set objASPError = Server.GetLastError

  Dim strProblem
  strProblem = "ASPCode: " & Server.HTMLEncode(objASPError.ASPCode) & vbCrLf
  strProblem = strProblem & "Number: 0x" & Hex(objASPError.Number) & vbCrLf
  strProblem = strProblem & "Source: [" & Server.HTMLEncode(objASPError.Source) & "]" & vbCrLf
  strProblem = strProblem & "Category: " & Server.HTMLEncode(objASPError.Category) & vbCrLf
  strProblem = strProblem & "File: " & Server.HTMLEncode(objASPError.File) & vbCrLf
  strProblem = strProblem & "Line: " & CStr(objASPError.Line) & vbCrLf
  strProblem = strProblem & "Column: " & CStr(objASPError.Column) & vbCrLf
  strProblem = strProblem & "Description: " & Server.HTMLEncode(objASPError.Description) & vbCrLf
  strProblem = strProblem & "ASP Description: " & Server.HTMLEncode(objASPError.ASPDescription) & vbCrLf
  strProblem = strProblem & "Server Variables: " & vbCrLf & Server.HTMLEncode(Request.ServerVariables("ALL_HTTP")) & vbCrLf
  strProblem = strProblem & "QueryString: " & Server.HTMLEncode(Request.QueryString) & vbCrLf
  strProblem = strProblem & "URL: " & Server.HTMLEncode(Request.ServerVariables("URL")) & vbCrLf
  strProblem = strProblem & "Content Type: " & Server.HTMLEncode(Request.ServerVariables("CONTENT_TYPE")) & vbCrLf
  strProblem = strProblem & "Content Length: " & Server.HTMLEncode(Request.ServerVariables("CONTENT_LENGTH")) & vbCrLf
  strProblem = strProblem & "Local Addr: " & Server.HTMLEncode(Request.ServerVariables("LOCAL_ADDR")) & vbCrLf
  strProblem = strProblem & "Remote Addr: " & Server.HTMLEncode(Request.ServerVariables("LOCAL_ADDR")) & vbCrLf
  strProblem = strProblem & "Time: " & Now & vbCrLf

Then invoke your favorite sendmail function (CDONTS or Persists or whatever) and send the strProblem string to yourself via email/text.

Not sure what version of IIS you're on so I can't give you step-by-step on how to setup custom error pages, but I assume you already know how to do that. if not just google "setup custom error page in IIS [insert your IIS version number here]"

Hope that helps!
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
The viewer will learn how to count occurrences of each item in an array.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question