UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > cPanel Reseller Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-02-2008, 06:45
Junior Member
 
Join Date: Feb 2008
Location: United Kingdom
Posts: 17
Send a message via MSN to 3:16 Designs
Default Server Status Window

Hi

Just wondering if anyone knows if euk has a server status page or is there a way we can set one up, that we can use on our own websites to show our clients the state of the server etc.
__________________
Carl

3:16 Designs & Services - Bringing the Digital World To Your Fingertips.
Reply With Quote
  #2 (permalink)  
Old 26-02-2008, 07:03
Quality Assurance
 
Join Date: Sep 2007
Posts: 450
Send a message via MSN to eUK-Nick
Default

At this time, EUKHost does not have a server status page on the website. However, we do have tools which help us to monitor every service on each of the servers we have.

As for displaying the status of the services of the server on which your website is hosted, you can see that from cPanel. Showing it on your website is not possible.
__________________
NickG
Quality Assurance & Analysis
EMAIL & MSN : nick@eukhost.com
Reply With Quote
  #3 (permalink)  
Old 26-02-2008, 08:36
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,117
Send a message via MSN to jc8654
Default

You can show a server status like I do on my site: www.checker-support.com. It checks the server and then shows the state of the services. This site is hosted on a different server to one where my clients are hosted so if the main server goes down they can see any problems.
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
  #4 (permalink)  
Old 27-02-2008, 07:43
Junior Member
 
Join Date: Feb 2008
Location: United Kingdom
Posts: 17
Send a message via MSN to 3:16 Designs
Default

thankyou both for your replies I will be visiting that site soon, I know its a bit silly but my clients like to see it,

I dont suppose you fancy sharing the code you use.
__________________
Carl

3:16 Designs & Services - Bringing the Digital World To Your Fingertips.

Last edited by 3:16 Designs : 27-02-2008 at 07:55.
Reply With Quote
  #5 (permalink)  
Old 27-02-2008, 08:35
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,117
Send a message via MSN to jc8654
Default

Sure. If you want a copy of the code for it, drop me a pm.

Jonathan
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
  #6 (permalink)  
Old 27-02-2008, 09:47
new member
 
Join Date: Feb 2008
Posts: 5
Default

If that code is freely available, I wouldn't mind a copy

Cheers in advance

Iain
Reply With Quote
  #7 (permalink)  
Old 27-02-2008, 13:39
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,117
Send a message via MSN to jc8654
Default

I'll sort it out when I get home tonight and point you to where you can get the code.

Jonathan
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
  #8 (permalink)  
Old 27-02-2008, 16:07
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,286
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by jc8654 View Post
I'll sort it out when I get home tonight and point you to where you can get the code.

Jonathan
Is this a collective handout?
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #9 (permalink)  
Old 27-02-2008, 16:09
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,117
Send a message via MSN to jc8654
Default

Might be. I'm still in uni at the minute but I'll sort it before I go swimming tonight!
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
  #10 (permalink)  
Old 27-02-2008, 17:07
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,286
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by jc8654 View Post
Might be. I'm still in uni at the minute but I'll sort it before I go swimming tonight!
That would be much appreciated . In your own time .
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #11 (permalink)  
Old 27-02-2008, 17:15
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,117
Send a message via MSN to jc8654
Default The Code:

What you need to do with this is copy it into a text file and save it as something as .php. I have it as status.php and then when I access www.checker-support.com/status.php I see the status of my main server. To get it onto the main page, I simply use an iframe.

PHP Code:
<?php 
/* 
*   +------------------------------------------------------------------------------+ 
*       CPANEL STATUS SCRIPT                                                                
*   +------------------------------------------------------------------------------+ 
*       Copyright Notice(s)                                                         
*   +------------------------------------------------------------------------------+ 
*       Disclaimer Notice(s)                                                          
*       ex: This code is freely given to you and given "AS IS", SO if it damages      
*       your computer, formats your HDs, or burns your house I am not the one to 
*       blame.                                                                     
*       Moreover, don't forget to include my copyright notices and name.               
*   +------------------------------------------------------------------------------+ 
*       Author(s): Crooty.co.uk (Adam C)                                    
*   +------------------------------------------------------------------------------+ 
*/  

$data .= 
<style> 
td,body 

    font-family: Arial, Helvetica, sans-serif; 
    font-size: 8pt; 
    color: #444444; 

</style> 
<br> 
    <center> 
     <div style=\"border-bottom:1px #999999 solid;width:480;\"><b> 
       <font size='1' color='#3896CC'>Service Status</font></b> 
     </div>  
   </center> 
<br>"


//configure script 
$timeout "1"

//set service checks 
$port[1] = "80";       $service[1] = "Apache";                  $ip[1] =""
$port[2] = "21";       $service[2] = "FTP";                     $ip[2] =""
$port[3] = "3306";     $service[3] = "MYSQL";                   $ip[3] =""
$port[4] = "25";       $service[4] = "Email(POP3)";             $ip[4] =""
$port[5] = "143";      $service[5] = "Email(IMAP)";             $ip[5] =""
$port[6] = "2095";     $service[6] = "Webmail";                 $ip[6] =""
$port[7] = "2082";     $service[7] = "Cpanel";                  $ip[7] =""
$port[8] = "80";       $service[8] = "Internet Connection";     $ip[8] ="google.com"
$port[9] = "2086";     $service[9] = "WHM";                     $ip[9] =""

// 
// NO NEED TO EDIT BEYOND HERE  
// UNLESS YOU WISH TO CHANGE STYLE OF RESULTS 
// 

//count arrays 
$ports count($port); 
$ports $ports 1
$count 1

//beggin table for status 
$data .= "<table width='480' border='1' cellspacing='0' cellpadding='3' style='border-collapse:collapse' bordercolor='#333333' align='center'>"

while(
$count $ports){ 

     if(
$ip[$count]==""){ 
       
$ip[$count] = "localhost"
     } 

        
$fp = @fsockopen("$ip[$count]"$port[$count], $errno$errstr$timeout); 
        if (!
$fp) { 
            
$data .= "<tr><td>$service[$count]</td><td bgcolor='#FFC6C6'>Offline </td></tr>"
        } else { 
            
$data .= "<tr><td>$service[$count]</td><td bgcolor='#D9FFB3'>Online</td></tr>"
            
fclose($fp); 
        } 
    
$count++; 
fclose($fp); 

}  

//close table 
$data .= "</table>"

echo 
$data;
Then it's simply a matter of changing ports or getting rid of any entries you don't want. Now, in the part

PHP Code:
while($count $ports){ 

     if(
$ip[$count]==""){ 
       
$ip[$count] = "localhost"
     } 
if you want to monitor an external server, change the "localhost" to "IP address of server" or "server.domain.com". If you're not sure what the second one is, use the IP.

Finally, if you are monitoring externally and are using a firewall, you may need to whitelist the IP of the monitoring server on the server being monitored just to make sure you don't get any false alerts.
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
  #12 (permalink)  
Old 27-02-2008, 17:41
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,286
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Thanks for that Jonathan .
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #13 (permalink)  
Old 28-02-2008, 08:40
new member
 
Join Date: Feb 2008
Posts: 5
Default

Cheers for that
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On


All times are GMT. The time now is 08:46.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

knowledgebase articles

popular blog categories