Jump to content

WHMCS Admin Area


Mattg

Recommended Posts

  • 2 weeks later...
I'm surprised this option is not in there by default but I have added 'live server loads' into my admin panel. Its nice to watch the load of my servers update in real time right from the admin homepage.... and of course I changed the logo and colors as well :)

 

quickie, how did u do that, importing the live server loads?

Link to comment
Share on other sites

I placed a php file on each server that displays only the load and made it meta refresh every 2 seconds, then I created a table on my admin home page with iframes that displayed the load pages on each server.

 

My admin panel now looks like the attached image with the load updating every 2 seconds.

live_load.jpg

Link to comment
Share on other sites

attached is the load.php file that I place on each server to monitor the load with. I generally place it in the whmcs status folder that I put on each server.

 

I then use iframes in the whmcs admin panel to display the load.php file for each server I have.

 

im sure I could use javascript or something to improve this but so far this works great and gives me the results I want.

load.zip

Link to comment
Share on other sites

BTW: this is where I got the idea from:

 

http://www.status2k.com/demo/

 

I wish matt would add more features like that to WHMCS as it would make it easier to provide full 'support' to my clients needs by better monitoring my servers for uptime....

 

since whmcs is billing and support for clients, I would like to request more features like that be added to WHMCS

Link to comment
Share on other sites

Here is the (slightly modified) code I use in my 'homepage.tpl' file, you will need to adjust it for your needs (such as IP and location of the load.php file):

 


<br />
<h1>Server Status <a target="_blank" name="servers" href="http://status.yoursite.com/" style="font-size:10px;">Check Detailed Server Status</a></h1>
<table width=100% bgcolor="#cccccc" cellspacing=1 id="adminhometable">
<tr style="background-color:#efefef;font-weight:bold;text-align:center"><td>Server Number</td><td>Server Name</td><td>IP Address</td><td>Load Now</td></tr>
<tr bgcolor="#ffffff">
<td align="center">
Server 1</td>
<td align="center">
<a target="_blank" href="https://69.000.11.00:2087/">hostname-goes-here.com</a></td>
<td align="center">
69.000.11.00</td>
<td align="center">
<IFRAME SRC="http://location_of_file/load.php" height=14 width=22 FRAMEBORDER=0 SCROLLING=NO>
NO IFRAME</IFRAME>
</td>
</tr>
</table>

 

* I placed the above code directly under this existing code:

 

<p align="center"><input type="button" value="Generate Invoices" class="button" onClick="generateInvoices()">{if $showattemptccbutton} <input type="button" value="Attempt CC Payments" class="button" onClick="window.location='{$smarty.server.PHP_SELF}?attemptccpayments=true'">{/if}</p>

 

If anyone can offer improvements to this, I will be glad to hear them!

 

Also - Matt, you may want to put this under 'user contributions' as others may find a use for this as well :)

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