Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1182 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Divers

  Pb avec awstat + debian

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Pb avec awstat + debian

n°1030644
crash-over​ide
Où es tu acidBurn ?
Posté le 07-04-2008 à 18:01:19  profilanswer
 

Salut les amis(es) !!!!!  :hello:  
 
 J'ai un pb avec le programme awstats ! Je n'arrive pas a faire sortir les données et les graphes sur ma page web !!!  A chaque fois que je lance le programme, il met bien les mise a jour dans la console terminal mais ne sort pas du tout au niveau de ma page web!! Auriez vous des solutions ?
 
Merci a vous tous et toutes !!  
 
 :jap:


---------------
Que la paix soit avec toi mon ami(e) !
mood
Publicité
Posté le 07-04-2008 à 18:01:19  profilanswer
 

n°1030728
oxas
Posté le 08-04-2008 à 00:26:21  profilanswer
 

Slt,
 
Il faut que tu mettes le nom du profil que tu veux avoir en paramètre dans l'url comme ceci :
www.mondomaine.com/awsats.pl?config=www.messtats.comwww.messtats.com est le nom de ton fichier de conf awstats de type awstats.www.messtats.com.conf

n°1030951
crash-over​ide
Où es tu acidBurn ?
Posté le 08-04-2008 à 14:42:25  profilanswer
 

Je n'arrive pas a forcer awstat a prendre mon fichier conf il garde toujours celui par défaut !!
 
Quelqu'un aurait-il une idée ?


---------------
Que la paix soit avec toi mon ami(e) !
n°1030966
crash-over​ide
Où es tu acidBurn ?
Posté le 08-04-2008 à 15:08:02  profilanswer
 

J'ai oublié de signaler j'utilise apache !


---------------
Que la paix soit avec toi mon ami(e) !
n°1031228
oxas
Posté le 09-04-2008 à 08:54:12  profilanswer
 

pour forcer awstats a prendre ton fichier de conf pour ma mise à jour execute awstats.pl -config=www.messtats.com -update

n°1031385
crash-over​ide
Où es tu acidBurn ?
Posté le 09-04-2008 à 13:32:47  profilanswer
 

Je l'ai fait mais ça me dit "errors administrator" en revanche si je fais la meme chose ave le fichier par defaut il n'y pas de problème !


---------------
Que la paix soit avec toi mon ami(e) !
n°1031827
crash-over​ide
Où es tu acidBurn ?
Posté le 10-04-2008 à 11:11:41  profilanswer
 

Pourrais tu m'aider oxas ?  
 
merci


---------------
Que la paix soit avec toi mon ami(e) !
n°1032149
oxas
Posté le 10-04-2008 à 23:35:49  profilanswer
 

Poste tes fichiers de conf, les commandes que tu executes et les messages d'erreur (ou pas) que tu as en sortie

n°1032258
crash-over​ide
Où es tu acidBurn ?
Posté le 11-04-2008 à 10:44:13  profilanswer
 

oxas a écrit :

Poste tes fichiers de conf, les commandes que tu executes et les messages d'erreur (ou pas) que tu as en sortie


 
Commande executée :
 
1) Dans /usr/lib/cgi-bin  je lance la commande  ./awstats.pl  -config=www.monsite.com –update
 
Voici la réponse que j’obtiens :
An error occured. Contact your Administrator
 
2) Mais lorsque je tape la même commande avec ./awstats.pl  -config=monsite.com –update
 
Voici la réponse que j’obtiens :
 
Update for config "/etc/awstats/awstats.conf"
With data in log file "/var/log/apache2/access.log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 245836)
Jumped lines in file: 245836
 Found 245836 already parsed records.
Parsed lines in file: 120
 Found 0 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 120 new qualified records.
 
On voit bien que la mise à jour se fait bien mais elle va prendre les paramétres du fichier awstats.conf.
Or je voudrais qu’elle prenne en compte mon fichier awstats.www.monsite.com.conf
 
3) Voici le contenu de mon fichier awstats.www.monsite.com.conf :
 
# AWSTATS CONFIGURE FILE 6.5
#-----------------------------------------------------------------------------
# Copy this file into awstats.www.mydomain.conf and edit this new config file
# to setup AWStats (See documentation in docs/ directory).
# The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for
# Unix/Linux) or same directory than awstats.pl (Windows, Mac, Unix/Linux...)
# To include an environment variable in any parameter (AWStats will replace
# it with its value when reading it), follow the example:
# Parameter="__ENVNAME__"
# Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with
# the config value in an AWStats running session and can be used like others.
#-----------------------------------------------------------------------------
# $Revision: 1.324 $ - $Author: eldy $ - $Date: 2005/10/30 15:56:38 $
 
 
 
#-----------------------------------------------------------------------------
# MAIN SETUP SECTION (Required to make AWStats work)
#-----------------------------------------------------------------------------
 
# "LogFile" contains the web, ftp or mail server log file to analyze.
# Possible values: A full path, or a relative path from awstats.pl directory.
# Example: "/var/log/apache/access.log"
# Example: "../logs/mycombinedlog.log"
# You can also use tags in this filename if you need a dynamic file name
# depending on date or time (Replacement is made by AWStats at the beginning
# of its execution). This is available tags :
#   %YYYY-n  is replaced with 4 digits year we were n hours ago
#   %YY-n    is replaced with 2 digits year we were n hours ago
#   %MM-n    is replaced with 2 digits month we were n hours ago
#   %MO-n    is replaced with 3 letters month we were n hours ago
#   %DD-n    is replaced with day we were n hours ago
#   %HH-n    is replaced with hour we were n hours ago
#   %NS-n    is replaced with number of seconds at 00:00 since 1970
#   %WM-n    is replaced with the week number in month (1-5)
#   %Wm-n    is replaced with the week number in month (0-4)
#   %WY-n    is replaced with the week number in year (01-52)
#   %Wy-n    is replaced with the week number in year (00-51)
#   %DW-n    is replaced with the day number in week (1-7, 1=sunday)
#                              use n=24 if you need (1-7, 1=monday)
#   %Dw-n    is replaced with the day number in week (0-6, 0=sunday)
#                              use n=24 if you need (0-6, 0=monday)
#   Use 0 for n if you need current year, month, day, hour...
# Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
# Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
# You can also use a pipe if log file come from a pipe :
# Example: "gzip -d </var/log/apache/access.log.gz |"
# If there is several log files from load balancing servers :
# Example: "/pathtotools/logresolvemerge.pl *.log |"
#
 
 
logFile="/var/log/apache2/access.log"
LogType=W
LogFormat =1
LogSeparator=" "
SiteDomain= « www.monsite.com »
HostAliases="www.monsite.com REGEX[www.monsite.com$] REGEX[www.monsitebis.com$] tempo pp-tempo"
 
DNSLookup=1
DirData="/var/lib/awstats"
DirCgi="/usr/lib/cgi-bin"
DirIcons="/usr/share/apache2/icon"
AllowToUpdateStatsFromBrowser=0
AllowFullYearView=2
EnableLockForUpdate=0
DNSStaticCacheFile="dnscache.txt"
DNSLastUpdateCacheFile="dnscachelastupdate.txt"
SkipDNSLookupFor=""
AllowAccessFromWebToAuthenticatedUsersOnly=0
AllowAccessFromWebToFollowingAuthenticatedUsers=""
AllowAccessFromWebToFollowingIPAddresses=""
CreateDirDataIfNotExists=1
BuildHistoryFormat=text
BuildReportFormat=html
SaveDatabaseFilesWithPermissionsForEveryone=0
PurgeLogFile=0
ArchiveLogRecords=0
KeepBackupOfHistoricFiles=0
DefaultFile="index.html"
SkipHosts=""
SkipUserAgents=""
SkipFiles=""
SkipReferrersBlackList=""
OnlyHosts=""
OnlyUserAgents=""
OnlyFiles=""
NotPageList="css js class gif jpg jpeg png bmp ico swf"
ValidHTTPCodes="200 304"
ValidSMTPCodes="1 250"
AuthenticatedUsersNotCaseSensitive=0
URLNotCaseSensitive=0
URLWithAnchor=0
URLQuerySeparators="?;"
URLWithQuery=1
URLWithQueryWithOnlyFollowingParameters=""
URLWithQueryWithoutFollowingParameters=""
URLReferrerWithQuery=1
WarningMessages=1
ErrorMessages="An error occured. Contact your Administrator"
DebugMessages=0
NbOfLinesForCorruptedLog=50
WrapperScript=""
DecodeUA=0
MiscTrackerUrl="/js/awstats_misc_tracker.js"
UseFramesWhenCGI=1
DetailedReportsOnNewWindows=1
Expires=0
MaxRowsInHTMLOutput=1000
Lang="en"
DirLang="./lang"
ShowMenu=1
ShowSummary=UVPHBLEXC
ShowMonthStats=UVPHB
ShowDaysOfMonthStats=VPHB
ShowDaysOfWeekStats=PHB
ShowHoursStats=PHB
ShowDomainsStats=PHB
ShowHostsStats=PHBL$
ShowAuthenticatedUsers=PHBL
ShowRobotsStats=HBL
ShowWormsStats=HBL
ShowEMailSenders=0
ShowEMailReceivers=0
ShowSessionsStats=1
ShowPagesStats=PBEX
ShowFileTypesStats=HB
ShowFileSizesStats=0
ShowOSStats=1
ShowBrowsersStats=1
ShowScreenSizeStats=0
ShowOriginStats=PH
ShowKeyphrasesStats=1
ShowKeywordsStats=1
ShowMiscStats=a
ShowHTTPErrorsStats=1
ShowSMTPErrorsStats=0
ShowClusterStats=0
AddDataArrayShowHoursStats=1
IncludeInternalLinksInOriginSection=1
FirstDayOfWeek=1
ShowFlagLinks="en fr"
ShowLinksOnUrl=0
UseHTTPSLinkForUrl=""
MaxLengthOfShownURL=64
HTMLHeadSection=""
HTMLEndSection=""
Logo="awstats_logo6.png"
LogoLink= « http://www.monsite.com »
ExtraTrackedRowsLimit=500
 
 
4) j’aimerais bien que le résultat de la requête sorte sur une page web mais je ne comprends pas trop le fonctionnement.
 
Voici mon fichier Virtualhost sous apache2
 
NameVirtualHost *:80
 
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
 
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName serveur.monsite.com
        ServerAlias serveur
 
        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Redirect permanent /index.html https://serveur.monsite.com/wiki/
                Order allow,deny
                allow from all
        </Directory>
        <Directory /usr/lib/cgi-bin>
                DirectoryIndex awstats.pl
                AllowOverride None
                Options ExecCGI
                Order allow,deny
                Allow from all
        </Directory>
 
        <IfModule mod_userdir.c>
                UserDir www
                UserDir disabled root
                <Directory /home/*/www>
                        AllowOverride FileInfo AuthConfig Limit
                        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
                </Directory>
 
        </IfModule>
 
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
</VirtualHost>
 
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName support
        ServerAlias support
 
        DocumentRoot /var/www/GLPI/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/GLPI>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
Order allow,deny
                allow from all
        </Directory>
 
#       <IfModule mod_userdir.c>
#               UserDir www
#               UserDir disabled root
#               <Directory /home/*/www>
#                       AllowOverride FileInfo AuthConfig Limit
#                       Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#               </Directory>
#               </IfModule>
 
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
</VirtualHost>
 
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName serveur2.monsite.com
        ServerAlias serveur2
        DocumentRoot /usr/share/serveur2/htdocs
 
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
</VirtualHost>
 
 
Merci de ton aide pour me permettre de sortir les stats de mon site web sur une page web.
 
 :jap:  
 
 


---------------
Que la paix soit avec toi mon ami(e) !
n°1032378
oxas
Posté le 11-04-2008 à 15:22:16  profilanswer
 

Est-ce que des fichiers de données sont créés dans /var/lib/awstats ?
 
Modifie dans le fichier de conf  
ErrorMessages="An error occured. Contact your Administrator" par ErrorMessages=""
comme ca tu auras des messages d'erreur complets
 
execute ta commande ./awstats.pl  -config=www.monsite.com –update et donne le resultat

mood
Publicité
Posté le 11-04-2008 à 15:22:16  profilanswer
 

n°1032422
crash-over​ide
Où es tu acidBurn ?
Posté le 11-04-2008 à 17:27:34  profilanswer
 

oxas a écrit :

Est-ce que des fichiers de données sont créés dans /var/lib/awstats ?
 
Modifie dans le fichier de conf  
ErrorMessages="An error occured. Contact your Administrator" par ErrorMessages=""
comme ca tu auras des messages d'erreur complets
 
execute ta commande ./awstats.pl  -config=www.monsite.com –update et donne le resultat


 
Mon fichier conf fonctionne enfin c'était a cause d'une lettre ecrite en minuscule alors qu'il fallait la mettre en Majuscule. Donc la commande ./awstats.pl  -config=www.monsite.com –update fonctionne bien.
 
En revanche, je n'arrive pas a sortir les resultat sur ma page web interne pour pas que les gens qui visitent le site ne puissent voir les resultats ?
Je pense que le pb vient du virtual host pour la conf apache 2
 
Je remets mon fichier virtual host :
 
NameVirtualHost *:80
 
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
 
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName serveur.monsite.com
        ServerAlias serveur
 
        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Redirect permanent /index.html https://serveur.monsite.com/wiki/
                Order allow,deny
                allow from all
        </Directory>
        <Directory /usr/lib/cgi-bin>
                DirectoryIndex awstats.pl
                AllowOverride None
                Options ExecCGI
                Order allow,deny
                Allow from all
        </Directory>
 
        <IfModule mod_userdir.c>
                UserDir www
                UserDir disabled root
                <Directory /home/*/www>
                        AllowOverride FileInfo AuthConfig Limit
                        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
                </Directory>
 
        </IfModule>
 
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
</VirtualHost>
 
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName support
        ServerAlias support
 
        DocumentRoot /var/www/GLPI/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/GLPI>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
Order allow,deny
                allow from all
        </Directory>
 
#       <IfModule mod_userdir.c>
#               UserDir www
#               UserDir disabled root
#               <Directory /home/*/www>
#                       AllowOverride FileInfo AuthConfig Limit
#                       Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#               </Directory>
#               </IfModule>
 
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
</VirtualHost>
 
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName serveur2.monsite.com
        ServerAlias serveur2
        DocumentRoot /usr/share/serveur2/htdocs
 
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
</VirtualHost>
 
Je ne sais pas où trouver l'erreur !!!  
 
 


---------------
Que la paix soit avec toi mon ami(e) !
n°1033248
crash-over​ide
Où es tu acidBurn ?
Posté le 14-04-2008 à 14:56:35  profilanswer
 

Avez vous trouvé mon problème ?


---------------
Que la paix soit avec toi mon ami(e) !
n°1033489
crash-over​ide
Où es tu acidBurn ?
Posté le 15-04-2008 à 13:04:08  profilanswer
 

C'est bon. J'ai enfin trouvé comment le faire fonctionner!! C'est dans le fichier awstats.sh !!!
 
Merci beaucoup pour ton aide "oxas" !!!
 
:-)


---------------
Que la paix soit avec toi mon ami(e) !
n°1033535
crash-over​ide
Où es tu acidBurn ?
Posté le 15-04-2008 à 15:52:39  profilanswer
 

Je me suis rendu compte que les fichiers de log généré par tomcat 5.5.1.5 n'étaitent pas compatible avec awstats.  
Comment puis je faire pour les rendre compatible ?
Lorsque je redemarre le service tomcat, il me recrée un fichier log avec un nom different. dans awstat, comment puis je faire pour récupéere mes logs sans remodifier le fichier de conf dans awstat ?
 
merci :-)


---------------
Que la paix soit avec toi mon ami(e) !
n°1033574
oxas
Posté le 15-04-2008 à 18:18:45  profilanswer
 

Je connais pas Tomcat, je pourrais pas t'aider pour ca
dans Awstats tu peux définir un format de log personnalisé dans la variable LogFormat=
 
Si tu veux pas modifier ton fichier de conf awstats pour récuperer tes logs, il faut que tu fasses un script qui te renomme les logs au format que tu as défini dans awstats.*.conf

n°1033772
crash-over​ide
Où es tu acidBurn ?
Posté le 16-04-2008 à 14:43:25  profilanswer
 

Merci beaucoup pour ton aide !! Ca m'a drolement aider ! J'ai essayé de trouver un moyen pour créer un script ou trouver une autre solution à mon petit problème   :-)


---------------
Que la paix soit avec toi mon ami(e) !

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Divers

  Pb avec awstat + debian

 

Sujets relatifs
scanner reconnu par Debian 4.0 ???? ( résolu )Disque dur sata non vu par debian
installation tomcat5 debian[Debian] Problème iptables et Nat
[Debian] Distrib lente après passage au kernel 2.6.18 ?Debits entre Samba/Debian et PC
J'ai installé Win Server 2003 et mon grub à disparu! [Résolu]Problème de langue sur debian
[debian] Pas le niveau de RAM attenduProblème IPsec à travers un routeur Debian
Plus de sujets relatifs à : Pb avec awstat + debian


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR