473,396 Members | 2,039 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,396 software developers and data experts.

Checking server status

Hi all,

Ok - minor problem - looking for work-a-rounds...

I want to offer on our organisations intranet a support site for our
webmasters, one of the features I'd like to add is a server status page.

Currently webmasters use MS Frontpage to connect from their local PC to our
development servers, work on their sites, then publish from there to our
live servers.

I have found an ASP component that can PING a server(s) however whilst
normally this would be the ideal solution, are organisations firewall
currently has PING blocked, I have spoken to the person resonsible for the
firewall in the hope that he maybe able to unblock it for specific servers
within our organsations, thus allowing me to check whether the servers are
up or down, but I expect the 'block' is probably a blanket block, ie all or
nothing, so its probably unlikely it'll be changed...

So, there's the problem - has anyone got any ideas how I could check using
ASP whether or not its possible to talk to another server without using
PING?

I appreciate that just because a server is 'up' it doesnt necessarily mean
that everything is ok with it, or that they would be able to publish their
websites, but its primarily for a "its probably ok" kinda thing...

My only thought so far would be to place a file on each server, like a
config file, and then on the support site, the server status page would have
to try and retrieve that file, perhaps using the XML HTTP thingy? To do
this I guess I'd need some kinda time out functionality though so that it
doesnt a) try for ever, b) just return a crappy error message after about 2
minutes when it bombs out...

I personally dont think this is the best solution, but it might work, if
anyone has anything better I would be glad to hear from you.

The support site is primarily going to be written in asp.net - which I know
this group isn't for, however I am happy to use a vanilla ASP solution for
this, as I am more familiar with that anyway...

Thanks in advance for any/all help.

Regards

Rob
Jul 19 '05 #1
1 2283
Rob Meade wrote on 01 apr 2004 in
microsoft.public.inetserver.asp.general:
So, there's the problem - has anyone got any ideas how I could check
using ASP whether or not its possible to talk to another server
without using PING?


load a small image using xmlhttp like this:

<%
image = "http://www.servertotest.com/verysmall.gif"
set xmlhttp = server.CreateObject("MSXML2.ServerXMLHTTP")
on error resume next
xmlhttp.open "GET", url, false
xmlhttp.send ""
if err.number <> 0 then
response.write image & " not found, server must be offline"
else
response.write image & " found, server online"
end if
on error resume 0
set xmlhttp = nothing
%>

Not tested !! Please tell us if it realy works.

See: <http://www.aspfaq.com/show.asp?id=2173`>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

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

Similar topics

2
by: Marc S. Gibian | last post by:
I am putting together a Perl tool to manage a large set of tasks related to building a rather complex set of software. One of the goals for moving to Perl is to provide very rigorous error checking...
5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
4
by: Phil Grimpo | last post by:
I had previously explained this problem in a different thread, but now that I have an IISState log, I figured I'd re-start the thred. My situation and the log are following... I have a very odd...
1
by: MSDN Account | last post by:
We have web site that used the IIS ResKit tool MSWC.PermissionChecker to check file permissions. The web site has been upgraded and that upgrade included changing the default server side language...
4
by: Emilio | last post by:
Hi, I have a form that contains various server validation controls, the submit button will either open a popup box or a popup window on the client-side click event. The question is, how do I...
3
by: Moe Sizlak | last post by:
Hi, Can I check a checkbox by default based on the value returned from a database? for example if the value (dr("frm7value")) returned from a db field is "YES" how can I check the checkbox by...
2
by: Maziar Aflatoun | last post by:
Hi everyone, I am reading and displaying data rows from my database where the first column contains the Status checkbox. I like to enable my users to change the status of individual rows by...
19
by: jeremyz | last post by:
Hi all, I am not a developer, but I work with several and am posting this for them. We are trying to determine whether it is possible to check the size of a file before a user uploads it. ...
7
by: darrel | last post by:
I swear I've read you can do this somewhere before, but don't recall where or what it'd even be called to do the correct googling. What I've been asked to do is make a 'dashboard' app that checks...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.