AwStats plugin for DA [Still in BETA]

koliber2 said:
how can i set another time to refresh data to awstats? I don't want update awstats in one time with update Direct Admin data. Is is possible? How can i do this.

Anyway great plugin:)

The cron example in the first page runs the awstats update BEFORE the DA tally, so they won't run at the same time ;)
 
The cron example in the first page runs the awstats update BEFORE the DA tally, so they won't run at the same time

I used your example in the /etc/cron.d/directadmin_cron file but somehow the stats for a day were empty.

Is that tally part the only program which will 'empty' the logs or is there a other program which is running and can empty logs (like a logrotate) ?

Now i did set the awstats at 0.10 everynight and tally at 0.50 maybe that will solve the problem. But if u are sure your example has to work then there must be something else emptying the logs.

Allready thanks.

speed.
 
when i try manually refresh data (via ssh) awstats was refresh first few users,then stop and i dont see any new data on awstats for rest users. Can i fix it? REfresh stop on one users and don't refresh others user. Help

[suggestion] Is possible to refresh data who have awstats active (via admin) only? What i mean? I mean: AWSTATS should refresh only this users, who was active awstats from admin + who activate it via Direct Admin. Is it possible?
 
Last edited:
Speedok:

The tally should be the only log rotator on your system for the apache log files.


koliber2:

Only if the users activated awstats the conf file would be created in /etc/awstats. So not all domains will automaticaly be updated.

If you don't want a specific domain to be updated, because you revoked it's permissions. Then delete the conf file in /etc/awstats and offcourse it's awstats dirs in the users public_html (mandatory).

If the process stops while updating, it could be because the "next" domain has a huge log file. It can take a while.
 
What to do with this messages:

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.domain.nl.lock'.
 
Weccop said:
What to do with this messages:

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.domain.nl.lock'.

and if it keeps comming just alter the template config to not allow updates through the browser. But that's asked a million times already!
 
gadgetsguy said:
hello fusionictnl!

I have a question maybe you can help me with ...

I have ver 2.1.7 installed on one of my servers with DA, and I am running 14 users with 49 domains in total.

Every day, the same 5 domains are locked in the /tmp file ... I remove them, and they are there again tomorrow ...

What causes this, and what actions can I take to prevent it ... awstats works like a charm on all other domains!

Please advise
Tim H.


Bumping for fusionictnl :)

Where do I find this template config file?

thanks
Tim
 
Last edited:
Log-Roate Issue with AWStats

Hey all i have notice that all the Apache log files are located at

/var/log/httpd/domains

and it seems that there is a log-rotate script which move them to the user's home directory



how can i make sure that my AWSTATS will
process the LOG files before it got into the user homedirectory ??

,
i thought about running the update script on all websites within the script of the web rotate

but i was unable to find that script


help lease...
 
lol i found it (i think /etc/cron.d)

does
10 0 * * * root echo 'action=tally&value=all'

make the directadmin

to rotate all /var/log/httpd/domains

into user home directories


if thats it

then i will have to make script which

1) UPDATE the AWSTATS
2) LogRotate

What do you think ?
Any other solution ?
 
I think that resellers should be an option to activate the awstats to their clients instead of ask to the admin for it :D
 
I am new to operating a server and have never used ssh can someone please give me step by step on how to get awstats to update automatically for all domains. Thank You
 
I'm still having problems with Countries resolution.
How do I enable the GeoIP option?
which file has that configuration in it?


/usr/local/directadmin/plugins/awstats/hooks/cgi-bin # ll
total 612
-r-xr-xr-x 1 diradmin diradmin 5407 Oct 9 01:43 awredir.pl
-rwxr-xr-x 1 diradmin diradmin 54171 Oct 9 01:43 awstats.none.conf
-rwxrwxr-x 1 diradmin diradmin 527449 Oct 9 01:44 awstats.pl
-rwxr-xr-x 1 diradmin diradmin 5203 Oct 9 01:43 awstats_updateall.pl

What entry do I modify?

I also have the following plugins in the plugins directory:

/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/plugins # ll
total 164
-r-xr-xr-x 1 diradmin diradmin 3682 Oct 9 01:43 clusterinfo.pm
-rw-r--r-- 1 diradmin diradmin 2960 Oct 9 01:43 decodeutfkeys.pm
drwxr-xr-x 2 diradmin diradmin 4096 Oct 9 01:43 example
-rwxr-xr-x 1 diradmin diradmin 18286 Oct 9 01:43 geoip_city_maxmind.pm
-r-xr-xr-x 1 diradmin diradmin 3736 Oct 9 01:43 geoipfree.pm
-rwxr-xr-x 1 diradmin diradmin 15472 Oct 9 01:43 geoip_isp_maxmind.pm
-rwxr-xr-x 1 diradmin diradmin 15502 Oct 9 01:43 geoip_org_maxmind.pm
-rwxr-xr-x 1 diradmin diradmin 6677 Oct 9 01:43 geoip.pm
-rwxr-xr-x 1 diradmin diradmin 19616 Oct 9 01:43 geoip_region_maxmind.pm
-r-xr-xr-x 1 diradmin diradmin 5074 Oct 9 01:43 graphapplet.pm
-r-xr-xr-x 1 diradmin diradmin 4887 Oct 9 01:43 hashfiles.pm
-rwxr-xr-x 1 diradmin diradmin 7169 Oct 9 01:43 hostinfo.pm
-r-xr-xr-x 1 diradmin diradmin 2439 Oct 9 01:43 ipv6.pm
-rw-r--r-- 1 diradmin diradmin 4685 Oct 9 01:43 rawlog.pm
-r-xr-xr-x 1 diradmin diradmin 1890 Oct 9 01:43 timehires.pm
-r-xr-xr-x 1 diradmin diradmin 2954 Oct 9 01:43 timezone.pm
-rwxr-xr-x 1 diradmin diradmin 8218 Oct 9 01:43 tooltips.pm
-r-xr-xr-x 1 diradmin diradmin 4799 Oct 9 01:43 urlalias.pm
-r-xr-xr-x 1 diradmin diradmin 3616 Oct 9 01:43 userinfo.pm



So what and where do I need to make the changes?
All I see now is :


Domains/Countries
net Network net
Unknown Unknown ip
com Commercial com

instead of the country names.

Please advise.
If this is something that I need to tweak in the httpd.conf, please advise where and what specifically.

Thanks,

-Alon.
 
marcel

Only option is to remove all files by hand. Or make a script for it yourself. Very strange the plugin doesn't install awstats by itself, only if a "user" does it.

gadgetsguy

/usr/local/directadmin/plugins/hooks (or cgi-bin dir in the hooks dir).

judab

Use the cron in the first post. As that should fix it. You don't have to update/change any scripts after that.

sspt

Should I post:

ALWAYS USE LATEST DA RELEASE - EXTRA FEATURES AREN'T ADDED ANYMORE, SO DON'T REQUEST

In Big red letters ? :D

dannygoh

/etc/awstats should do the trick.

cybercavern

first post should explain what to configure. Google will answer all others.

SupermanInNY

As this plugin has (almost) the same awstats files as the original. You should look at the official website www.awstats.org for the specific solution, as I can remember it is in the FAQ/Manual.
 
It was unclear to me of how the mechanics of this work.
Now I understand:

There is a template file awstats.none.conf file that is being copied and created for each domain into:

/etc/awstats/

I was trying to modify the base template file and didn't see any changes in existing files.

Now I understand how this works.

Thanks,

-Alon.
 
with the new on demand hd quota updater in DA 1.26.1 will this rotate logs and mess up awstats or am I worrying over nothing?

Reason I am worried if a user clicks it, and then DA proceeds with a tally and rotates its logs this would then cause it to do the rotation with awstats tallying up its stats and ultimately have missing data. But if I am wrong and the on demand tally update feature doesnt rotate logs then this should be ok.
 
Chrysalis said:
with the new on demand hd quota updater in DA 1.26.1 will this rotate logs and mess up awstats or am I worrying over nothing?

Reason I am worried if a user clicks it, and then DA proceeds with a tally and rotates its logs this would then cause it to do the rotation with awstats tallying up its stats and ultimately have missing data. But if I am wrong and the on demand tally update feature doesnt rotate logs then this should be ok.

What does HD Quota has to do with apache logs ? They're talking about the HD Quota. Wich does not mean that everything will be tally'ed!
 
Well I used the crontab you gave as a way to make sure awstats does its tallying the same time as DA so no data is lost during log rotation, you still with me?

So if DA was to start rotating logs whenever a manual tally is run will awstats not tally up the stats in logs that were archived earlier in the day?
 
Back
Top