Jump to content

Disk usage stats in client areas showing incorrect values for resellers


Recommended Posts

Hi,

Recently we did made some changes to our reseller hosting plans and facing an issue with disk usage stats in client area.

So basically we are now offering Unlimited Disk and Unlimited B/W in our Reseller-CRS2 plan.

Steps for this implementation -

1 - Updated the product in WHMCS with required values.

2 - Updated the WHM reseller packages

3 - Ran Update package from whmcs for the client, so new values should be updates and waited for 24 hours so all stats and other crons run and new stats are displayed.

but no luck, when checked in reseller client area, random disk and bw values are showed. Not sure what am I missing.

Any help on this is appreciated. It Should Display Unlimited MB for disk and BW in client area that what i want.

 

Thanks

 

 

client-area-diskusage.png

reseller-whmcs.jpg

reseller-whm-package.jpg

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @caisc,

Let's check what value is being returned by the cPanel API:

  • Enable the Utilities > Logs > Module Log
  • Navigate to Reports > Disk Usage Summary
  • Click "Update Now" at the bottom
  • Return to the Module Log and disable it
  • Examine the " Response" column for the disk space and bandwidth limit values returned by cPanel.

If you choose to share it here, please be sure to remove any sensitive data.

Link to comment
Share on other sites

Hi John,

Enable the Utilities > Logs > Module Log - Done

Navigate to Reports > Disk Usage Summary - Done

Click "Update Now" at the bottom - Done

Return to the Module Log and disable it - Done

Response column for the disk space and bandwidth limit values returned by cPanel are as below -

{"result":{"bwoverselling":1,"accts":[client accounts under reseller, details was here],"diskoverselling":1,"statusmsg":"Fetched Reseller Data OK","bandwidthlimit":0,"totaldiskalloc":2953600,"reseller":"reseller user name here","totalbwalloc":6429800,"diskused":42285.03,"status":1,"diskquota":0,"totalbwused":40831.18}}

Also I noticed one thing, if I specify 99999999 in whmcs module instead of word "Unlimited" it works perfectly fine and shows 99999999 MB in client area.

402852441_Screenshot_2019-07-19WHMCS-ProductsServices.thumb.png.c9828e581fc8095ee30a8ca740354676.png1848782936_Screenshot_2019-07-19ClientArea-OrderAndSupport.png.5b5d8c8bdb15971d2f5be4210c47b537.png

 

Link to comment
Share on other sites

 

Now after setting 99999999 as value, instead of Unlimited in Reseller Disk Space and Bandwidth in WHMCS Module, performed same steps and below is the log output -

{"result":{"accts":[ reseller's clients acc details here],"bwoverselling":1,"statusmsg":"Fetched Reseller Data OK","diskoverselling":1,"bandwidthlimit":99999999,"totalbwalloc":6429800,"reseller":"reseller user name here","totaldiskalloc":2953600,"status":1,"diskused":42289.56,"diskquota":99999999,"totalbwused":40831.18}}

Now WHMCS client area shows xxxx M / 999999999 M

Edited by caisc
Added more information
Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @caisc,

cPanel considers the value `0` to indicate an unlimted quota for resellers: https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+resellerstats

So please configure the reseller limits as 0 inside WHMCS, and this will be reflected in the usage statistics next time they're updated:

20190722-1220.png

20190722-1221.png

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