Changeset 1794

Show
Ignore:
Timestamp:
02/28/07 11:24:26 (1 year ago)
Author:
pierre-gilles
Message:

Add the stat of the day and it fix the loss of data during logrotate window...
There is certainly a better way to do that, but I don't have the time to search in wich exact order we have to launch the process to avoid the loss of data.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-awstats/trunk/alternc-awstats

    r1558 r1794  
    4545    do     
    4646      echo "processing $DOM" 
    47       /usr/lib/cgi-bin/awstats.pl -config=$DOM  -LogFile=$ACCESSLOG 
     47      /usr/lib/cgi-bin/awstats.pl -config=$DOM  -LogFile="$ACCESSLOG" 
    4848      read DOM 
    4949    done 
     
    5454    if [ -z "$ACCESSLOG" ]  
    5555        then 
    56         ACCESSLOG="/var/log/apache/access.log.1
     56        ACCESSLOG="/usr/share/doc/awstats/examples/logresolvemerge.pl /var/log/apache/access.log /var/log/apache/access.log.1 |
    5757    fi 
    5858    mysql -h"$MYSQL_HOST" -p"$MYSQL_PASS" -u"$MYSQL_USER" "$MYSQL_DATABASE" -B -e "SELECT hostname FROM aws" |grep -v "^hostname" | dostat