Jump to content

Reboot & MRTG module on client + admin side


Camron

Recommended Posts

I have already coded a script for mrtg & a reboot switch, something like this:

 

clientmrtg.php?cid=X&server=Y

 

X is their id, it will grab from the database the correct mrtg images where Y is their server number (clients that have multiple servers), can i implement this into whmcs, but X is filled in as per their ID number and Y is their server number (can be custom field in whmcs)?

 

rebootserver.php?housecode=X&unitcode=Y

 

rebootserver.php is offsite, not accessible on WAN (so clients can't reboot other people's servers). Can I set variable X and Y inside whmcs, where they can go click a button to reboot their server (this is on a per server basis, where customers have multiple servers it will show multiple servers)

 

Is this possible? Where they list their services, click on a particular service/server and see a link/button for REBOOT & View MRTG.

 

Any ideas or inputs are much appreciated! :)

Link to comment
Share on other sites

You should be able to. WIth regards to listing a repeating server list, you can do a FOR DO type loop. Whatever link is generated doesn't need to be on the network, you can link to outside without any issue. We currently have some of our dedicated servers linked up to a reboot email. That email gets sent to the DC and it's automatically rebooted.

 

For sending the info offsite, how about setting a cookie with your code in WHMCS, and then importing that cookie when the user is transferred to the other site? Not sure about the variables passing on the URL, but a cookie should do the trick if not.

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 3 weeks later...
  • 2 weeks 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