Web Hosting Talk







View Full Version : Server status grid on website?


networx
10-18-2006, 04:38 PM
Good afternoon all....

I've been tasked with putting together a server status grid to put on our company's website. Pretty basic, we've got a bunch of servers up and running.

We just want to be able to say if they're up or down.

Been surfing around the forums and support pages but I'm overwhelmed with information for what *seems* like a simple task. If anybody can help get me pointed in the right direction, I would much appreciate it.

rocketcity
10-19-2006, 05:52 PM
Have you looked at Nagios (http://www.nagios.org/) You can use it to monitor the servers and various services and view it all from a browser.

networx
10-19-2006, 05:55 PM
Yes,

we use Nagios to monitor our servers, but it is for internal use. We are looking to build this webpage for public access.

Mark S
10-19-2006, 05:58 PM
Good afternoon all....

I've been tasked with putting together a server status grid to put on our company's website. Pretty basic, we've got a bunch of servers up and running.

We just want to be able to say if they're up or down.

Been surfing around the forums and support pages but I'm overwhelmed with information for what *seems* like a simple task. If anybody can help get me pointed in the right direction, I would much appreciate it.
A php script to see if an IP is listening on a specific port and to return HTML whether or not it is, wouldn't be hard at all.

networx
10-19-2006, 06:01 PM
really? where could I get an example of this...?

hostechsupport
10-19-2006, 08:39 PM
Hello,

You can install the server stats and check if the server uptime.

There is a command to check the server availability:

uptime

You can run this command to check the availability of the server.

Thank you.

Regards,

Mark S
10-19-2006, 08:47 PM
Hello,

You can install the server stats and check if the server uptime.

There is a command to check the server availability:

uptime

You can run this command to check the availability of the server.

Thank you.

Regards,
I have no idea what you mean by that. The PHP or whatever page would be on let's say server W. Server A - V are servers too. How would PHP connect to SSH and even if you did have PHP connect to ssh, why would the CLI uptime command do any good?

I digress..

I'll give you a hint, :), using the following php function may help.
fsockopen

kingofmerit
11-08-2006, 06:31 AM
You can use Server Status 2K script.
It can create HTML code to display running services such as: Server Load, Uptime, HTTP, FTP, SMTP etc.

Jeremy
11-08-2006, 07:06 AM
I would have to say the http://www.status2k.com/ script is pretty neat.

Swelly
11-08-2006, 04:39 PM
Have you tried looking on www.hotscripts.com yet?

scribby
01-10-2007, 12:20 PM
Depending on what you want to do you can use fsockopen to check if a port is open thus online or offline.

If you want to display something such as uptime, you can do an ssh command in php by using system() or exec(). If your php config allows such commands and if you have the correct privileges set for the command you want to use.

HIU-Daniel
01-10-2007, 10:12 PM
write a script making fsocketopen open all the servers. Then if it returns true, make it display a check image, if it returns false make it return an X image.