AwStats plugin for DA [Still in BETA]

Chrysalis said:
I have a problem that script I ran to mass change my awstat config files now has made an error, at the top of each awstats page is an error about duplicate entries. although it does work just looks messy.

Correct the error in the template config file and re-run the script ;)
 
Hey, why nobody didn´t mention this before :(

I have been dealing with this with some weeks....

BTW How can I do to unzip my old logs and make awstats parse them...


fusionictnl said:
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

Use this for Cron as this will first update the stats before the rotation. Stats generation can take a long time on huge numbers of websites, so best is to use this cron line instead of the standard DA tally all in the cron ;) This should fix it.
 
albatroz said:
Hey, why nobody didn´t mention this before :(

I have been dealing with this with some weeks....

BTW How can I do to unzip my old logs and make awstats parse them...

I found something about AWSTATS to process Gzipped logs

LogFile="/var/log/apache/access.log"
# the following setting parses all logs including old gzipped archive logs
#LogFile="/usr/local/awstats/logresolvemerge.pl /var/log/apache/access.log* |"

I'm not sure if the logresolvemerge.pl does exists in my awstats setup. I can't check it at the moment, but someone else should probably verify this. This can be added to the awstats.none.conf (template config) and should parse ALL logs. (Could cause it to slow down the update process big time!)
 
Problem using awstats

Hi,

Great plugin to use, but i have a small problem.

I'd like to have stats updated hourly, and if i don't do it regurlaly by clicking on the link, it doesn't update. result : 2 days without stats made

although i've inserted cronjob indicated in thread but it doesn't seem to have worked.

I've made the following modification in etc/cron.d/directadmin_cron:

2 0-23/1 * * * /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

but still doesn't seem to work

Anyone can help me ???

tdldp
 
Question

Hi,

Does plugin support only CGI based awstats or it also supports static HTML pages. I dont want awstats via CGI at my box because of many security vulnerabilities in awstats...

Is it possible to configure plugin to generate static html pages?

If so - how to do it?

Kind Regards,
 
shell command test

hi there,

i've executed shell command which works with no problem.
yet the stats do not appear updated on awstats.
I am forced to click manually on the update link to have stats appear.
I therefore believe that stats will be lost, if at least one click is not made each day.. Okay for moment only 3 domains to check, but what when there will be 40 or 50 domains...

Any idea ???

Edited : Although first test seemed to work, i've doubled it, and with the 243 updates made, it managed finally to update automatically awstats (time indicated corresponds to latest update made on shell.... theres hope...)

Will check if cron job works.
I've modified it to balance load through the hour (a few jobs run between 0 - 10 minutes, so i pushed it to 25)
hope it will work, will let u know tomorrow



Tdldp
 
Last edited:
Problems with cron job

Ok so finally, the cron job doesn't work
shell command works fins, but, cron doesn't execute itself.
awstat was not updated since last shell command.

is it my cron coding ??

25 0-23/1 * * *
 
Hi,

I know that there is: awstats_buildstaticpages.pl script, but I was wondering if plugin can automate this somehow.

In other way: I have to write own script for example in perl to run awstats_buildstaticpages.pl for each domain for each user...

Kind Regards,
 
Last edited:
tdldp

Use the cron command in the first post and check if that one works.

qlsys

This plugin will not be expanded with any features. You should do it yourself. ;)
 
All users on 1 server no longer have the awstats link I have tried deinstalling and reinstalling the plugin, any ideas what could be the cause of failure?
 
In the user_img.html and user_txt.html is a simple code that verifies the username in the permissions.txt in the hooks dir.

If it isn't in the permissions.txt it won't show up ;) Good way to start there
 
Cron Resolved

Don't know why, but the original post cron doesn't work, neither did the one i put work either.

So i tried another one :

25 * * * * and weirdly, it worked ... i've just checked and all logs were processed... thks a lot for all your help fusion, and by the way ;) ;) great great plugin.....

Tdldp
 
Cron mail problem...

Once again a minor problem...

I get the following message in my exim mainlogs regarding the awstats cron mail :It repeats itself at every update job.

2005-06-01 08:05:05 1DdMLd-0007hU-8B <= root@machine U=root P=local S=3074 T="Cron <root@machine > /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -aw" from <root@machine > for root
2005-06-01 08:05:05 1DdMLd-0007hU-8B User 0 set for local_delivery transport is on the never_users list
2005-06-01 08:05:05 1DdMLd-0007hU-8B == root@machine R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2005-06-01 08:05:05 1DdMLd-0007hU-8B ** root@machine : retry timeout exceeded
2005-06-01 08:05:05 1DdMLh-0007he-VG <= <> R=1DdMLd-0007hU-8B U=mail P=local S=3862 T="Mail delivery failed: returning message to sender" from <> for root@machine
2005-06-01 08:05:05 1DdMLh-0007he-VG User 0 set for local_delivery transport is on the never_users list
2005-06-01 08:05:05 1DdMLh-0007he-VG == root@machine R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2005-06-01 08:05:05 1DdMLh-0007he-VG ** root@machine : retry timeout exceeded
2005-06-01 08:05:05 1DdMLh-0007he-VG root@machine : error ignored
2005-06-01 08:05:05 1DdMLh-0007he-VG Completed
2005-06-01 08:05:05 1DdMLd-0007hU-8B Completed


Any idea on how to correct this problem for a newbie ??? I understand that root is refused as never-user corresponding in my exim.conf to the following line :
never_users = root
which is default paranoia security setting...

Thks for your help

Tdldp
 
You can make the cronjob silent.

So for example, you would modify that cronjob to look something like

* * * * * /run/my/script.pl 1>/dev/null 2>&1
 
GoranTornqvist said:
Hello,
How does awstats work with subdomains?
Is it possible to get statistics per subdomain?

Awstats doesn't support Subdomains as far as I know. They are just added to the totals.

An option is to create a subdomain AS domain in DA. This way it will get it's own awstats page.
 
Back
Top