#1 Le 30/12/2009, à 09:19
- amazigh42
[Webalizer] statistiques d’accès au serveur Squid
Bonjour,
Je recherche quelqu'un qui puisse m'aider car l'échéance de ma soutenance approche.
J'ai installé avec succès squid, nagios, webmin, sarg
également nessus mais pour l'instant son exploitation est ardue.
Cependant webalizer est récalcitrant (peut-être un hic dans le fichier webalizer.conf ?)
J'ai un doute sur la ligne 96
J'ai suivi ce tuto : http://doc.ubuntu-fr.org/webalizer
Quand je lance
/usr/local/etc# webalizer
J'ai ce message
Warning: Truncating oversized username
Skipping bad record (189)
Warning: Truncating oversized username
Skipping bad record (190)
Warning: Truncating oversized username
Skipping bad record (191)
Warning: Truncating oversized username
Skipping bad record (192)
Warning: Truncating oversized username
Skipping bad record (193)
Warning: Truncating oversized username
Skipping bad record (194)
Voici les dernières lignes de mon fichier access.log de squid
/var/log/squid# cat access.log
13.95.41.13 image/png
1262160206.939 183 192.168.1.11 TCP_MISS/200 1063 GET http://forum.ubuntu-fr.org/img/smilies/tongue.png rabah-desktop DIRECT/213.95.41.13 image/png
1262160206.947 190 192.168.1.11 TCP_MISS/200 1038 GET http://forum.ubuntu-fr.org/img/smilies/lol.png rabah-desktop DIRECT/213.95.41.13 image/png
1262160206.954 86 192.168.1.11 TCP_MISS/200 1060 GET http://forum.ubuntu-fr.org/img/smilies/cool.png rabah-desktop DIRECT/213.95.41.13 image/png
1262160206.966 97 192.168.1.11 TCP_MISS/200 1059 GET http://forum.ubuntu-fr.org/img/smilies/roll.png rabah-desktop DIRECT/213.95.41.13 image/png
1262160206.974 105 192.168.1.11 TCP_MISS/200 1060 GET http://forum.ubuntu-fr.org/img/smilies/mad.png rabah-desktop DIRECT/213.95.41.13 image/png
Voici les lignes non commentées de mon fichier webalizer.conf
/usr/local/etc# grep -n '^[^#]' webalizer.conf
29:LogFile /var/log/squid/access.log
52:HistoryName webalizer.hist
67:Incremental yes
76:IncrementalName webalizer.current
84:ReportTitle Statistiques Webalizer ##Entete qui apparaitra sur le rapport.##
96:HostName http://192.168.1.11:3128
110:PageType htm*
111:PageType cgi
146:HTAccess no
286:LinkReferrer yes
458:TopSites 20
460:TopKSites 20
462:TopURLs 20
464:TopKURLs 20
466:TopReferrers 20
468:TopAgents 20
470:TopCountries 20
472:TopEntry 20
474:TopExit 10
475:TopSearch 20
476:TopUsers 20
555:HideSite *webalizer.org
557:HideSite localhost
561:HideReferrer webalizer.org/
565:HideReferrer Direct Request
568:HideURL *.gif
569:HideURL *.GIF
570:HideURL *.jpg
571:HideURL *.JPG
572:HideURL *.png
573:HideURL *.PNG
574:HideURL *.ra
719:SearchEngine .google. q=
721:SearchEngine yahoo.com p=
723:SearchEngine altavista.com q=
725:SearchEngine aolsearch. query=
727:SearchEngine ask.co q=
729:SearchEngine eureka.com q=
731:SearchEngine lycos.com query=
733:SearchEngine hotbot.com MT=
735:SearchEngine msn.com q=
738:SearchEngine excite search=
740:SearchEngine netscape.com query=
742:SearchEngine mamma.com query=
744:SearchEngine alltheweb.com q=
746:SearchEngine northernlight.com qr=
Merci
Dernière modification par amazigh42 (Le 30/12/2009, à 09:30)
Hors ligne
#2 Le 30/12/2009, à 09:44
- amazigh42
Re : [Webalizer] statistiques d’accès au serveur Squid
Même problème en rajoutant la ligne 2238 (préconisée dans l'utilisation de Webalizer) dans le fichier squid .conf
2229 # TAG: emulate_httpd_log on|off
2230 # The Cache can emulate the log file format which many 'httpd'
2231 # programs use. To disable/enable this emulation, set
2232 # emulate_httpd_log to 'off' or 'on'. The default
2233 # is to use the native log format since it includes useful
2234 # information Squid-specific log analyzers use.
2235 #
2236 #Default:
2237 # emulate_httpd_log off
2238 emulate_httpd_log on
Hors ligne
#3 Le 30/12/2009, à 10:16
- amazigh42
Re : [Webalizer] statistiques d’accès au serveur Squid
Apache est bien installé, la preuve
Sur firefox
http://127.0.0.1/
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
Dans le tuto il est indiqué que pour pouvoir accéder à webalizer il faut taper
http://ipdemonproxy/webalizer/index.htm
donc
http://192.168.1.11/webalizer/index.htm
Not Found
The requested URL /webalizer/index.htm was not found on this server.
Apache/2.2.12 (Ubuntu) Server at 192.168.1.11 Port 80
y a-t-il un Kador pour m'aider ? Merci
Hors ligne
#4 Le 02/03/2010, à 16:14
- Kasi
Re : [Webalizer] statistiques d’accès au serveur Squid
J'ai le même problème avec webaliser de debian lenny, aucune solution ?
Manuel Ubuntu : http://www.framabook.org/ubuntu.html
Manuel OpenOffice : http://www.framabook.org/openoffice.html
Formation Debian : http://formation-debian.via.ecp.fr/
Guide d'autodéfense numérique : http://guide.boum.org/
Hors ligne
#5 Le 13/07/2010, à 17:03
- 2fast4u
Re : [Webalizer] statistiques d’accès au serveur Squid
Il faut préciser à webalizer quel type de log il analyse :
sudo webalizer -F squid
ou (c'est mieux) dans le fichier webalizer.conf ajouter
LogType squid
Hors ligne