473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

c# app to check web status...

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

Feb 12 '07 #1
10 6620
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
TRecently the host for our website has been going down for unknown
Treasons like three or four times a week, which obviously means that
Twe
Tare loosing business during the down time.
TAny one know ideas how I can check our site status with a c#
Tapplication every few minutes or so to keep a log of information
Tabout
Tthe "health" of our website?
TAny help is appreciated.
TThanks,
TTrint
---
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
Feb 12 '07 #2
On Feb 12, 9:21 am, Michael Nemtsev <nemt...@msn.comwrote:
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

TRecently the host for our website has been going down for unknown
Treasons like three or four times a week, which obviously means that
Twe
Tare loosing business during the down time.
TAny one know ideas how I can check our site status with a c#
Tapplication every few minutes or so to keep a log of information
Tabout
Tthe "health" of our website?
TAny help is appreciated.
TThanks,
TTrint
---
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

Feb 12 '07 #3
Hi,

"trint" <tr***********@gmail.comwrote in message
news:11**********************@k78g2000cwa.googlegr oups.com...
| 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
Feb 12 '07 #4
On Feb 12, 9:58 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
Hi,

"trint" <trinity.sm...@gmail.comwrote in message

news:11**********************@k78g2000cwa.googlegr oups.com...
| 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

Feb 12 '07 #5
Hello Trint,

TOk, if I can prove to our host that our site is not always up, our
Tcompany should get a refund.
THow can I get a result from "http://oursite.com" in a log taken every
T5 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) Michelangelo
Feb 12 '07 #6
"trint" <tr***********@gmail.comwrote in message
news:11**********************@k78g2000cwa.googlegr oups.com...
On Feb 12, 9:58 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
>Hi,

"trint" <trinity.sm...@gmail.comwrote in message

news:11**********************@k78g2000cwa.googleg roups.com...
| 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.
Feb 12 '07 #7
On Feb 12, 12:18 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
"trint" <trinity.sm...@gmail.comwrote in message

news:11**********************@k78g2000cwa.googlegr oups.com...


On Feb 12, 9:58 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
Hi,
"trint" <trinity.sm...@gmail.comwrote in message
>news:11**********************@k78g2000cwa.googleg roups.com...
| 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.

Feb 12 '07 #8
Hi,

"trint" <tr***********@gmail.comwrote in message
news:11**********************@k78g2000cwa.googlegr oups.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 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
Feb 12 '07 #9
On Feb 12, 1:29 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
Hi,

"trint" <trinity.sm...@gmail.comwrote in message

news:11**********************@k78g2000cwa.googlegr oups.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 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

Feb 12 '07 #10
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

On Feb 12, 5:57 am, "trint" <trinity.sm...@gmail.comwrote:
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

Feb 14 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dakanali | last post by:
I have a previous form which user search if there is a domain name. Give the domain name and in xml send the data from domainName=rewuest.form("domainname") to the specify url which is below and i...
2
by: Doug Baroter | last post by:
Hi, DDLs and DMLs: create table #job (jobID int identity(1,1) primary key, jobName varchar(25) unique not null, jobEndDate dateTime, jobComplete bit default(0), check (( is null and = 0) OR (...
15
by: tabonni | last post by:
I want to check each button groups and save the checked value into a 2 dimensional array. But, it doesn't work. Could anyone tell me what's wrong with my code. My code is as follow: <html>...
2
by: Karl Roes | last post by:
Thanks Turtle, but ... what for ? Could you please explain a little more. I am wanting to know the status of all check boxes in a continuous form ie. all are 'ticked'. MacDermott wrote - ...
0
by: Fossie | last post by:
Hi, I need to check that someone signing up is listed in an xml file. I am using a customer membership provider for Access and trying to integrate the xml check into that. Am I on the right track?...
4
by: John Salerno | last post by:
My code is below. The main focus would be on the OnStart method. I want to make sure that a positive integer is entered in the input box. At first I tried an if/else clause, then switched to...
16
by: Brian Tkatch | last post by:
Is there a way to check the order in which SET INTEGRITY needs to be applied? This would be for a script with a dynamic list of TABLEs. B.
1
by: Spectre1337 | last post by:
Hello, it seems like the check constraint validation of MS SQL Server Management Studio express is horribly, horribly broken. Either that or I'm using it wrong. I hope it's the latter. I'm...
1
by: polycom | last post by:
Hi, I am coding a mysql health check script. The logic is to execute the commands (only once)show status,show slave status,show variables and fetch the variable name and value in a hash refer or...
0
by: Edwin.Madari | last post by:
updated creature running in its own thread will get you started. try it foryourself, change sleep times per your need. import os, sys, threading, time class Creature: def __init__(self,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.