Jump to content

different status page


CB-HS Matt

Recommended Posts

Hi,

 

I was wondering if anyone knew of a more detailed informative status page? I don't think anyone looking at that would understand what it means unless they were atleast a level 2 tech.

 

I would like it to integrate with whmcs as well so when a client looks at servers he/she can take a peak.

 

And also, why does the status folder supplied by whmcs not show phpinfo it seems to always not work?

 

Regards,

Link to comment
Share on other sites

{if $loggedin}

<p>{$LANG.serverstatusheadingtext}</p>

<table class="clientareatable" align="center" cellspacing="1">

<tr class="clientareatableheading"></tr>

{foreach key=num item=server from=$servers}

<tr class="clientareatableactive"></tr>

{foreachelse}<tr class="clientareatableactive">

<td colspan="7">{$LANG.serverstatusnoservers}</td>

</tr>

{/foreach}

</table>

 

 

 

<div align="center">

<center>

<table border="3" cellpadding="5" cellspacing="0" width="61%" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<td width="54%" bgcolor="#FF9900"><b><font size="5" face="Tahoma">SERVICES</font></b></td>

<td width="70%" bgcolor="#FF9900"><b><font face="Tahoma" size="5">AKA 

</font></b></td>

<td width="48%" bgcolor="#FF9900"><b><font size="5" face="Tahoma">STATUS</font></b></td>

</tr>

<tr>

<td width="54%"><b><font size="4" face="Tahoma"><br>

Server Load<br>

 </font></b></td>

<td width="70%"><b><font face="Tahoma" size="4">LOAD</font></b></td>

<td width="48%"><font SIZE="4" face="Tahoma"><b>{$server.serverload}</b></font></td>

</tr>

<tr>

<td width="54%"><b><font size="4" face="Tahoma">Web Server<br>

 </font></b></td>

<td width="70%"><b><font face="Tahoma" size="4">HTTP</font></b></td>

<td width="48%"><b><font size="4" face="Tahoma">{get_port_status num="$num" port="80"}</font></b></td>

</tr>

<tr>

<td width="54%"><b><font size="4" face="Tahoma">File Transfer Server<br>

 </font></b></td>

<td width="70%"><b><font face="Tahoma" size="4">FTP</font></b></td>

<td width="48%"><b><font size="4" face="Tahoma">{get_port_status num="$num" port="21"}</font></b></td>

</tr>

<tr>

<td width="54%"><b><font size="4" face="Tahoma">Incoming Mail Server<br>

 </font></b></td>

<td width="70%"><b><font face="Tahoma" size="4">POP3</font></b></td>

<td width="48%"><b><font size="4" face="Tahoma">{get_port_status num="$num" port="110"}</font></b></td>

</tr>

<tr>

<td width="54%"><b><font size="4" face="Tahoma">Outgoing Mail Server<br>

 </font></b></td>

<td width="70%"><b><font face="Tahoma" size="4">SMTP</font></b></td>

<td width="48%"><b><font size="4" face="Tahoma">{get_port_status num="$num" port="26"}</font></b></td>

</tr>

<tr>

<td width="54%"><b><font size="4" face="Tahoma">Domain Name Server<br>

 </font></b></td>

<td width="70%"><b><font face="Tahoma" size="4">DNS</font></b></td>

<td width="48%"><b><font size="4" face="Tahoma">{get_port_status num="$num" port="53"}</font></b></td>

</tr>

<tr>

<td width="54%"><b><font size="4" face="Tahoma">Secure Server<br>

 </font></b></td>

<td width="70%"><b><font face="Tahoma" size="4">SSL</font></b></td>

<td width="48%"><b><font size="4" face="Tahoma">{get_port_status num="$num" port="443"}</font></b></td>

</tr>

<tr>

<td width="69%"><b><font size="4" face="Tahoma">Control Panel<br>

 </font></b></td>

<td width="55%"><b><font face="Tahoma" size="4">CP</font></b></td>

<td width="48%"><b><font size="4" face="Tahoma">{get_port_status num="$num" port="2082"}</font></b></td>

</tr>

<tr>

<td width="69%"><b><font size="4" face="Tahoma">My SQL Server<br>

 </font></b></td>

<td width="55%"><b><font face="Tahoma" size="4">MYSQL</font></b></td>

<td width="48%"><b><font size="4" face="Tahoma">{get_port_status num="$num" port="3306"}</font></b></td>

</tr>

</table></center>

</div>

 

 

 

 

 

{else} <p>{$LANG.loginintrotext}</p> <form action="dologin.php?goto=serverstatus" method="post"> <table align="center"> <tr><td align="right">{$LANG.loginemail}:</td><td><input type="text" name="username" size="40" value="{$username}"></td></tr> <tr><td align="right">{$LANG.loginpassword}:</td><td><input type="password" name="password" size="25" value="{$password}"></td></tr> </table> <p align="center"><input type="submit" value="{$LANG.loginbutton}"><br><input type="checkbox" name="rememberme"{$rememberme}> {$LANG.loginrememberme}</p> </form> <p><b>{$LANG.loginforgotten}</B> <a href="passwordreminder.php">{$LANG.loginforgotteninstructions}</a>.</p> {/if}

Edited by Cubeboy
you put this into your serverstatus.tpl file
Link to comment
Share on other sites

  • 2 years later...

The newer version of the tpl file looks like this its cleaner and easy to work with, i have added a few of my own port checks found in the above post or things i thought would be useful to others,

 

Here it is.

whmcs/templates/active_template/serverstatus.tpl is the file to edit

 

First row

<th>{$LANG.servername}</th>

<th class="textcenter">HTTP</th>

<th class="textcenter">FTP</th>

<th class="textcenter">POP3</th>

<th class="textcenter">IMAP</th>

<th class="textcenter">SMTP</th>

<th class="textcenter">MySQL</th>

<th class="textcenter">{$LANG.serverstatusserverload}</th>

<th class="textcenter">{$LANG.serverstatusuptime}</th>

 

Status rows.

<td>{$server.name}</td>

<td class="textcenter">{get_port_status num="$num" port="80"}</td>

<td class="textcenter">{get_port_status num="$num" port="21"}</td>

<td class="textcenter">{get_port_status num="$num" port="110"}</td>

<td class="textcenter">{get_port_status num="$num" port="143"}</td>

<td class="textcenter">{get_port_status num="$num" port="25"}</td>

<td class="textcenter">{get_port_status num="$num" port="3306"}</td>

<td class="textcenter">{$server.serverload}</td>

<td class="textcenter">{$server.uptime|replace:'Days':$LANG.days}</td>

 

While i am on this subject, if anybody knows how to add in a check to see if the client has an active account on the so as only to display clients servers this would be great to know.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated