PDA

View Full Version : awstat statistic (last day of the month)



0k.a.b.a0
11-02-2009, 11:10 PM
Hello,

On our server we are using awstats for stats calculation, which are installed by standard means (not as a plug-in). After a couple of months of their functioning we noticed that on the last day of the month the stats on awstats are showing a zero value. Did anybody face such a problem? Is there any way of solving it?

ditto
11-03-2009, 02:41 AM
I have the same problem! At the last day of each month, every user account and domain lack the statistic for this day. I have installed AWStats like desribed here: http://directadmin.com/features.php?id=894

The content of my directadmin_cron at /etc/cron.d/directadmin_cron is:


* * * * * root /usr/local/directadmin/dataskq
2 0-23/6 * * * root echo 'action=vacation&value=all' >> /usr/local/directadmin/data/task.queue;
#5 5 * * 0 root /sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a;
10 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
20 4 1 * * root echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
0 4 * * * root echo 'action=check&value=license' >> /usr/local/directadmin/data/task.queue

Notice that AWStats statistic is generated 10 minutes after midnight. Maybe it will fix the problem to change it to 15 minutes before midnight?

Also I am running DirectAdmin version 1.34.1, Debian 5, PHP 5.2.11, Apache 2.2.14.

Also, how can I make it so that /home/USER/domains/DOMAIN.TLD/awstats/.data/awstats.DOMAIN.TLD.conf is chowned to the user, and not chowned to root? I need it to be chowned to each user so that they can edit the AWStats .conf file. Usually they would want to add there own IP adress to the filter, so that the statistic don't include trafic from themself -- now I have to do it for them, every time.

scsi
11-03-2009, 05:31 AM
Just change it to @daily

ditto
11-03-2009, 05:35 AM
Just change it to @daily

Can you please explain what I should change to @daily -- maybe you can give a example? Thanks!

scsi
11-03-2009, 05:43 AM
Well based on their example it should be running 10 mins after midnight daily. Its gotta be a bug in the Awstats program then. Does webalizer have the same problem?

ditto
11-03-2009, 05:49 AM
[..] Does webalizer have the same problem?

I don't know about Webalizer because I have disabled it in the configuration.

0k.a.b.a0
11-03-2009, 04:33 PM
Hello,

I have a couple of servers under DirectAdmin with different operation systems (FreeBSD and CentOS). The problem with awstats was found on all the servers. And I use webalizer on one server. Webalaizer data is also incorrect. Can this problem be caused by log files rotation on the last day of a month?

ditto
11-08-2009, 02:38 AM
Maybe we should contact DirectAdmin support about this? Is anybody else experience this problem?

ditto
12-01-2009, 11:53 PM
I have now contacted DirectAdmin support about this, and it turns out that this is a known issue already in the version system: http://www.directadmin.com/features.php?id=974

ditto
01-29-2010, 01:13 AM
I have now contacted DirectAdmin support about this, and it turns out that this is a known issue already in the version system: http://www.directadmin.com/features.php?id=974

Is there any time frame for when this bug will be fixed? It would be nice to have it fixed before you ship the next version of DirectAdmin. Thanks!