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

Re: Awstats



Bon, alors j'avance !

Dans le fichier joint, vous verrez le résultat de mon expérience avec Awstats.

J'ai fait une erreur de saisie, au départ, en mélangeant 2 domaines dans mes
fichiers de configuration, puis en lançant la création des fichiers de stats avec
peut-être encore une autre erreur de saisie (il était tard ce soir-là)…

Le problème est qu'on ne peut plus rattraper l'erreur ensuite, il semble exister
une mémoire de ce que l'on a fait auparavant, et qui est reproduit ensuite que
les paquets soient supprimés ou non !

J'ai donc créé un 3ème fichier de configuration, mais avec un autre nom, pour
le domaine qui m'a posé problème, et apparemment, là ça se passe bien.

Actuellement, je relance tout au propre, je ne suis donc pas encore sûr que ce
soit concluant ;-)

Bonne lecture,

Ph. Gras
# ls -all -R /var/lib/awstats
/var/lib/awstats:
total 28
drwxrwxrwx  4 www-data www-data 4096 oct.  29 19:25 .
drwxr-xr-x 38 root     root     4096 oct.  29 17:42 ..
-rw-r--r--  1 www-data www-data 6879 oct.  29 19:20 awstats102013.txt
-rwxrwxrwx  1 www-data www-data  216 oct.  29 19:10 dnscachelastupdate.hash
drwxrwxrwx  2 www-data www-data 4096 oct.  29 19:20 NDD2
drwxrwxrwx  2 root     root     4096 oct.  29 19:20 NDD1

/var/lib/awstats/NDD2:
total 1260
drwxrwxrwx 2 www-data www-data   4096 oct.  29 19:20 .
drwxrwxrwx 4 www-data www-data   4096 oct.  29 19:25 ..
-rw-rw-rw- 1 www-data www-data 620550 oct.  29 19:20 awstats102013.NDD2.txt
-rwxrwxrwx 1 www-data www-data 607613 oct.  29 19:14 awstats102013.NDD1.txt
-rw-rw-rw- 1 www-data www-data  24254 oct.  29 19:20 dnscachelastupdate.NDD2.hash
-rwxrwxrwx 1 www-data www-data  24279 oct.  29 19:14 dnscachelastupdate.NDD1.hash

/var/lib/awstats/NDD1:
total 92
drwxrwxrwx 2 root     root      4096 oct.  29 19:20 .
drwxrwxrwx 4 www-data www-data  4096 oct.  29 19:25 ..
-rw-rw-rw- 1 www-data www-data 57893 oct.  29 19:20 awstats102013.NDD1.txt
-rw-rw-rw- 1 root     root     22780 oct.  29 19:17 dnscachelastupdate.NDD1.hash

~# perl /usr/lib/cgi-bin/awstats.pl -config=NDD2bis -LogFile="/usr/share/awstats/tools/logresolvemerge.pl /var/log/nginx/NDD2.access.log.* |" -update
Create/Update database for config "/etc/awstats/awstats.NDD2bis.conf" by AWStats version 7.0 (build 1.971)
From data in log file "/usr/share/awstats/tools/logresolvemerge.pl /var/log/nginx/NDD2.access.log.* |"...
Phase 1 : First bypass old records, searching new record...
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: 393811
 Found 0 dropped records,
 Found 0 comments,
 Found 0 blank records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 393811 new qualified records.

# ls -all -R /var/lib/awstats
/var/lib/awstats:
total 32
drwxrwxrwx  5 www-data www-data 4096 oct.  29 19:43 .
drwxr-xr-x 38 root     root     4096 oct.  29 17:42 ..
-rw-r--r--  1 www-data www-data 6879 oct.  29 19:20 awstats102013.txt
-rwxrwxrwx  1 www-data www-data  216 oct.  29 19:10 dnscachelastupdate.hash
drwxr-xr-x  2 root     root     4096 oct.  29 20:47 NDD2bis
drwxrwxrwx  2 www-data www-data 4096 oct.  29 20:53 NDD2
drwxrwxrwx  2 root     root     4096 oct.  29 20:53 NDD1

/var/lib/awstats/NDD2bis:
total 1244
drwxr-xr-x 2 root     root        4096 oct.  29 20:47 .
drwxrwxrwx 5 www-data www-data    4096 oct.  29 19:43 ..
-rw-r--r-- 1 root     root     1240308 oct.  29 20:47 awstats102013.NDD2bis.txt
-rw-r--r-- 1 root     root       24576 oct.  29 20:47 dnscachelastupdate.NDD2bis.hash

/var/lib/awstats/NDD2:
total 644
drwxrwxrwx 2 www-data www-data   4096 oct.  29 20:53 .
drwxrwxrwx 5 www-data www-data   4096 oct.  29 19:43 ..
-rw-rw-rw- 1 www-data www-data 624901 oct.  29 20:53 awstats102013.NDD2.txt
-rw-rw-rw- 1 www-data www-data  24410 oct.  29 20:52 dnscachelastupdate.NDD2.hash

/var/lib/awstats/NDD1:
total 92
drwxrwxrwx 2 root     root      4096 oct.  29 20:53 .
drwxrwxrwx 5 www-data www-data  4096 oct.  29 19:43 ..
-rw-rw-rw- 1 www-data www-data 58034 oct.  29 20:53 awstats102013.NDD1.txt
-rw-rw-rw- 1 root     root     22764 oct.  29 20:52 dnscachelastupdate.NDD1.hash

Le responsable ? /var/cache/apt/archives/awstats_7.0~dfsg-7_all.deb
Le 29 oct. 13 à 10:38, Philippe Gras a écrit :

Hello World !

après avoir fait une erreur dans la génération des fichiers avec perl, je n'arrête pas
de planter lors de la génération des fichiers pour un second domaine.

L'erreur est bien documentée sur les moteurs de recherches, hélas elle ne renvoie
pas à une solution probante.

J'ai désinstallé/réinstallé, mais je bloque toujours au même endroit.

Y aurait-il un fichier à écraser pour pouvoir relancer la configuration de Awstats ?

Merci pour vos réponses,

Ph. Gras
--
Lisez la FAQ de la liste avant de poser une question :

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org



Reply to: