Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th May 2009, 14:42
filipealvarez filipealvarez is offline
Member
 
Join Date: Apr 2009
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Default Webalizer statistics only creates a daily stats

Hi there, I found one problem in the Ispconfig3/Webalizer on Ubuntu 8.04,
the webalizer only creates a daily stat (not acumulate the days).

Example: www.temautos.com.br/stats

How to fix it?
Is something in /etc/webalizer/webalizer.conf or with the logs?
Reply With Quote
Sponsored Links
  #2  
Old 8th May 2009, 19:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

you have to enable the partial log feature in webalizer.conf
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th May 2009, 20:32
filipealvarez filipealvarez is offline
Member
 
Join Date: Apr 2009
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks Till, add 'Incremental Yes' in webalizer.conf solves my problem.
Reply With Quote
  #4  
Old 17th May 2009, 13:58
martin1977 martin1977 is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Is there a way to "re-read" those stats that were forgot before enabling this option?

Best regards,
Martin
Reply With Quote
  #5  
Old 17th May 2009, 14:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

No, not as far as I know as the log that is used to create the statistics is deleted after some days.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 18th May 2009, 10:17
martin1977 martin1977 is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 0
Thanked 3 Times in 3 Posts
 
Default

OK, I found a way to feed webalizer with the "forgotten" statistics.

The following will go through the access log files for each domain and gather the information in the todays log file. The old logs are deleted (as the information is now stored in the actual log) to prevent running the command twice and dubblicating data by mistake.

Code:
find /var/log/ispconfig/httpd -name "*.gz" |while read g; do gzip -fd $g; done && find /var/log/ispconfig/httpd/ -maxdepth 1 -mindepth 1 -type d | while read i ; do rm $i/access.log && cat $i/*-access.log >> $i/access.log && rm $i/*-access.log && mv $i/access.log  $i/`date +%Y%m%d`-access.log && ln -s $i/`date +%Y%m%d`-access.log $i/access.log; done
Next time webalizer is running statistics it will consider all available information from the past days. Thereafter everything will run as usual.
( Do not forget to change the option "Incremental yes" in /etc/webalizer/webalizer.conf).

Best regards,
Martin
Reply With Quote
The Following User Says Thank You to martin1977 For This Useful Post:
falko (19th May 2009)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer & Fedora8 : blocked stats Vaddiszno Developers' Forum 2 21st January 2009 20:27
missing webalizer stats bolero Installation/Configuration 15 12th November 2008 17:28
Disable Webalizer stats bixtro General 2 10th September 2008 10:09
again on webalizer stats gilas Installation/Configuration 6 6th October 2006 17:16
webalizer stats not accessible only for one user gilas Installation/Configuration 4 21st July 2006 14:08


All times are GMT +2. The time now is 12:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.