I am making a "health index" site that can display to system admins the health of our web & data servers.
Some of the metrics I am measuring are:
- How much disk space does the server have?
- Is the server on? (can I ping it from my PC)
- Are specific windows services running that I expect?
- Does the web server have access to the internet?
I have written c# functions for 1-3 so far. However, I cannot figure out how to solve #4.
Basically, I want to determine if a remote web server has internet access. I don't want to just ping the server from my computer because that wont prove if it has internet access.
This web server primarily serves an "Intranet" website... so, I can't prove that the server has internet by simply going to the site it serves in a browser.
Anyone know how I can use C# to determine if this remote web server has internet access?
Thanks