Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Server status check in web page

Reply
Thread Tools

Server status check in web page

 
 
CiRcUiT
Guest
Posts: n/a
 
      02-04-2004
I have been trying to figure out how to have a graphic on my
main site to show my home server status for the people who
use my voice and other server applications that I run on it.

I tried making an image of an "online" graphic with a
background of an "offline" graphic and putting the "online"
graphic on my home html server and it sort of works but if
the server is offline the graphic is shown as broken. The
broken icon blocks the "offline" graphic so...

Is there some easier way to do this kind of thing?

I use Macromedia Dreamweaver MX and Fireworks MX with some
minor hand coding.

Thanks for your help!
--
ttyl,

CiRcUiT -=- J. Codling -=- www.jcodling.com

*This message represents the official opinions of the voices
in my head*


 
Reply With Quote
 
 
 
 
Ethan Schlenker
Guest
Posts: n/a
 
      02-05-2004
On 2004-02-04 15:15:29 -0800, "CiRcUiT" <jcodlingATjcodlingDOTcom> said:

> I have been trying to figure out how to have a graphic on my
> main site to show my home server status for the people who
> use my voice and other server applications that I run on it.
>
> I tried making an image of an "online" graphic with a
> background of an "offline" graphic and putting the "online"
> graphic on my home html server and it sort of works but if
> the server is offline the graphic is shown as broken. The
> broken icon blocks the "offline" graphic so...
>
> Is there some easier way to do this kind of thing?


Take your current solution one step further, and put both images in the
background of divs. Place the online div over the offline div. then if the
online image isn't available, the offline image will show through (assuming
a 50 by 50 image):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Untitled</title>
<style type="text/css" media="screen">
#online
{
background-image: url(http://www.your-server.com/online.jpg);
height: 50px;
width: 50px;
}

#offline
{
background-image: url(offline.jpg);
height: 50px;
width: 50px;
}


</style>
</head>
<body>

<div id="offline"><div id="online"></div></div>

</body>
</html>


Only tested in one browser, but it seems to work just fine.

Ethan
--
Datarealm Internet Services, Inc.
Shared Hosting: http://www.serve.com
Dedicated Hosting: http://www.rackmounted.com
 
Reply With Quote
 
 
 
 
CiRcUiT
Guest
Posts: n/a
 
      02-05-2004
Thank you very much Ethan. I cut and pasted the relevant
parts in the appropriate places and changed the files and
sizes. It works perfectly!

It looks like I should look into cascading style sheets.
They seem to be so useful. (Not to mention that this is the
way of the future...)

CiRcUiT -=- J. Codling -=- www.jcodling.com

*This message represents the official opinions of the voices
in my head*

"Ethan Schlenker" <> wrote in message
news:200402041834388930%ethan@servecom...
[..snip..]


 
Reply With Quote
 
Dennis M. Marks
Guest
Posts: n/a
 
      02-10-2004
I have read the following message from "CiRcUiT"
<jcodlingATjcodlingDOTcom>
and have decided to lend my vast knowledge.

The writer said:
> I have been trying to figure out how to have a graphic on my
> main site to show my home server status for the people who
> use my voice and other server applications that I run on it.
>
> I tried making an image of an "online" graphic with a
> background of an "offline" graphic and putting the "online"
> graphic on my home html server and it sort of works but if
> the server is offline the graphic is shown as broken. The
> broken icon blocks the "offline" graphic so...
>
> Is there some easier way to do this kind of thing?
>
> I use Macromedia Dreamweaver MX and Fireworks MX with some
> minor hand coding.
>
> Thanks for your help!
> --
> ttyl,
>
> CiRcUiT -=- J. Codling -=- www.jcodling.com
>
> *This message represents the official opinions of the voices
> in my head*
>
>
>


and my reply is:
Try playing around with the "onLoad=do-something" event in the img tag.
It seems to work in some browsers. If the image never loads the onLoad
event doesn't take place and no image is displayed.

--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
nico1980 nico1980 is offline
Junior Member
Join Date: Sep 2009
Posts: 2
 
      09-26-2009
I found a nice php script here:

bluman.wordpress.com/2009/09/25/server-status/

It can be used to display the status from a list of servers. The layout can be easily customized and you can choose the port that should be scanned.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommend a free 'Status Monitor' or 'Dashboard' to report overnight tasks status? Shug Java 13 12-15-2006 06:22 PM
Recommend a free 'Status Monitor' or 'Dashboard' to report overnight tasks status? Shug C++ 13 12-15-2006 06:22 PM
POST problem - IIS sc-win32-status:64; sc-status:400 saha ASP .Net 0 07-14-2005 07:10 AM
Link to page to check status... NoNoBadDog! Windows 64bit 5 06-01-2005 11:08 PM
How to check server status using InetCtls.Inet? Pius ASP General 0 07-02-2003 01:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57