Jump to content

RapidSwitch Bandwidth Graphs for your Admin Area


openmind

Recommended Posts

Just to follow on from Chris' contribution for displaying client bandwidth graphs if your servers are based with RapidSwitch in the UK, this contribution will show your overall usage on the home page of the admin area.

 

Setup Instructions

1 - Login to MyServers at RapidSwitch

2 - Select My Servers > Total Bandwidth Usage

3 - Right click the past 4 hours summary and get the URL

4 - Make a note of the clientid and graphkey variables

5 - Edit your homepage.tpl (admin/templates/YOUR-TEMPLATE/homepage.tpl) and add the following wherever you like. I added mine just above the admin notes

 

<h3 style="text-align:center">Bandwidth Graphs<h3>
<div class="contentbox">
   <table border="0" cellpadding="4" cellspacing="10" width="100%">
       <tr>
           <td class="fieldarea" width="50%"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=4hour" /></div></td>
           <td class="fieldarea" width="50%"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=1day" /></div></td>
       </tr>
       <tr>
           <td align="center"><strong>Last Four Hours</strong></td>
           <td align="center"><strong>Last 24 Hours</strong></td>
       </tr>
       <tr>
           <td class="fieldarea"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=1week" /></div></td>
           <td class="fieldarea"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=1month" /></div></td>
       </tr>
       <tr>
           <td align="center"><strong>Last Week</strong></td>
           <td align="center"><strong>Last Month</strong></td>
       </tr>
       <tr>
           <td colspan="2">
               <table border="0" cellpadding="4" cellspacing="10" width="100%">
                   <tr>
                       <td class="fieldarea" width="100%"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=1year" /></div></td>
                   </tr>
                   <tr>

                       <td align="center"><strong>Last Year</strong></td>
                   </tr>
               </table>
           </td>
       </tr>
   </table>
</div>

Save and upload and you now have a bandwidth summary in your admin :)

Link to comment
Share on other sites

Hi,

 

Great Addon, just one small problem, everything after the graphs is now in Bold?

 

Thanks

 

EDIT - Got it - You just missed out the / when closing off the h3 aka:

 

<h3 style="text-align:center">Bandwidth Graphs<h3>

 

Should be:

 

<h3 style="text-align:center">Bandwidth Graphs</h3>

Edited by jas
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