Go Back   Cloud Computing > Support > Control Panel Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-10, 08:06
BOD Member
 
Join Date: Nov 2010
Posts: 95
Default Server Status Script?

Hello

Actually I am looking for a manual or free script, which will helps me to generate a server status script. I mean one that shows everything, mail server, FTP, MySQL, etc....... On my main server I've Ensim Pro machines running RH 7.3 and I also have couple of cPanel reseller accounts as well.

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-09-10, 04:44
BOD Member
 
Join Date: May 2010
Posts: 149
Default

According to my experience you should consider below script to display your server status. This is simply the core you need to add it more functionality.

Quote:
status.php

Code:


<?php


// To match the location of the status images please change the following URLs
$online = "online.gif";

$offline = "offline.gif";



// Change the address & port

$addr = "$server";

$port = $port;



// No need to change below lines.
$churl = @fsockopen($addr, $port, $errno, $errstr, 20);

if (!$churl) {

header("Location: $offline");

} else {

header("Location: $online");

}

?>



Call the script with an image tag,


Code:


<img src="status.php?server=domain.com&port=80">
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 05:10.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.