Awstats and 2xDA Tally

inferencia

Verified User
Joined
Aug 21, 2005
Messages
677
Location
Spain
Hello guys,

I see directadmin tally happening at 23:30 and again at 00:10

[root@xxxx~]# cat /etc/cron.d/directadmin_cron
* * * * * 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
0 23 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue


Is this correct :confused:
 
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

I think you've got the times wrong: 12:10 am and again at 4:20 am.

It should only happen once. On my machine that's at 12:10 am. My guess would be to set it at either midnight plus a few minutes or 4 am plus a few minutes, depending on whether your run your cron.daily at midnight or 4am.

Jeff
 
Hi Jeff,

Thanks for your response. But I was making refference to these repeated tallies:

0 23 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

10 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

Why are there 2 tally all ? Is this correct? Should there only be one?
 
That one I don't know; I don't run AWStats. Hopefully someone else will respond.

Jeff
 
Because one if for directadmin tally and the other is awstats only.

Just remove the && part if they run around the same time.
 
Excellent. We just weren't sure if there was a reason why both were running like 25 minutes apart. That's insane.

Thanks guys!
 
Back
Top