PC Review


Reply
Thread Tools Rate Thread

c# app to check web status...

 
 
trint
Guest
Posts: n/a
 
      12th Feb 2007
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

 
Reply With Quote
 
 
 
 
Michael Nemtsev
Guest
Posts: n/a
 
      12th Feb 2007
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


 
Reply With Quote
 
trint
Guest
Posts: n/a
 
      12th Feb 2007
On Feb 12, 9:21 am, Michael Nemtsev <nemt...@msn.com> wrote:
> 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

 
Reply With Quote
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      12th Feb 2007
Hi,

"trint" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| 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.


--
Ignacio Machin
machin AT laceupsolutions com


 
Reply With Quote
 
trint
Guest
Posts: n/a
 
      12th Feb 2007
On Feb 12, 9:58 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.com> wrote:
> Hi,
>
> "trint" <trinity.sm...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
> | 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.
>
> --
> Ignacio Machin
> machin AT laceupsolutions com


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

 
Reply With Quote
 
Michael Nemtsev
Guest
Posts: n/a
 
      12th Feb 2007
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


 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      12th Feb 2007
"trint" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Feb 12, 9:58 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
> laceupsolutions.com> wrote:
>> Hi,
>>
>> "trint" <trinity.sm...@gmail.com> wrote in message
>>
>> news:(E-Mail Removed)...
>> | 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.
>>
>> --
>> Ignacio Machin
>> machin AT laceupsolutions com

>
> 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.


 
Reply With Quote
 
trint
Guest
Posts: n/a
 
      12th Feb 2007
On Feb 12, 12:18 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> "trint" <trinity.sm...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
>
>
> > On Feb 12, 9:58 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
> > laceupsolutions.com> wrote:
> >> Hi,

>
> >> "trint" <trinity.sm...@gmail.com> wrote in message

>
> >>news:(E-Mail Removed)...
> >> | 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.

>
> >> --
> >> Ignacio Machin
> >> machin AT laceupsolutions com

>
> > 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.- Hide quoted text -
>
> - Show quoted text -


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

 
Reply With Quote
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      12th Feb 2007
Hi,

"trint" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

| 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


--
Ignacio Machin
machin AT laceupsolutions com


 
Reply With Quote
 
trint
Guest
Posts: n/a
 
      12th Feb 2007
On Feb 12, 1:29 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.com> wrote:
> Hi,
>
> "trint" <trinity.sm...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> | 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
>
> --
> Ignacio Machin
> machin AT laceupsolutions com


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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check the status of the UDP port status tsgd84 Windows Networking 0 2nd Jul 2008 02:35 PM
Check Box Status =?Utf-8?B?TGVl?= Microsoft Excel Programming 1 20th Apr 2007 07:14 PM
Check Box Status =?Utf-8?B?VG9t?= Microsoft Excel Programming 2 16th Feb 2005 11:17 PM
How to check the status of an UPS? =?Utf-8?B?V29vIE11biBGb29uZw==?= Microsoft VB .NET 2 5th Nov 2004 10:03 AM
How can I check the status of an email? Bruccce Microsoft Outlook VBA Programming 0 1st Aug 2003 10:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:23 AM.