Web Hosting Talk







View Full Version : How to show server status ???


hoot
02-21-2002, 06:06 PM
Hi,
I have 2 servers with 2 different suppliers. And I have had an idea but I don't know how to do it :
1) I would like to set up my main site so that when server 1 is down server 2 takes over to show the site
2)On this page I would like to have a status bar with the status of each server :
Server one would ping for exaple every 15 minutes server 2 and if server 2 goes down it would ping it every 5 minutes untill it comes up again and in the status say that it is down. Ans server 1 should send me an E.mail to say that server one went down and another one when it's up again.

Also how could you show the server load etc... (I've got a plesk server and a raq).

Hoot

vselvara
02-21-2002, 07:21 PM
There is something called ExtendedStatus in apache. But what you will need is some hardware based load balancing solution with fail-over. These setups can be expensive.

hoot
02-21-2002, 07:37 PM
For the server load both the plesk CP and cobalt pannell show this but I would like to show this on my site and not behing passwords...

Isn't there some sort of script (perl, php etc ... ) that can pong an IP ?

hoot

Choppy
02-21-2002, 09:37 PM
Well i have seen somewhere im not sure were heaps of php scripts that give you server stats from some of the talented people around wht forum...but it is in this forum so go take a look...

and also over the two boxs that you have, maybe do this using your name servers instead of extra equipment?

guessing that for each box you have diffrent name server e.g

ns1.yourbox.com
ns2.yorbox.com is

are for one server
and

ns3.yourbox.com
ns4.yourbox.com is
is on the other server

have on your site ns1.yourbox.com and ns3.yourbox.com on your domain name for your site!

If this is just stupid and wont work, im sorry but at least im trying to help... :)

hoot
02-22-2002, 05:50 PM
Thanks, I had already thought of doing this, but you've just confermed what I thought !
ANyone know of any good scripts for doing what I need (stats for whole server etc...)

Hoot