Jump to content

Displaying Disk Usage for Reseller


parag

Recommended Posts

Hi Guys

 

Is it possible to display the disk usage for the reseller's domains?

 

I created a reseller package and assigned it to a customer but its not displaying the actually space occupied by the reseller's clients into his account control panel.

 

When he logs in to the WHM he can list his accounts as well how much space he has used but not from he whmcs.

 

Any help with this would be great.

Parag

Link to comment
Share on other sites

  • 1 year later...

To my understanding the ability does not exist within cPanel itself.

 

My question is - would anyone know where to get cPanel's attention to finally add this ability so 3rd-party billing software can look at reseller disk usage?

 

Thoughts?

 

If cPanel does support this feature now, how many beers would it require to get it in the next version of WHMCS?

 

Edit: PS. Super large apologies for digging up this old thread.

Link to comment
Share on other sites

  • 2 months later...

Hey Matt,

 

Hate digging up old old threads - but thought it best to show where this is coming from.

 

So cPanel does "sort of" provide the ability to show the Entire Disk Usage for a Reseller. I wrote today in PHP a quick little test using their XML API.

 

$url = "https://username:password@server.com:2087/xml-api/resellerstats?reseller=resellerUsername";

 

$totalDiskSpace = 0;

$myXML = simplexml_load_file($url);

 

foreach ($myXML->result->accts as $account) {

$totalDiskSpace = $totalDiskSpace + $account->diskused;

}

 

echo "<b>TOTAL DISKUSAGE: " . $totalDiskSpace . "mb</b>\r\n";

 

So we can get the total disk used by resellers and their accounts. Is it possible to get this into your disk summary somehow? Everything I've thus checked is of course protected.

 

I would REALLY love my resellers getting an email daily when they are approaching their limit or over.

 

To my understanding - this solution requires OpenSSL to be compiled with PHP, and PHP5 - but I'm sure there would be other ways of achieving the same result.

 

Cheers,

Link to comment
Share on other sites

WHMCS you mean?

 

It depends on how you setup your resellers - but anyway according to WHMCS Resellers only show what "their" account is using. Max 2000mb using 4mb, when all of his actual clients are using say 1500mb - it's not reflected in WHMCS at all, and it really should be.

 

Especially when producing disk usage reports with WHMCS. It "is" meant to be my all-on-one solution. :D

Link to comment
Share on other sites

  • 1 year later...

old thread is old.

 

The very next version that came started showing reseller's with their usage amounts - Disk Usage (what they are using), Disk Limit (not their limit, but what they've "given" out to their clients), Bandwidth Usage and Bandwidth Limit (again, not their limit but what they've "given" out).

 

Same details found in the Reseller Centre of WHM.

 

Between then and now I've only checked from time to time that resellers are within their limits and adjusted their plans as required. I haven't stumbled across an automated means to do so within WHMCS but then again, I haven't been looking hard to do so.

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