c# app to check web status...

  • Thread starter Thread starter trint
  • Start date Start date
T

trint

Recently the host for our website has been going down for unknown
reasons like three or four times a week, which obviously means that we
are loosing business during the down time.
Any one know ideas how I can check our site status with a c#
application every few minutes or so to keep a log of information about
the "health" of our website?
Any help is appreciated.
Thanks,
Trint
 
Hello Trint,

Check IIS logs, if they even is turned on.
Then collect and analyze DBG files

I'd recommend to read:

- http://msdn2.microsoft.com/en-us/library/ms954590.aspx
- http://support.microsoft.com/kb/893657
- this http://msdn2.microsoft.com/en-us/library/ms972959.aspx


T> Recently the host for our website has been going down for unknown
T> reasons like three or four times a week, which obviously means that
T> we
T> are loosing business during the down time.
T> Any one know ideas how I can check our site status with a c#
T> application every few minutes or so to keep a log of information
T> about
T> the "health" of our website?
T> Any help is appreciated.
T> Thanks,
T> Trint
---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangel
 
Hello Trint,

Check IIS logs, if they even is turned on.
Then collect and analyze DBG files

I'd recommend to read:

-http://msdn2.microsoft.com/en-us/library/ms954590.aspx
-http://support.microsoft.com/kb/893657
- thishttp://msdn2.microsoft.com/en-us/library/ms972959.aspx

T> Recently the host for our website has been going down for unknown
T> reasons like three or four times a week, which obviously means that
T> we
T> are loosing business during the down time.
T> Any one know ideas how I can check our site status with a c#
T> application every few minutes or so to keep a log of information
T> about
T> the "health" of our website?
T> Any help is appreciated.
T> Thanks,
T> Trint
---
WBR, Michael Nemtsev [C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

I still want to check it with a c# app every 5 minutes and log its
status if you have any info on doing that.
Thanks,
Trint
 
Hi,

| Recently the host for our website has been going down for unknown
| reasons like three or four times a week, which obviously means that we
| are loosing business during the down time.
| Any one know ideas how I can check our site status with a c#
| application every few minutes or so to keep a log of information about
| the "health" of our website?

The simplest would be a window service grabbing the home page every few
minutes. Of course try to run it from a machine that is always on.

You could send you an email or osmething.

OF course this will not solve your problem, I advise you to concentrate in
finding why is your website going down.
 
Hi,


| Recently the host for our website has been going down for unknown
| reasons like three or four times a week, which obviously means that we
| are loosing business during the down time.
| Any one know ideas how I can check our site status with a c#
| application every few minutes or so to keep a log of information about
| the "health" of our website?

The simplest would be a window service grabbing the home page every few
minutes. Of course try to run it from a machine that is always on.

You could send you an email or osmething.

OF course this will not solve your problem, I advise you to concentrate in
finding why is your website going down.

Ok, if I can prove to our host that our site is not always up, our
company should get a refund.
How can I get a result from "http://oursite.com" in a log taken every
5 minutes?
Thanks,
Trint
 
Hello Trint,

T> Ok, if I can prove to our host that our site is not always up, our
T> company should get a refund.
T> How can I get a result from "http://oursite.com" in a log taken every
T> 5 minutes?

use HttpWebResponse.GetResponseStream for this
but you need to run this on the server where your site locates, not from
the external machine

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangel
 
trint said:
Ok, if I can prove to our host that our site is not always up, our
company should get a refund.
How can I get a result from "http://oursite.com" in a log taken every
5 minutes?
Thanks,
Trint


And how is that going to prove the hosting *site* is down?
- How much network HW/SW is there sitting in between you (the client) and your web
application, for which the hosting company cannot (and will not) take any responsibility but
can go down at any rate.
- If you are connecting to "http://oursite.com", you are effectively connecting to YOUR
application right? The host will *never* guarantee *your* application to available at any
rate, do they?

I don't believe that your hosting company guaranteed 7X24 availability of the *Webserver*
either, and if they did, you should carefully read your contract to see what they
effectively guaranteed to be available. If the host contractually guaranteed xx% up-time,
they should also report the up-time of the "items" specified in the contract.

Note that you did not mention the total down-time either, you only said it went down 3-4
times a week.

Willy.
 
And how is that going to prove the hosting *site* is down?
- How much network HW/SW is there sitting in between you (the client) and your web
application, for which the hosting company cannot (and will not) take any responsibility but
can go down at any rate.
- If you are connecting to "http://oursite.com", you are effectively connecting to YOUR
application right? The host will *never* guarantee *your* application to available at any
rate, do they?

I don't believe that your hosting company guaranteed 7X24 availability of the *Webserver*
either, and if they did, you should carefully read your contract to see what they
effectively guaranteed to be available. If the host contractually guaranteed xx% up-time,
they should also report the up-time of the "items" specified in the contract.

Note that you did not mention the total down-time either, you only said it went down 3-4
times a week.

Willy.- Hide quoted text -

- Show quoted text -

I will try the HttpWebResponse.GetResponseStream.
Thanks,
Trint
ps- I will keep you posted.
 
Hi,


| Ok, if I can prove to our host that our site is not always up, our
| company should get a refund.
| How can I get a result from "http://oursite.com" in a log taken every
| 5 minutes?
| Thanks,
| Trint

And how your log can prove that? Or at least convince anybody to give you
back money?

IMHO if you are unhappy with your provider for whatever reason just change
of provider and solve your problem.
IF it's really true that you are offline from time to time you could lost
less money by changing of provider right now than by staying there until you
get some money back from the provider
 
Hi,



| Ok, if I can prove to our host that our site is not always up, our
| company should get a refund.
| How can I get a result from "http://oursite.com" in a log taken every
| 5 minutes?
| Thanks,
|Trint

And how your log can prove that? Or at least convince anybody to give you
back money?

IMHO if you are unhappy with your provider for whatever reason just change
of provider and solve your problem.
IF it's really true that you are offline from time to time you could lost
less money by changing of provider right now than by staying there until you
get some money back from the provider

Ok, all I want is this:
If our website goes down, we need to be alerted immediately so that we
can do something about it or call
our host service to do something. Our site was down once this year,
it was yesterday for several hours.
We estimated that the loss was around $4,700.00 because of our typical
income on each Sunday.
Thanks,
Trint
 
I would start with:

a) not using a language that is not battle-tested
b) CSharp is beta software still
c) MS is more interested in selling us a new version than fixing bugs


MS has been abusing developers and users in this fashion for years; it
is time to move on


I would suggest PHP, 70% of all webpages _EVER WRITTEN_ could not be
wrong
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top