AwStats plugin for DA [Still in BETA]

FYI: No pay, no cure :p

No i'm working on it right now and I think i've found the problem in the awstatsinstall.php.. The symlink creation routine isn't correctly working when a symlink doesn't exists or if it exists. If it exists or not it will only attempt to delete but doesn't recreate it :p
 
I have not had any problems with this plugin, runs great. The only problem I am having is with updating via the cron.

I have done the following as instructed in this post:

Replaced in /etc/cron.d/directadmin_cron:

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

With:-

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

Stats are not updating. Any have any ideas on how I can figure the problem out. I have checked my cron logs, but see no errors.
 
I only see errortaskq.log

The only erros I see are like as follows:

2005:02:04-06:30:00: Running: Error Opening /proc/30222/status
2005:02:04-06:50:00: Running: Error Opening /proc/16832/status
2005:02:04-07:00:00: Running: Error Opening /proc/9196/status
2005:02:04-07:10:00: Running: Error Opening /proc/3815/status
2005:02:04-07:30:00: Running: Error Opening /proc/7816/status
 
You could try to run the following command:

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

in SSH to be certain it works ;)
 
Awstats doesn't collect statistics for 1 domain. I pressed "refresh" button and waited for 20 minutes.
[root@server cron.daily]# ps -ax | grep perl
29019 ? S 0:03 /usr/bin/perl awstats.pl
When I pressed refresh again, I got an error
"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.matureland.org.lock'. "
Removing this file and restarting refresh process don't help
What should i do?
 
If there's a lock file the process isn't finished, so WAIT. It could take a lot of time to complete because of the size of the statistics and the low cpu/mem consuming process (just takes a little longer the first time)

If it doesn't stop then you probably killed the process by hand and the lock file must be removed by hand /tmp/*.lock

I would just say that I never had any problems with it if you just wait for it to complete. You can disable it (told a hundred times in this thread) or you can use the cron job and the update feature together.
 
Last edited:
OK, but it works more then 30 hours, and hadn't finish! and for other domains it takes less then 10 minutes
 
Where do i set the DNSLookup=0

If DNS lookup was already made by the logger (web server), you should change your setup DNSLookup=1 into DNSLookup=0 to increase awstats speed.
 
Feature request.

When upgrading the plugin can it not overwrite 'awstats.none.conf' as mine is customised. Also I noticed on the latest version it auto installs to all enabled domains? Enabling the awstats.conf I dont want for all of them.

Otherwise I like to say it is working here on the new version.
 
Ok I fixed the config stuff edited my master and ran that script, but I got a new problem, one servers runs it great and the other server isnt loading half the icons on the page.
 
ok I see the difference between the 2 servers 1 has icon as a symlink to '/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/icon' and the other has its own dir.

Should it be its own dir?

The one that worked had its own dir so I manually set the other one the same, can the install procedure fix this thanks.
 
Last edited:
Chrysalis said:
I think it seems the case you need to integrate 6.3, I dont know how long that will take but it might settle a lot of people's nerves :( I am at the moment considering disabling awstats server wide until I run 6.3.

I think you should read the first post in this thread more often before you try posting and read a few post before this ;)

You will see it is already integrated!
 
I get the following error when 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

manually:

Operator or semicolon missing before &value at /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/
awstats_updateall.pl line 162.
Ambiguous use of & resolved as operator & at /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/aw
stats_updateall.pl line 162.
Bareword found where operator expected at /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awsta
ts_updateall.pl line 162, near "/directadmin/plugins"
(Missing operator before plugins?)
syntax error at /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl line 152,
near "/usr/local"
Execution of /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl aborted due t
o compilation errors.
 
rldev said:
I get the following error when 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

manually:

Operator or semicolon missing before &value at /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/
awstats_updateall.pl line 162.
Ambiguous use of & resolved as operator & at /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/aw
stats_updateall.pl line 162.
Bareword found where operator expected at /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awsta
ts_updateall.pl line 162, near "/directadmin/plugins"
(Missing operator before plugins?)
syntax error at /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl line 152,
near "/usr/local"
Execution of /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl aborted due t
o compilation errors.

Read my first post carefully you probably forgot 1 "&" if used in cron! It should be "&&" in combination with the DA tally!
 
Back
Top