Last day of the month - No awstats?

ViAdCk

Verified User
Joined
Feb 14, 2005
Messages
254
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 :)
 
same here

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.
 

Attachments

  • mar.gif
    mar.gif
    4.8 KB · Views: 195
  • apr.gif
    apr.gif
    4.9 KB · Views: 177
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
 
After doing soe googling and looking over the awstats_process.sh, I have a suspicion that it's caused by this option:
Code:
-builddate=%YY%MM
where 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
 
fixed?

Hello, can I get an official response as to whether or not this issue has been resolved :confused:? Thanks.
 
Back
Top