Joweb Posted September 5, 2007 Share Posted September 5, 2007 <div align="center">{if !$loggedin}You must be logged in to check if any of the services on our servers are down or to check your individual server status. {else}{if $loggedin}To locate the server name you are on, please view your hosting account details. {/if} </div> <table width="100%"> <tr> <td height="29"> <div align="center">Live Uptime Status as of Today: {$todaysdate} </div></td> </tr> </table> <table width="100%" bordercolor="efefef" > <tr bgcolor="efefef"> <td width="55" height="30"> <div align="center">SERVER</div></td> <td width="45"> <div align="center">HTTP</div></td> <td width="45"> <div align="center">POP3</div></td> <td width="50"> <div align="center">WEBMAIL</div></td> <td width="45" > <div align="center">SMTP</div></td> <td width="45" > <div align="center">FTP</div></td> <td width="45"> <div align="center">DNS</div></td> <td width="45"> <div align="center">WHM</div></td> <td width="50"> <div align="center">CPanel</div></td> <td width="50"> <div align="center">UPTIME</div></td> <td width="45"> <div align="center">LOAD</div></td> </tr> {foreach key=num item=server from=$servers} <tr> <td width="50" height="35" bgcolor="#F9F9F9"> <div align="center">{$server.name}</div></td> <td width="30" bgcolor="#F9F9F9"> <div align="center">{get_port_status num="$num" port="80"}</div></td> <td width="30" bgcolor="#F9F9F9"> <div align="center">{get_port_status num="$num" port="110"}</div></td> <td width="30" bgcolor="#F9F9F9"> <div align="center">{get_port_status num="$num" port="2095"}</div></td> <td width="30" bgcolor="#F9F9F9"> <div align="center">{get_port_status num="$num" port="25"}</div></td> <td width="30" bgcolor="#F9F9F9"> <div align="center">{get_port_status num="$num" port="21"}</div></td> <td width="30" bgcolor="#F9F9F9"> <div align="center">{get_port_status num="$num" port="53"}</div></td> <td width="30" bgcolor="#F9F9F9"> <div align="center">{get_port_status num="$num" port="2087"}</div></td> <td width="40" bgcolor="#F9F9F9"> <div align="center">{get_port_status num="$num" port="2082"}</div></td> <td bgcolor="#F9F9F9" > <div align="center">{$server.uptime}</div></td> <td width="30" bgcolor="#F9F9F9"> <div align="center">{$server.serverload}</div></td> </tr> {foreachelse} <tr> <td height="24" colspan="14" id="serverstatusrow">{$LANG.serverstatusnoservers}</td> </tr> {/foreach} </table> {/if} ------------------------- Then add this to your clientareaproductdetails.tpl Server Name:{$server.name}-Server Status This should show what server the client is on 0 Quote Link to comment Share on other sites More sharing options...
Jordan Posted September 5, 2007 Share Posted September 5, 2007 I think a better idea would be do somehow customize this to set it up for a single server, in the client's control panel. That way you can have serverstatus.php to show all server's in a simple format, but when a client views their OWN server, they can see more details (eg: what you posted, pop, webmail, smtp, etc.) *ponders the idea* 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted September 5, 2007 Author Share Posted September 5, 2007 I agree that would be a good Idea. I posted it here so it will be easy to find and maybe stop duplicate post for the same feature. Seems to be requested many times. 0 Quote Link to comment Share on other sites More sharing options...
Jordan Posted September 5, 2007 Share Posted September 5, 2007 Oh, I figured that was why ; But just reading through it one more time, really sounded like a perfect idea to create a personalized server status page. I think it would be better to get rid of that Javascript though. A lot of people have this disabled; You can just use PHP to display current time. Might want to just switch it with that instead; It'll also lighten the code/load time for the page. 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted September 5, 2007 Author Share Posted September 5, 2007 Changed to {$todaysdate} any idea on a time varible that can be used also 0 Quote Link to comment Share on other sites More sharing options...
sentryhosting Posted September 6, 2009 Share Posted September 6, 2009 This does not work, any ideas? 0 Quote Link to comment Share on other sites More sharing options...
Stream101 Posted September 6, 2009 Share Posted September 6, 2009 The last post is from 2007, I would double check the variables and make sure they are still valid. 0 Quote Link to comment Share on other sites More sharing options...
apollo1 Posted December 10, 2009 Share Posted December 10, 2009 Old post I know... but to MarcAlle - yes, the code posted by OP is generally still working even with 4.1.2. I am using it, the only problem is SMTP always shows as down even though it isn't. I tried changing the port to 26 (which is what my server uses) but it still shows down. The rest show up. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.