AwStats plugin for DA [Still in BETA]

Sorry,
I have read it carefully and made sure my entry is exact. I have the same problem. It doesn't matter if I run:

/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

or run

/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

from the cron, the errors are the same.
 
rldev said:
Sorry,
I have read it carefully and made sure my entry is exact. I have the same problem. It doesn't matter if I run:

/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

or run

/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

from the cron, the errors are the same.

As the error states a "&" and the first command should not give any problems.
 
These errors are being produced by the script awstats_updateall.pl. The script executes, and the error is generated.

The script ends with 12 lines of the same command:

action=tally&value=all now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

Is there a problem with this command in the script? Is there a reason why this command is repeated 12 times consecutively at the end of the script?

Sorry for being thick headed here, I'm just following your instructions.
 
Sorry RLDEV but I can't reproduce your error in any way possible. :(

Try reinstalling the plugin (theres an update out) maybe the scripts has become somehow corrupted.

Try running:

/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

Instead of the others :)
 
I just updated the plugin and it works now.I have been runnin gthe latest updates just so that you know. Thanks.
 
Error: An AWStats update process seems to be already running for this config file. Try later. If this is not true, remove manually lock file '/tmp/awstats.sciagnik.info.lock'.
this error is always when I click update stats :( On others domains is OK :(

All domain are updating on 8, 12, 16 etc... but this one domain I must update from shell :( Why ?
 
Well Awstats sometimes has difficulties with some domains log files. With these domains the script exits with failure but still processes the log and statistics. Because of this the lock file isn't removed.

How to remove the check, look in this thread about disabling the lock file. This could cause some serious problems if someone hits the update button 100 times ;)

Best way is to disable updatefrombrowser in the template conf.

Just look through this thread and you'll find the solution.
 
I've been using awstats on a few domains but I've noticed that there are days when there are very few visitors to all websites. I presume there might be an issue with log rotation occurring before the awstats analysis.

What time should I run the awstats in the crontab? It's currently set to 2:30am.


Thanks,
Matt
 
mattbates said:
What time should I run the awstats in the crontab? It's currently set to 2:30am.

I have less than 50 domains on my server so I run it every 2 hours from crontab.

However, you should make sure it runas a final time before DA does housekeeping. (12:10 AM???)

=C=
 
Best way is to replace thew DA tally all that will rotate the log:

10 0 * * * 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

This way it will first update the stats and then it will let DA housekeep ;) (and rotate the logs)
 
This is what I have in my cron. It runs once. When doing so it places the following code to awstats_updateall.pl now . Everytime it runs after this, it just adds another line of the same command to the file and that is all it does.

/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

I'm not sure why I am having such a problem with this.
 
Feature request for the admin level:

* Allow admin to set 'DNS resolving isn't handled by awstats' for all users/domains.

Further note: this specific data is gone after i upgraded from 2.1 to 2.1.2.

Furthermore I really don't have any problems with awstats :)
 
rldev said:
This is what I have in my cron. It runs once. When doing so it places the following code to awstats_updateall.pl now . Everytime it runs after this, it just adds another line of the same command to the file and that is all it does.

/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

I'm not sure why I am having such a problem with this.

Please describe your problem more clearly. You say it adds another line of the same command to the file ? wich file do you mean ?
 
When the cron runs it adds the the command to the awstats_updateall.pl file.
Each time it runs, it will add the same command line at the end of the file.
So the end of the file looks like this:

/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

When this command is present in the file, the cron update does not work. If I remove these lines it works. So basically it only works the first time when I clean the file.
 
Hi Guys,

I did the update via the command prompt (the connection timed out when I did it webbased).

Thereafter, all pages show:

Error: Not same number of records of BrowsersSearchIDOrder (96 entries) and BrowsersHashIDLib (97 entries without msie and netscape) in Browsers database. Check your file ./lib/browsers.pm

I will be able to fix this the hardcore way, but what has gone wrong?
 
My awstats.pl's didn't upgrade. That was the problem. DA's plugin manager says that it is up2date, and the awstats.pl in the directadmin folder is the right one.

Is there a script to update it?
 
Back
Top