Jump to content

Reseller Usage Stats incorrect for all servers


Terra

Recommended Posts

Hi,

 

I'm using cPanel servers with WHMCS 6.3.1 (inc security patch). For the daily cron that updates the usage stats, the cron runs, connection to servers is successful but all resellers for the server show the same usage stat, looks like it takes the stats of 1 user and then applies it to all resellers on the same server.

 

The shared hosting accounts (individual accounts) all update correctly, but the stats for resellers are all wrong.

 

Is this a known bug or something I'm doing wrong?

 

Advice appreciated.

 

best regards, Edith

Link to comment
Share on other sites

Hi Edith,

 

As per http://docs.whmcs.com/CPanel/WHM#Reseller_Usage_Calculation "Reseller usage limits and reporting is based on the behaviour of WHM's design & implementation of a "Reseller" account type. Most notably, resellers owned by root will not have their own usage aggregated into such boundary calculations."

 

If you take a look at your Module Debug Logs under Utilities -> Module Logs you'll see what responses are being returned.

Link to comment
Share on other sites

Hi Chris,

 

Thank you! Here's the info I have:

 

The reseller accounts are owned by themselves

Version is WHM 56.0 (build 33)

Debug log shows the module fetching the correct stats from the server, but when I look into WHMCS they are incorrect

 

It looks like the cron is fetching the correct stats (they show in the module log) but then in the WHMCS user account it shows the stats from the 1st account fetched from the server.

 


22-08-2016 12:53	cpanel	resellerstats	
reseller=A***

<resellerstats>
 <result>
  ........   
   <bandwidthlimit>204800</bandwidthlimit>
   <bwoverselling>0</bwoverselling>
   <diskoverselling>0</diskoverselling>
   <diskquota>15360</diskquota>
   <diskused>8203.98</diskused>
   <reseller>A***</reseller>
   <status>1</status>
   <statusmsg>Fetched Reseller Data OK</statusmsg>
   <totalbwalloc>145401</totalbwalloc>
   <totalbwused>17098.28</totalbwused>
   <totaldiskalloc>14457</totaldiskalloc>
 </result>
</resellerstats>

<!-- Web Host Manager 11.56.0.33 (c) cPanel, Inc. 2015 [url]http://cpanel.net/[/url]  Unauthorized copying is prohibited. -->

22-08-2016 12:53	cpanel	resellerstats	
reseller=B***

<resellerstats>
 <result>
  ..... 
   <bandwidthlimit>204800</bandwidthlimit>
   <bwoverselling>0</bwoverselling>
   <diskoverselling>0</diskoverselling>
   <diskquota>15360</diskquota>
   <diskused>5657.38</diskused>
   <reseller>B***</reseller>
   <status>1</status>
   <statusmsg>Fetched Reseller Data OK</statusmsg>
   <totalbwalloc>99193</totalbwalloc>
   <totalbwused>18296.57</totalbwused>
   <totaldiskalloc>9000</totaldiskalloc>
 </result>
</resellerstats>

<!-- Web Host Manager 11.56.0.33 (c) cPanel, Inc. 2015 [url]http://cpanel.net/[/url]  Unauthorized copying is prohibited. -->

22-08-2016 12:53	cpanel	resellerstats	
reseller=C***

<resellerstats>
 <result>
   .....
  <bandwidthlimit>102400</bandwidthlimit>
   <bwoverselling>0</bwoverselling>
   <diskoverselling>0</diskoverselling>
   <diskquota>6144</diskquota>
   <diskused>3338.87</diskused>
   <reseller>C***</reseller>
   <status>1</status>
   <statusmsg>Fetched Reseller Data OK</statusmsg>
   <totalbwalloc>70481</totalbwalloc>
   <totalbwused>7935.91</totalbwused>
   <totaldiskalloc>5298</totaldiskalloc>
 </result>
</resellerstats>

<!-- Web Host Manager 11.56.0.33 (c) cPanel, Inc. 2015 [url]http://cpanel.net/[/url]  Unauthorized copying is prohibited. -->

 

And WHMCS shows for all 3 resellers:

 

Disk Usage: 8204 MB, Disk Limit: 15360 MB, 53% Used :: BW Usage: 17098 MB, BW Limit: 204800 MB, 8% Used
(Last Updated: 22-08-2016 12:53)

 

I don't understand how the cron can fetch the correct info from server, but show the incorrect info in WHMCS package page? Not sure how I can fix this?

 

best regards, Edith

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