[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] webalizer problem



"ismail arit" <iarit@xxxxxxxxx> wrote:
> Couple of months ago, we realized that logrotate and
> webalizer  were crashing the raq3 server, so we
> removed cron job entries, since then, all works ok.
> But, some of our customers want to see the webalizer
> log reports. How can i manually run webalizer for a
> single site?
> I appreciate any help or hint!!

Something like the following, which is from a Webalizer script I wrote.

#!/bin/sh
SITE=host.domain.tld
CONF=/etc/webalizer.conf
WEBALIZER=/path_to/webalizer 
DNSCACHE=/path_to/dnscache.log

# If you don't care about using -n the way I do
# then you can ommit the next 4 lines and
# -n $DOMAIN from the command below.
SITE_LENGTH=${#SITE}
SITE_FIRST_DOT_POSITION=`expr index "$SITE" .`
DOMAIN_START=`expr $SITE_FIRST_DOT_POSITION + 1`
DOMAIN=`expr substr $SITE $DOMAIN_START ${#SITE}`

$WEBALIZER -c $CONF -p -r $SITE -s $SITE -n $SITE \
-n $DOMAIN -N 10 -D $DNSCACHE \
-o /home/sites/$SITE/users/webalizer/web \
/home/sites/$SITE/logs/web.log

-- 
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/