Jump to content

Uptime script to display only in client area


dbmv

Recommended Posts

Is there an uptime script that's available (free or paid), that can display the history and uptime of all servers, to clients, ONLY in their client area? Preferably with http, smtp, pop, mysql, ftp, and so on...

Link to comment
Share on other sites

Is there an uptime script that's available (free or paid), that can display the history and uptime of all servers, to clients, ONLY in their client area? Preferably with http, smtp, pop, mysql, ftp, and so on...

 

It is possible to do this, but I don't know of any scripts off hand.

 

We made our own script that checks the following without port connects:

Server HTTP SSL FTP POP IMAP MTA SQL DNS MEM DSK SWP LOAD/CPUS Uptime

 

It runs with a perl script + a modified serverstatus.php page.

Uptime stats aren't in the works but should be easy enough to do.

If you're interested, send me a PM. (This won't be a community mod).

Link to comment
Share on other sites

Can that be on its own page, with a link called Uptime Reports, AFTER a client logs into their own area? I don't want it showing on the main whmcs page (pre and post login).

 

How much would it cost for you to do it :)

Link to comment
Share on other sites

Would only need to add the link to the client area and remove it from the homepage. Here's my sterverstatus.tpl:

{$LANG.serverstatusheadingtext}


<table id="serverstatus" align="center" cellspacing="1">
 <tr>
   <td width="15%" id="serverstatusheading">{$LANG.servername}</td>
   <td width="11%" id="serverstatusheading">HTTP</td>
   <td width="11%" id="serverstatusheading">FTP</td>
   <td width="11%" id="serverstatusheading">POP3</td>
   <td width="11%" id="serverstatusheading">{$LANG.serverstatusphpinfo}</td>
   <td width="15%" id="serverstatusheading">{$LANG.serverstatusserverload}</td>
   <td width="15%" id="serverstatusheading">{$LANG.serverstatusuptime}</td>
 </tr>
{foreach key=num item=server from=$servers}
{if $loggedin}
 <tr>
   <td width="15%" id="serverstatusrow">{$server.name}</td>
   <td width="11%" id="serverstatusrow">{get_port_status num="$num" port="80"}</td>
   <td width="11%" id="serverstatusrow">{get_port_status num="$num" port="21"}</td>
   <td width="11%" id="serverstatusrow">{get_port_status num="$num" port="110"}</td>
   <td width="11%" id="serverstatusrow">[url="{$server.phpinfourl}"]{$LANG.serverstatusphpinfo}[/url]</td>
   <td width="15%" id="serverstatusrow">{$server.serverload}</td>
   <td width="15%" id="serverstatusrow">{$server.uptime}</td>
 </tr>
{/if}
{foreachelse}
 <tr>
   <td id="serverstatusrow" colspan="7">
{if $loggedin}
{$LANG.serverstatusnoservers}
{else}
   <font color="#FF0000">
   You must be logged in to view your server's status.
   </font>
{/if}
   </td>
 </tr>
{/foreach}
{if $loggedin}
{else}
 <tr>
   <td id="serverstatusrow" colspan="7">
   <font color="#FF0000">
   You must be logged in to view your server's status.
   </font>
   </td>
 </tr>
{/if}
</table>

Link to comment
Share on other sites

  • 2 months later...

Ok you know you have a lot to learn when you read these post and the one post confuses you more than the next. Having just admitted that I am a total newbie, I would like to ask:

 

I like this script. How the !@#$ do i get this on my site.

intouchweb.co.za/billing/whmcs/serverstatus.php

 

 

Hope someone can help (Please note that no high english will be tollerated - I can hardly speak english so keep it simple!!!)

 

Thanks

 

Gert Swanepoel

:twisted::twisted::twisted::twisted::twisted::twisted::twisted::twisted:

Link to comment
Share on other sites

C O P Y T H I S I N T O Y O U R TEMPLATES/TEMPLATENAME/SERVERSTATUS.TPL C A N Y O U H E A R M E ! :)

 

<div align="center">You must be logged in to check if any of the services on

our servers are down or to check your individual

server status. To locate the server name you are on, please view

your hosting account details.

</div> {if $loggedin}

 

 

<table width="100%">

<tr>

<td height="29"> <div align="center">Live Uptime Status as of Today:

<script language=JavaScript>

<!--

 

// Array of day names

var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

 

var monthNames = new Array("January","February","March","April","May","June","July",

"August","September","October","November","December");

 

var dt = new Date();

var y = dt.getYear();

 

// Y2K compliant

if (y < 1000) y +=1900;

 

document.write(dayNames[dt.getDay()] + ", " + monthNames[dt.getMonth()] + " " + dt.getDate() + ", " + y);

// -->

</script>

</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}

Link to comment
Share on other sites

  • 1 month later...

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