#1 (permalink)  
Old 02-19-2006, 11:31 AM
Registered User
 
Join Date: Apr 2003
Posts: 555
Jeff75
Bandwidth Usage in WHM Not Updating

I'm running WHM 10.8.0 cPanel 10.8.1-S11 and the Bandwidth Usage page in WHM is no longer working. I've tried running /scripts/fixcommonproblems and updatequotas -av but neither helped.

Can someone tell me how to fix this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2006, 01:23 PM
Registered User
 
Join Date: Mar 2002
Posts: 150
cbwass
Could be that you need to update your version of Perl, there are a number of threads about this if you search.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-31-2006, 02:05 PM
DIYHosting's Avatar
Registered User
 
Join Date: Nov 2003
Location: Saskatoon, SK, Canada
Posts: 60
DIYHosting
I am experiencing this issue on several servers. Bandwidth usage is reported incorrectly in WHM and cPanel but all of the stats programs are correct (ie. AWStats, Bandmin, etc).

Basically the bandwidth is reported to be really low in WHM/cPanel and does not reflect its real usage or what is reported in the other programs (which seems accurate).

All of the other posts on this issue were quite old and were not helpful. Perl is updated to the latest version, cPanel is the latest stable build, logrotate tmp noexec fix has been applied, stats manager shows that the server is able to keep up with the log processing on time, etc.

Anyone have any ideas?
__________________
www.diywebhosting.ca - Canadian shared and reseller hosting solutions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-31-2006, 02:15 PM
DIYHosting's Avatar
Registered User
 
Join Date: Nov 2003
Location: Saskatoon, SK, Canada
Posts: 60
DIYHosting
Checking the accounts in /var/cpanel/bandwidth I see that it is only calculating the ftp, and email services and not web traffic. Hrmmm....
__________________
www.diywebhosting.ca - Canadian shared and reseller hosting solutions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-31-2006, 06:32 PM
Registered User
 
Join Date: Apr 2003
Posts: 555
Jeff75
I am still having this problem after upgrading to multiple STABLE versions since I first started experiencing this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-01-2006, 09:59 AM
Registered User
 
Join Date: Jun 2004
Posts: 102
Earendil
I'm experiencing this too, submitted a ticket.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-01-2006, 03:24 PM
Registered User
 
Join Date: Aug 2006
Posts: 21
color is on a distinguished road
Same problem for me, with new added domains with latest edge build of CPanel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-02-2006, 03:21 AM
Registered User
 
Join Date: Jun 2004
Posts: 102
Earendil
Response from support:

"Any VirtualHost entries that have the following

BytesLog /usr/local/apache/domlogs/www.domain.com-bytes_log

Should be

BytesLog /usr/local/apache/domlogs/domain.com-bytes-log

You can run this command to fix this for httpd.conf

replace "BytesLog /usr/local/apache/domlogs/www." "BytesLog /usr/local/apache/domlogs/" -- /usr/local/apache/conf/httpd.conf

Then restart Apache.

You will then need to combine the domlogs files in /usr/local/apache/domlogs using this command

for i in $(ls www.*bytes_log); do cat $i >> ${i##www.}; done

That will take a minute or two to complete depending on how may bytes_log files and the size of them.

Then run /scripts/runstatsonce

Thats it, problem will be resolved and should not be an issue again."

You might want to check first if you're affected by the same problem.
Basically there shouldn't be any entries which begin with:

"BytesLog /usr/local/apache/domlogs/www."

Last edited by Earendil; 11-02-2006 at 02:30 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-02-2006, 03:47 AM
Registered User
 
Join Date: Aug 2006
Posts: 21
color is on a distinguished road
/scripts/buildhttpdconf helped for me
it adds those missing log strings in httpd.conf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-02-2006, 02:25 PM
DIYHosting's Avatar
Registered User
 
Join Date: Nov 2003
Location: Saskatoon, SK, Canada
Posts: 60
DIYHosting
There was an error in the bove line, it should be:

replace "BytesLog /usr/local/apache/domlogs/www." "BytesLog /usr/local/apache/domlogs/" -- /usr/local/apache/conf/httpd.conf

Your post got it fixed for me though. I think this may have occured when I previously upgraded to the edge build.
__________________
www.diywebhosting.ca - Canadian shared and reseller hosting solutions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 11-02-2006, 02:30 PM
Registered User
 
Join Date: Jun 2004
Posts: 102
Earendil
Quote:
Originally Posted by DIYHosting View Post
There was an error in the bove line.
You're right, I've corrected it in the original post
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 12-04-2006, 05:17 AM
Registered User
 
Join Date: Apr 2004
Posts: 22
Paonza
Hi All!
Form Novembre my Bandwidth Usage page in WHM is no longer working. All the values are zero.
I checked the httpd.conf and for each domain i have the following line:
Code:
BytesLog domlogs/domains.com-bytes_log
could is this the problem? the incorrect path?
should be:
Code:
BytesLog /usr/local/apache/domlogs/domains.com-bytes_log
do you think is this what i need to fix?

thanks for the help!
Fabio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:00 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc