PDA

View Full Version : Last day of the month - No awstats?



ViAdCk
02-02-2009, 09:33 AM
Hello:

We are seeing something strange on one of our servers. Awstats doesn't generate any stats on the last day of the month. This server is quite new hence this issues has happened on the 31th of december and january. Any thoughts why this is happening? I've tried to search the forum with no luck.

Thanks :)

spirit
03-01-2009, 11:47 PM
We also have this problem. Every last day of the month the statistics doesn't work.

rootbsd
05-29-2009, 07:57 AM
Same thing showing up here, has anyone found a possible fix?

It seems like stats processing on the first day of the month doesnt look backward to the last day of the prior month.

DirectAdmin Support
05-29-2009, 12:26 PM
Hello,

I've confirmed the issue on our build system as well, so we'll be looking into the issue. Thanks for your reports.

John

DirectAdmin Support
05-29-2009, 12:40 PM
After doing soe googling and looking over the awstats_process.sh, I have a suspicion that it's caused by this option:
-builddate=%YY%MMwhere the tally that is computing the last day of the month is running on the first day of the next month, so the MM value is off by one for the last day.

The question becomes is this an error in our usage, or is this is a bug in awstats not specifying the correct MM from the date in the logs.

I'll assume for the time being that the YYMM value must be set to the values you want, thus the solution would then be to check for the current day of the month, and if the day is 1, then use MM-1, and specify the actual number. (lower YY as well if MM ends up to be 0). This would need to be done in the awstats_process.sh script. I'll add this to the versions system to be address in the next release. This is only my best guess at this time, but seems like a reasonable one.

John

tqhosting
08-12-2009, 06:54 AM
Hello, can I get an official response as to whether or not this issue has been resolved :confused:? Thanks.

smtalk
08-13-2009, 04:45 AM
Related: http://directadmin.com/features.php?id=976

rootbsd
06-18-2010, 11:03 AM
Related: http://directadmin.com/features.php?id=976

I don't think that is directly related

This bug is in the feature request system here: http://www.directadmin.com/features.php?id=974

but hasn't yet been released.