hightekhosting Posted May 4, 2008 Share Posted May 4, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted May 6, 2008 Share Posted May 6, 2008 something as simple as "if pid=(id of colo) link to graph" in teh tenplates should do it 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted May 6, 2008 Share Posted May 6, 2008 I suppose for this kind of setup your routers / switches are SNMP capable, and the graphs can be read via an SNMP client? 0 Quote Link to comment Share on other sites More sharing options...
ServerTweak.com Posted May 7, 2008 Share Posted May 7, 2008 willing to pay, we use cacti 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 7, 2008 WHMCS CEO Share Posted May 7, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
chaloupe Posted May 7, 2008 Share Posted May 7, 2008 Thanks Matt, we appreciate your help in offering more information to our clients. 0 Quote Link to comment Share on other sites More sharing options...
hightekhosting Posted May 8, 2008 Author Share Posted May 8, 2008 Thanks Matt, I'm working with that code now to "jazz" it up a bit. Will post details of my mods when I'm doing fiddling and see what people think Cheers, Dale Evans Manager 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted May 9, 2008 Share Posted May 9, 2008 I suppose that will only work if mrtg is installed on the dedicated server, right? 0 Quote Link to comment Share on other sites More sharing options...
chaloupe Posted May 9, 2008 Share Posted May 9, 2008 Exactly, it needs to be install on the dedicated server prior to using the code. --ADD You can still use the code but not the link to mrtg --ADD 0 Quote Link to comment Share on other sites More sharing options...
hightekhosting Posted May 10, 2008 Author Share Posted May 10, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
rgyure Posted May 10, 2008 Share Posted May 10, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
chaloupe Posted July 20, 2008 Share Posted July 20, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
elitbir Posted November 28, 2008 Share Posted November 28, 2008 thanks. good coding. good work. 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.