Monitoring websites

  • Thread starter Thread starter rkbnair
  • Start date Start date
R

rkbnair

How can we monitor whether certain website is working or not. We want to do
this every minute. Can we write something, or should go for thirdparty
vendors?
 
Obviously you need to monitor it from another computer than your server.
Preferably even from different building....

Just write an application that would hit your ASPX page with WebRequest
http://www.west-wind.com/presentations/dotnetWebRequest/dotnetWebRequest.htm

That page need to attempt to connect to database and/or any other external
resource you using and do
Response.Write("OK")
Response.End()

Your monitoring software need to check if it comes back with 200 HTTP status
message and has OK in it.


A lot of third party vendors simply ping the server and will not notice that
DB is down for example.


George
 
Great !

Thanks for the help.

George Ter-Saakov said:
Obviously you need to monitor it from another computer than your server.
Preferably even from different building....

Just write an application that would hit your ASPX page with WebRequest
http://www.west-wind.com/presentations/dotnetWebRequest/dotnetWebRequest.htm

That page need to attempt to connect to database and/or any other external
resource you using and do
Response.Write("OK")
Response.End()

Your monitoring software need to check if it comes back with 200 HTTP status
message and has OK in it.


A lot of third party vendors simply ping the server and will not notice that
DB is down for example.


George
 
What kind of application I have to write though?

If it is an asp.net application, how can I make it run automatically, say in
every 10 minutes? What about a Windows Service?
 
SCOM looks promising. However, we have to buy the whole thing for just to
check whether the site is ok.
 
Any kind you can write will do :)
Windows Service is preferable. But regular appliation will do as well. Put
it on schedule Control Panel/Scheduled Tasks
It depends on how you want to react if server is down..... If you want to
get paged write a windows service, if you want to see pop-up on your home
computer write a regular app.

George.
 
OK, now I understand.

Thanks a lot.

George Ter-Saakov said:
Any kind you can write will do :)
Windows Service is preferable. But regular appliation will do as well. Put
it on schedule Control Panel/Scheduled Tasks
It depends on how you want to react if server is down..... If you want to
get paged write a windows service, if you want to see pop-up on your home
computer write a regular app.

George.
 
Back
Top