Fast way to check if a server is accessible over the network in C#

前端 未结 4 1999
情深已故
情深已故 2020-12-19 03:39

I\'ve got a project where I\'m hitting a bunch of custom Windows Performance Counters on multiple servers and aggregating them into a database. If a server is down, I want

4条回答
  •  余生分开走
    2020-12-19 03:51

    • The "Full-Blown" option would be to install a monitoring tool like SCOM (System Center Operations Manager), this has an SDK you can use to query SCOM for (performance) and maintenance information avout machines being monitored. Might be a bridge to far though....

    • Telnet is another option. Try telnetting to the target machine to see if it responds.

    • Create a small Windows Service that you install on your target machine, have the sys admin stop it when they perform maintenance on the target machine (just use batch file to net stop / net start the service)

提交回复
热议问题