Webalizer / Analog stats stop updating

HOSTFORWEB

Well-Known Member
PartnerNOC
Feb 6, 2002
94
0
306
I have noticed that after cpanel update our web stats stop updating for all accounts.
Anyone have same problem?
 

First Faze

Well-Known Member
Jan 30, 2002
47
0
306
As far as analog/webalizer.. It is a very essential tool for me personally and a lot of users seem to have problems, I have tried the script in /scripts to fix a users logs but it does not seem to work, for one user for example.. my domain, it doesn't resolve any IP.. Therefore a lot of logging does not work.. Anyone know how to 100% reset a users log files?
 

HOSTFORWEB

Well-Known Member
PartnerNOC
Feb 6, 2002
94
0
306
Hi,

1.Modify in /var/cpanel/cpanel.config
extracpus=10

2.run /scripts/fixwebalizer

3. Restart CPANEL
/etc/rc.d/init.d/cpanel3 restart

That fixed my problem.
 

First Faze

Well-Known Member
Jan 30, 2002
47
0
306
I dont even have a line like that in that file, what is this going to do?
 

AlaskanWolf

Well-Known Member
Aug 11, 2001
535
0
316
Fremont CA
anyone got any other fixes, this seemed not to fix my customers

when i check his stats i get Cannot find an acceptable log file for your domain.
 

rustelekom

Well-Known Member
PartnerNOC
Nov 13, 2003
290
0
166
moscow
BTW. When hoster have hundred of accounts simple script like showed below may help him.

#!/bin/sh
cd /home
for file in *
do
/scripts/fixwebalizer $file > script.log
sleep 2
echo $file
done

and you can see all output information produced by fixwebalizer script by following command:

tail -120 script.log
 

nettcom

Active Member
Jul 5, 2003
29
0
151
Fixing webalizer

I have many users to fixwebalizer, bad using the script

#!/bin/sh
cd /home
for file in *
do
/scripts/fixwebalizer $file > script.log
sleep 2
echo $file
done


I have small problem, script stop when Found bad log files,
and when run again this script begin to fix from first user again :(

anyone have an idea to modify this script to read users to fix from a txt file

example:

format of list-of-users-to fix.txt

user1
user2
usern

script ;
-----------------
(I don know the correct programming procedure)
if any one can translate very thanks!

#!/bin/sh

open list-of-users-to fix.txt

read all lines

for $line
do
/scripts/fixwebalizer $file > script.log
sleep 2
echo $file

done


if any one helpme thanks!!
 
Last edited:

DigitalN

Well-Known Member
Sep 23, 2004
419
1
168
Code:
#!/bin/sh

open list-of-users-to fix.txt

could be ..

Code:
#!/bin/sh

for user in `/bin/cat list-of-users-to fix.txt`
do
script.....
.....
done