Terra Posted August 19, 2016 Share Posted August 19, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted August 19, 2016 Share Posted August 19, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
Terra Posted August 22, 2016 Author Share Posted August 22, 2016 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 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.