dbmv Posted June 7, 2007 Share Posted June 7, 2007 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... 0 Quote Link to comment Share on other sites More sharing options...
Iceman Posted June 7, 2007 Share Posted June 7, 2007 Hi, You could create your own Client area page to do this. Simply do a check at the loading of each page to see if the user is logged in. Cheers, Paul 0 Quote Link to comment Share on other sites More sharing options...
trine Posted June 7, 2007 Share Posted June 7, 2007 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). 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted June 7, 2007 Share Posted June 7, 2007 With some minor changes I've done this within the template for a few people. http://my.skshost.com/serverstatus.php it does what I need it to. I'm working on only displaying the status of servers the logged in client in on. 0 Quote Link to comment Share on other sites More sharing options...
dbmv Posted June 7, 2007 Author Share Posted June 7, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted June 7, 2007 Share Posted June 7, 2007 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> 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted June 7, 2007 Share Posted June 7, 2007 i thought the $servers array listed all the servers that whmcs has in its db. I dont see in your code how it only shows servers that the client has accounts on. 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted June 8, 2007 Share Posted June 8, 2007 "I'm working on only displaying the status of servers the logged in client in on." So that still shows all servers. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted June 8, 2007 Share Posted June 8, 2007 ah, my bad, i cant read. =P 0 Quote Link to comment Share on other sites More sharing options...
gismo Posted June 8, 2007 Share Posted June 8, 2007 It don't show any servers even if logged in as a client. Only show "You must be logged in to view your server's status." 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted June 8, 2007 Share Posted June 8, 2007 Works fine for me. 0 Quote Link to comment Share on other sites More sharing options...
gismo Posted June 9, 2007 Share Posted June 9, 2007 Am i wrong when i just copy and past the script into the serverstatus.tpl file? 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted June 9, 2007 Share Posted June 9, 2007 That's my serverstatus.tpl exactly, so that should do it. 0 Quote Link to comment Share on other sites More sharing options...
gismo Posted June 9, 2007 Share Posted June 9, 2007 The problem is only in FF but works great in IE. 0 Quote Link to comment Share on other sites More sharing options...
G Swanepoel Posted August 29, 2007 Share Posted August 29, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted August 29, 2007 Share Posted August 29, 2007 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} 0 Quote Link to comment Share on other sites More sharing options...
G Swanepoel Posted August 29, 2007 Share Posted August 29, 2007 I am so glad you type slow 'cause I cant read that fast....... Thank you so much - It worked first time around. It looks better than the sorry litlle one I had. ___________________ Gert 0 Quote Link to comment Share on other sites More sharing options...
Joweb Posted August 29, 2007 Share Posted August 29, 2007 Great, No problem. 0 Quote Link to comment Share on other sites More sharing options...
broadway Posted September 30, 2007 Share Posted September 30, 2007 I have implemented the above code in my WHMCS, but the server uptime and load wont come. I ma using cpanel/whm on linux dedicated box. Any help will be appreciated. 0 Quote Link to comment Share on other sites More sharing options...
Retired Forum Member WHMCS Joe Posted September 30, 2007 Retired Forum Member Share Posted September 30, 2007 Please view this article > http://v3manual.whmcs.com/display.php?id=21 0 Quote Link to comment Share on other sites More sharing options...
Sitecenter Posted September 30, 2007 Share Posted September 30, 2007 I have implemented the above code in my WHMCS, but the server uptime and load wont come. I ma using cpanel/whm on linux dedicated box. Any help will be appreciated. When we had an issue it was a safe mode problem in the httpd.include file 0 Quote Link to comment Share on other sites More sharing options...
Retired Forum Member WHMCS Joe Posted September 30, 2007 Retired Forum Member Share Posted September 30, 2007 Please check you have the following functions enabled on your server" exec and shell_exec" 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.