Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Server Status Script

Status
Not open for further replies.

FateFirst

Programmer
Apr 15, 2002
212
GB
Heya guys/gals.

Does anyone 'have/know where to find/got an idea' on how best to check if a server is up and running with a *basic* (sorry to use that word) ASP script. Maybe not the actual script but some ideas that I can go away with and code myself...my minds just a little blank.

I dont want one that runs on the actual server I would like one that runs on another server and checks several others for a response. Naturally I cant do it based on pings (ive read that somewhere) as the firewall doesnt except/return ping responses.

Maybe just try to access it in someway and if it receives a response of any kind then assume its all OK. Not the most efficient way but its something that a friend of mine wants.

Any help would be appreciated.

Thanks :)

- FateFirst
 
If the remote machine is also a web server you could use the server-safe version of the XMLHTTP object to request a web page.
 
If the firewall doesn't allow pings through, is there any service it does allow through?

Some other options include:
do a simple SNMP GET if SNMP is enabled on the servers (this would also allow some other options, like getting the system uptimes rather than just displaying present/not)

Attempt to connect on port 445 and 139 (windows sharing). If a connection is established then the machine is alive.

Both of these methods would require you to get an external component for either SNMPGET or Telnet.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top