AwStats plugin for DA [Still in BETA]

there probably is a script user_create.sh /usr/local/directadmin/scripts/custom

It gives an enviroment variable USERNAME and DOMAIN. By wich you can add the statistics to the user.

Probably better to use both, user_create.sh and domain_create.sh (or something)
 
What is this line mention by the plugin under the admin in 6.2:

"Couldn't deteremine user standardly!"

?
 
That means that the plugin did an other lookup to verify wich users are located on you're system. This is a less accurate listing. If it DOES show the users that you have, you can ignore this line. It's just a warning.
 
AHHHGGGGG...

The most important site on my server is not updating. I'm sure that the stats are gigantic but should that matter?

I have a Cron job to update nightly. That isn't working on www.domain.com but it is on domain.com

I also have tried to do it manually and I get nothing.

Do www.domain.com and domain.com have to be different?

Please help these people are dying for their stats and since I installed AWstats it killed Webalizer and AWstats is not working for them.

thanks,
BRandt
 
Ok you can do a manual update to check what's going wrong if the following DOES exists:

/etc/awstats.[domain.ext].conf (www shouldn't be there).

Command:

/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl -config=[domain] -update

output report.
 
Thanks so much for the quick response.

First of all the dir /etc/awstats/ does contain BOTH awstats.mtbaker.us.conf & awstats.www.mtbaker.us.conf.

Is this how it should be? Secondly I'm running the command that you asked me to now and it hasn't finished but here is the log from last nights update with just the entries relative to the domain in question.

Running '"/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl" -update -config=mtbaker.us -configdir="/etc/awstats"' to update config mtbaker.us
Update for config "/etc/awstats/awstats.mtbaker.us.conf"
With data in log file "/var/log/httpd/domains/mtbaker.us.log"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record has fallen on another record.
So searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 13109
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 13109 new qualified records.

Running '"/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl" -update -config=www.mtbaker.us -configdir="/etc/awstats"' to update config www.mtbaker.us
Update for config "/etc/awstats/awstats.mtbaker.us.conf"
With data in log file "/var/log/httpd/domains/mtbaker.us.log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 13109)
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 13109
Found 13109 already parsed records.
Parsed lines in file: 84
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 84 new qualified records.

I should say that I installed your plugin way back maybe 6 months ago or more even. I can't remember and I've updated it through the DA plugin manager interface. I've never uninstalled it or anything like that. And it's never really worked like it should.

Hopefully we can get it right. Of course I wait until someone is demanding it....:mad: I'm a dork.

but thanks for helping!
 
Wich version are you currently running ?

For the reinstall/update the following is needed:

- Remove all /etc/awstats/awstats.*.conf files
- Update/Reinstall the plugin
- Install again on the domain(s) or use the all domains script in the hooks dir.
 
Hello,

Sorry if some one has explained it before.
But is there any way I could run auto-update via cron tab for ALL domains ever hour.

in AwStats documentation I found it for a single domain but what about every domain on webserver.
 
icreative said:
Hello,

Sorry if some one has explained it before.
But is there any way I could run auto-update via cron tab for ALL domains ever hour.

It's in there somewhere but I forget where. Here's my cron entry that runs every other hour for all domains.

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

HTH,

=C=
 
Thanks mate, but i keep getting "bad minute error in cron tab file" when i try to add it visa SSH.

I tried to use:

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

same error.
 
Thanks for the help! I uninstalled and reinstalled and it works great now. I have about 100 domains on this server and it literally took hours to complete the first update all stats. Is that normal? Will it be the same everytime? Or just the first?

Thanks this stats program is awesome!

-brandt
 
First time always takes up a lot of time.

After that depending on you're interval of Cron Run it could still take up a lot of time ;)

It doesn't matter that much as the script doesn't consume a lot of resources..
 
GoranTornqvist said:
How do I activate awstats automaticly for new users Im creating thru DA? Is it possible?

fusionictnl said:
there probably is a script user_create.sh /usr/local/directadmin/scripts/custom

It gives an enviroment variable USERNAME and DOMAIN. By wich you can add the statistics to the user.

Probably better to use both, user_create.sh and domain_create.sh (or something)

Hmmm, I'm no DA guru so I don't quite follow.
How is this script called? What does it do?
I don't have any /usr/local/directadmin/scripts/custom dir on my box.
 
I've successfully installed the Awstats plugin - works great, thanks :).

However does anyone know if it is possible to restore old Awstats data? I was running it before for a domain and there is significant amount of historic data that I'd like to restore. Can the data files be combined in any way?

I'd appreciate anybody's thoughts and ideas.

Cheers,
Matt
 
The Awstats is altered by me and won't be vunarable to this exploit as some more fixes.
Updating my version to 6.2 would let me redo some of the fixes again to make it workable again. In time I will maybe upgrade the version ;)

Development version is 6.3 - 2005-01-22 08:43
 
Last edited:
I have been running version 2.03 of your plugin for a long time without problems.

Recently installed Awstats for a domain and got this error message

Warning: Can't read file "status_http.pm" (status http detection will not work correctly).
Check if file is in "./lib" directory and is readable.

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

Setup ('/etc/awstats/awstats.aep-peru.org.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

......... why? the awstats.aep-peru.org.conf is in its place... and my other previous installations are working ok
 
Back
Top