POP/IMAP Bandwidth Reporting Always Zero

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
Hello,

I enabled AWSTATS. Till August 2006, the bandwidth reporting for POP/IMAP was perfectly OK. However, September 06 onwards, POP/IMAP bandwidth is always reported "ZERO" ie not reported at all and this is traceable from the fact that there are accounts which have been consuming 500-1000MB/Day on a/c of this but suddenly it's reported ZERO.

10.8.2-RELEASE 119

Any clue?

TIA
Anup
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
We have the same problem since Sept 2nd and after some review,
I found out that problem is that Apache is no longer generating quotes
around the fields in any log files but even though I know the cause of
the problem, I'm still not sure how to get AwStats working again:

Instead of:
127.0.0.1 - - [01/Sep/2006:14:35:01 -0400] "GET /file.txt HTTP/1.0" 200 11200 "-" "-"

It's now like:
127.0.0.1 - - [01/Sep/2006:14:35:01 -0400] GET /whm-server-status HTTP/1.0 200 11200 - -

The change in the log format occurred following a Cpanel update earlier this week
and the problem seems to be associated with that.

We have multiple servers where this problem has emerged this week

------

EDIT: I may have possibly found the solution --- just ran a compare of httpd.conf from an unchanged server
against one of the servers having the AwStats and Logformat problem and found the following:

Server that still works:
Code:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
Server that is broken:
Code:
LogFormat "%h %l %u %t %r %>s %b %{Referer}i %{User-Agent}i" combined
Apparently the most recent cpanel update changed the LogFormat for some really bizarre reason!

Changing the LogFormat in httpd.conf back to normal, restarting Apache, and removing the existing log
files from /etc/httpd/domlogs did the trick and AwStats is once again working!
 
Last edited:

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
Hello,

AWSTATS is working fine.
My problem is that POP?IMAP under bandwidth is always reporting zero (ie it's not reporting at all). This had occurred long back when migration to Maildir was done but got resolved on it's own after three months. It has resurfaced again. There's a bugzilla entry regarding POP/IMAP Bandwidth zero since last year.....


Thnx
Anup