Jump to content

Colocation MTRG Graph


Recommended Posts

We have a customer who has recently setup a colocation server with us.

 

As such, we would like to be able to include the ability for them to track/monitor bandwidth (MRTG) via their client area.

 

I've done a bit of reading about the forums here, but no-one seems to clearly explain to go about adding something like this into the client area.

 

What process do we need to carry out in order to do this?

 

Obviously we dont want this to be something that applies to shared clients etc as WHMCS already does that with our cPanel servers, but for any dedicated and colo clients, we would like to be able to have them view their bandwidth usage via a graph or link to a graph within the client area for their individual server.

 

Any help on this would be greatly appreciated.

 

Regards,

 

Dale Evans

Manager

Link to comment
Share on other sites

  • WHMCS CEO

Just saw this thread and thought this should be easy enough with some template customisations - but having taken a look I notice that we aren't publishing any dedicated server info to the template vars. So attached you'll find an update to the file that changes this. You can then do something like below in clientareaproductdetails.tpl

 

{if $type eq "server"}
<!-- Product type = Server -> so display server things -->
<p>
Dedicated IP: {$dedicatedip}<br />
Assigned IPs: {$assignedips}<br />
Nameserver 1: {$ns1}<br />
Nameserver 2: {$ns2}<br />
<a href="http://{$dedicatedip}/mrtg_graph/" target="_blank">View Bandwidth Graphs</a>
</p>
{/if}

 

Matt

clientarea.zip

Link to comment
Share on other sites

Has anyone got any recommendations of MRTG software besides Cacti as we want to use this for colo's as well as dedicated servers but dont want to go installing all the bits and pieces and mucking with clients servers too much.

 

We have one here we're using, but it reads the vlan portname as vlan21.suppliersdomain.com.au and we'd prefer it to have their hostname or custom text if possible.

 

Cheers,

 

Dale

Link to comment
Share on other sites

We use an RTG solution for displaying our graphs. I'm a little new to WHMCS, so I'm not sure what kind of module customization we are able to do, but I will see if I can convert my in-house solution over to WHMCS and post it here.

 

Pretty much what I have setup is a dedicated monitoring server, which has RTG installed on it. I use the RTG cgi that comes with the installation to generate the graphs. I have a PHP file that authenticates that users session and pulls the image for that interface, so my clients don't know where the server is at. We can do 95% lines and the works by passing different commands.

 

Ryan

Link to comment
Share on other sites

  • 2 months later...

Hi Matt and all using this custom scripts,

 

I had to upload the following file again: clientarea.php(zip inprevious post) to make our productdetail.php page to work. Any downside of using this old file with the new V3.6.2?

 

This was to intergrate the mrtg link when using dedicated server products.

 

Just saw this thread and thought this should be easy enough with some template customisations - but having taken a look I notice that we aren't publishing any dedicated server info to the template vars. So attached you'll find an update to the file that changes this. You can then do something like below in clientareaproductdetails.tpl

 

{if $type eq "server"}
<!-- Product type = Server -> so display server things -->
<p>
Dedicated IP: {$dedicatedip}<br />
Assigned IPs: {$assignedips}<br />
Nameserver 1: {$ns1}<br />
Nameserver 2: {$ns2}<br />
<a href="http://{$dedicatedip}/mrtg_graph/" target="_blank">View Bandwidth Graphs</a>
</p>
{/if}

Matt

Link to comment
Share on other sites

  • 4 months 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