Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5945793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:43:53+00:00 2026-05-22T16:43:53+00:00

I have a distributed website (.NET, IIS) that has a dynamic number of servers

  • 0

I have a distributed website (.NET, IIS) that has a dynamic number of servers around the world.

I want to build a [simple] utility which will sit at our home location, and every so often “ping” the web servers to see if they are operational. I will then log this result for each server into the database, to show current status and a history of any detected downtime.

What is the best way to do this? Connect via HTTP from .NET? I want this to be not much code (ideally), and run as a service.

Any links or sample code would be greatly appreciated.

Is this a standard practice? Or do distributed apps typically do something different? (like phone home instead of being pinged).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:43:54+00:00Added an answer on May 22, 2026 at 4:43 pm

    Here is a SO question that is close to yours:

    Best way to test if a website is alive from a C# applicaiton

    Basically, you can check the website status using the following code:

    WebRequest request = WebRequest.Create("http://localhost/myContentSite/test.aspx");
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    if (response == null || response.StatusCode != HttpStatusCode.OK)
    {
       Console.WriteLine("You have a problem");
    }
    

    As for the best way to do it, I would recommend going with a phone-home model if it is possible in your situation. That way you won’t have to care who has been added. They will just automatically show up when they first check in. If, however, you don’t have full control of all of your websites’ code (or if you have already launched them), it would probably be better to go with a centralized monitoring solution that tests the site’s availability. This will reduce the amount of changes you need to make to systems. Finally, if you want to truly check to be sure a site is live, check remotely instead of sending out an “I’m alive” message. This will ensure that the firewall, etc. is also working since a site might be able to send out but it might not be reachable from external networks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a company product (asp.net website) that gets compiled and distributed to our
I have a large distributed program across many different physical servers, each program spawns
The Scenario: We have multiple nodes distributed geographically on which we want to have
Lets say that I have only DHT (distributed hash table) implemented (in Python), and
I have an old iOS app that I never distributed and am now trying
I have an asp.net-mvc3 website using nhibernate and SQL server. I have 2 web
I have a website that allows users to query for specific recipes using various
Bit of a strange question. I have a website which has some pages in
I have a relatively simple case. I basically want to store data about links
we have a website that uses nhibernate and 2nd level cache. We are having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.