Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:squid_centos_6

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
tachtler:squid_centos_6 [2013/12/04 07:12] – [Installation Systemvoraussetzungen SquidAnalyzer] klaustachtler:squid_centos_6 [2014/09/05 11:09] – [Ausführen von SquidAnalyzer] klaus
Zeile 1001: Zeile 1001:
 Als Voraussetzung für die Installation von [[http://squidanalyzer.darold.net/|SquidAnalyzer]] sind folgende Komponenten erforderlich:  Als Voraussetzung für die Installation von [[http://squidanalyzer.darold.net/|SquidAnalyzer]] sind folgende Komponenten erforderlich: 
  
-  * ''squidanalyzer-5.3.tar.gz'' (Programm) [[http://squidanalyzer.darold.net/|SquidAnalyzer]]+  * ''squidanalyzer-6.0.tar.gz'' (Programm) [[http://squidanalyzer.darold.net/|SquidAnalyzer]]
   * ''gd-2.0.35.tar.gz'' (libgd) [[http://www.libgd.org|www.libgd.org]]   * ''gd-2.0.35.tar.gz'' (libgd) [[http://www.libgd.org|www.libgd.org]]
   * ''libpng'' (libpng) [[http://www.libpng.org|www.libpng.org]]   * ''libpng'' (libpng) [[http://www.libpng.org|www.libpng.org]]
Zeile 1009: Zeile 1009:
  
 Di Programmdateien von [[http://sourceforge.net/projects/squid-report/|SquidAnalyzer]] können unter folgendem Link heruntergeladen werden: Di Programmdateien von [[http://sourceforge.net/projects/squid-report/|SquidAnalyzer]] können unter folgendem Link heruntergeladen werden:
-  * [[http://sourceforge.net/projects/squid-report/files/latest/download|squidanalyzer-5.3.tar.gz]]+  * [[http://sourceforge.net/projects/squid-report/files/latest/download|squidanalyzer-6.0.tar.gz]]
  
 ==== Installation Systemvoraussetzungen SquidAnalyzer ==== ==== Installation Systemvoraussetzungen SquidAnalyzer ====
Zeile 1016: Zeile 1016:
   * **''perl''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten --> :!: **HINWEIS** - **Meist bereits installiert !!!**   * **''perl''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten --> :!: **HINWEIS** - **Meist bereits installiert !!!**
   * **''perl-ExtUtils-MakeMaker''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten   * **''perl-ExtUtils-MakeMaker''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten
-  * **''perl-GD-Graph''** - ist im ''rpmforge''-Repository, siehe auch [[tachtler:repository_einbinden_centos_6|Repository einbinden CentOS 6]] enthalten! +  * :!: **bis Version 5.0** --> **''perl-GD-Graph''** - ist im ''rpmforge''-Repository, siehe auch [[tachtler:repository_einbinden_centos_6|Repository einbinden CentOS 6]] enthalten! 
-  * **''perl-GD-Graph3d''** - ist im ''rpmforge''-Repository, siehe auch [[tachtler:repository_einbinden_centos_6|Repository einbinden CentOS 6]] enthalten! +  * :!: **bis Version 5.0** --> **''perl-GD-Graph3d''** - ist im ''rpmforge''-Repository, siehe auch [[tachtler:repository_einbinden_centos_6|Repository einbinden CentOS 6]] enthalten! 
-  * :!: **ab Version 5.3** --> **''perl-Time-HiRes''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten+  * :!: **ab Version 5.1** --> **''perl-Time-HiRes''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten
   * **''make''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten   * **''make''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten
   * **''gd''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten   * **''gd''** - ist im ''base''-Repository von [[http://www.centos.org|CentOS]] enthalten
Zeile 1181: Zeile 1181:
 </code> </code>
  
-:!: **Ab [[http://squidanalyzer.darold.net/|SquidAnalyzer]] Version 5.3**+:!: **Ab [[http://squidanalyzer.darold.net/|SquidAnalyzer]] Version 5.1**
  
 <code> <code>
Zeile 1231: Zeile 1231:
 ==== Installation SquidAnalyzer ==== ==== Installation SquidAnalyzer ====
  
-Die Datei ''squidanalyzer-5.3.tar.gz'' muss zuerst mit folgendem Befehl Entpackt werden:+Die Datei ''squidanalyzer-6.0.tar.gz'' muss zuerst mit folgendem Befehl Entpackt werden:
 <code> <code>
-# tar xfzv /tmp/squidanalyzer-5.3.tar.gz +# tar xfzv /tmp/squidanalyzer-6.0.tar.gz 
-squidanalyzer-5.3+squidanalyzer-6.0
-squidanalyzer-5.3/packaging+squidanalyzer-6.0/etc
-squidanalyzer-5.3/packaging/RPM+squidanalyzer-6.0/etc/network-aliases 
-squidanalyzer-5.3/packaging/RPM/squidanalyzer.spec +squidanalyzer-6.0/etc/squidanalyzer.conf 
-squidanalyzer-5.3/MANIFEST +squidanalyzer-6.0/etc/user-aliases 
-squidanalyzer-5.3/etc/ +squidanalyzer-6.0/etc/excluded 
-squidanalyzer-5.3/etc/user-aliases +squidanalyzer-6.0/etc/included 
-squidanalyzer-5.3/etc/network-aliases +squidanalyzer-6.0/SquidAnalyzer.pm 
-squidanalyzer-5.3/etc/excluded +squidanalyzer-6.0/MANIFEST 
-squidanalyzer-5.3/etc/squidanalyzer.conf +squidanalyzer-6.0/META.yml 
-squidanalyzer-5.3/TODO +squidanalyzer-6.0/lang
-squidanalyzer-5.3/cleanit.sh +squidanalyzer-6.0/lang/pl_PL.txt 
-squidanalyzer-5.3/doc+squidanalyzer-6.0/lang/pt_BR.txt 
-squidanalyzer-5.3/doc/SquidAnalyzer.pod +squidanalyzer-6.0/lang/fr_FR.txt 
-squidanalyzer-5.3/doc/squidanalyzer.3 +squidanalyzer-6.0/lang/es_ES.txt 
-squidanalyzer-5.3/Makefile.PL +squidanalyzer-6.0/lang/de_DE.txt 
-squidanalyzer-5.3/squid-analyzer +squidanalyzer-6.0/lang/en_US.txt 
-squidanalyzer-5.3/ChangeLog +squidanalyzer-6.0/lang/ru_RU.txt 
-squidanalyzer-5.3/README +squidanalyzer-6.0/lang/cs_CZ.txt 
-squidanalyzer-5.3/lang/ +squidanalyzer-6.0/lang/uk_UA.txt 
-squidanalyzer-5.3/lang/de_DE.txt +squidanalyzer-6.0/doc/ 
-squidanalyzer-5.3/lang/pt_BR.txt +squidanalyzer-6.0/doc/SquidAnalyzer.pod 
-squidanalyzer-5.3/lang/en_US.txt +squidanalyzer-6.0/squid-analyzer 
-squidanalyzer-5.3/lang/fr_FR.txt +squidanalyzer-6.0/Makefile.PL 
-squidanalyzer-5.3/SquidAnalyzer.pm +squidanalyzer-6.0/ChangeLog 
-squidanalyzer-5.3/INSTALL +squidanalyzer-6.0/TODO 
-squidanalyzer-5.3/resources+squidanalyzer-6.0/packaging
-squidanalyzer-5.3/resources/squidanalyzer.css +squidanalyzer-6.0/packaging/RPM
-squidanalyzer-5.3/resources/flotr2.js +squidanalyzer-6.0/packaging/RPM/squidanalyzer.spec 
-squidanalyzer-5.3/resources/sorttable.js +squidanalyzer-6.0/resources/ 
-squidanalyzer-5.3/resources/images/ +squidanalyzer-6.0/resources/flotr2.js 
-squidanalyzer-5.3/resources/images/cursor.png +squidanalyzer-6.0/resources/squidanalyzer.css 
-squidanalyzer-5.3/resources/images/user.png +squidanalyzer-6.0/resources/sorttable.js 
-squidanalyzer-5.3/resources/images/logo-squidanalyzer.png +squidanalyzer-6.0/resources/images/ 
-squidanalyzer-5.3/resources/images/up-arrow.png +squidanalyzer-6.0/resources/images/info.png 
-squidanalyzer-5.3/resources/images/info.png +squidanalyzer-6.0/resources/images/up-arrow.png 
-squidanalyzer-5.3/resources/images/back-arrow.png +squidanalyzer-6.0/resources/images/back-arrow.png 
-squidanalyzer-5.3/resources/images/network.png +squidanalyzer-6.0/resources/images/user.png 
-squidanalyzer-5.3/resources/images/domain.png +squidanalyzer-6.0/resources/images/logo-squidanalyzer.png 
-squidanalyzer-5.3/META.yml+squidanalyzer-6.0/resources/images/network.png 
 +squidanalyzer-6.0/resources/images/domain.png 
 +squidanalyzer-6.0/resources/images/cursor.png 
 +squidanalyzer-6.0/INSTALL 
 +squidanalyzer-6.0/README
 </code> </code>
  
-Das so erhaltene Verzeichnis, hier z.B. ''/tmp/squidanalyzer-5.3'' beinhaltet eine Datei mit dem Namen ''INSTALL''. Die hier aufgeführte Beschreibung dient zur Installation des [[http://squidanalyzer.darold.net/|SquidAnalyzer]].+Das so erhaltene Verzeichnis, hier z.B. ''/tmp/squidanalyzer-6.0'' beinhaltet eine Datei mit dem Namen ''INSTALL''. Die hier aufgeführte Beschreibung dient zur Installation des [[http://squidanalyzer.darold.net/|SquidAnalyzer]].
  
 Die Schritte zusammengefasst sollten wie folgt aussehen: Die Schritte zusammengefasst sollten wie folgt aussehen:
 <code> <code>
-# cd /tmp/squidanalyzer-5.3+# cd /tmp/squidanalyzer-6.0
 </code> </code>
  
Zeile 1297: Zeile 1301:
 # make # make
 cp SquidAnalyzer.pm blib/lib/SquidAnalyzer.pm cp SquidAnalyzer.pm blib/lib/SquidAnalyzer.pm
 +cp squid-analyzer blib/script/squid-analyzer
 +/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/squid-analyzer
 +Manifying blib/man3/squidanalyzer.3
 </code>  </code> 
  
Zeile 1302: Zeile 1309:
 # make install # make install
 Installing /usr/share/perl5/vendor_perl/SquidAnalyzer.pm Installing /usr/share/perl5/vendor_perl/SquidAnalyzer.pm
 +Installing /usr/share/man/man3/squidanalyzer.3
 +Installing /usr/bin/squid-analyzer
 sh install_all.sh sh install_all.sh
  
Zeile 1416: Zeile 1425:
 Exclude /etc/squidanalyzer/excluded Exclude /etc/squidanalyzer/excluded
  
-# Translation Language file to use (fr_FR.txt, pt_BR.txt and en_US.txt). +# Path to the file containing client ip addresses, network ip address, 
-# Default to en_US.txt +# and/or auth login to include into the report. Other entries will be 
-#Lang           /etc/squidanalyzer/lang/fr_FR.txt+# excluded by default. 
 +Include /etc/squidanalyzer/included 
 + 
 +# Translation Language file to use (fr_FR.txt, pt_BR.txt, es_ES.txt, 
 +en_US.txt, ru_RU.txt, uk_UA.txt, cs_CZ.txt, pl_PL.txt and de_DE.txt). 
 +# Default to: 
 +#Lang           /etc/squidanalyzer/lang/en_US.txt
 # Tachtler # Tachtler
 Lang            /etc/squidanalyzer/lang/de_DE.txt Lang            /etc/squidanalyzer/lang/de_DE.txt
Zeile 1425: Zeile 1440:
 # You can also use %M to replace month by its 3 letters abbreviation. # You can also use %M to replace month by its 3 letters abbreviation.
 DateFormat      %y-%m-%d DateFormat      %y-%m-%d
 +
 +# Custom Footer. Must be a path to a text file containing HTML code that
 +# will be placed at the bottom of each page just before the end if the
 +# body tag. Default is defined internally if this directive is not set
 +# to a valid file.
 +#FooterFile      /etc/squidanalyzer/lang/fr_FR_footer.txt
 +# Tachtler
 +FooterFile      /etc/squidanalyzer/lang/de_DE_footer.txt
  
 #â¯Set this to 1 if you want to anonymize all user login. The username #â¯Set this to 1 if you want to anonymize all user login. The username
Zeile 1461: Zeile 1484:
 # Set it to 0 to disable this feature. # Set it to 0 to disable this feature.
 TopUrlUser      10 TopUrlUser      10
 +
 +# This directive allow you to replace the SquidAnalyze logo by your custom
 +# logo. The default value is defined as follow:
 +# <a href="$self->{WebUrl}">
 +# <img src="$self->{WebUrl}images/logo-squidanalyzer.png" title="SquidAnalyzer $VERSION" border="0">
 +# </a> SquidAnalyzer
 +# Feel free to define your own header but take care to not break current design.
 +#CustomHeader   <a href="http://my.isp.dom/"><img src="http://my.isp.dom/logo.png" title="My ISP link" border="0" width="100" height="110"></a> My ISP Company
 +
 +# This directive allow exclusion of some unwanted methods in report statistics
 +# like HEAD, POST, CONNECT, etc. Can be a comma separated list of methods.
 +#ExcludedMethods        HEAD
 +
 +# This directive allow exclusion of some unwanted mimetypes in report statistics
 +# like text/html, text/plain, or more generally text/*, etc. Can be a comma separated
 +# list of perl regular expression.
 +#ExcludedMimes  text/.*,image/.*
  
 </code> </code>
Zeile 1489: Zeile 1529:
 # Tachtler # Tachtler
 USER    root USER    root
 +</code>
 +
 +=== /etc/squidanalyzer/included ===
 +
 +Die Konfigurationsdatei ''/etc/squidanalyzer/included'' könnte wie folgt aussehen:
 +
 +<code ini>
 +#------------------------------------------------------------------------------
 +# File used to defined which client ip address, network with netmask, network
 +# regex address, auth login and URI to include in the report. All other entries
 +# will be exclude, this is the opposite of the excluded file.
 +#
 +# You can define one by line inclusion by specifying first the type of the
 +# inclusion (USER or CLIENT) and a space separated list of valid regex.
 +# You can also use the NETWORK type to define network address with netmask
 +# using the CIDR notation: xxx.xxx.xxx.xxx/n
 +#
 +# See example bellow:
 +#------------------------------------------------------------------------------
 +#NETWORK 192.168.1.0/24 10.10.0.0/16
 +#CLIENT 192\.168\.1\.2 
 +#CLIENT 10\.169\.1\.\d+ 192\.168\.10\..*
 +#USER myloginstr
 +#USER guestlogin\d+ guestdemo
 </code> </code>
  
Zeile 1546: Zeile 1610:
 <code bash> <code bash>
 #!/bin/sh #!/bin/sh
-/usr/local/bin/squid-analyzer --logfile /var/log/squid/access.log --configfile /etc/squidanalyzer/squidanalyzer.conf+/usr/local/bin/squid-analyzer --configfile /etc/squidanalyzer/squidanalyzer.conf /var/log/squid/access.log 
 </code> </code>
  
Zeile 1565: Zeile 1629:
 Das Perl-Script wird mit folgendem Befehl ausgeführt: Das Perl-Script wird mit folgendem Befehl ausgeführt:
 <code> <code>
-# ./squid-analyzer --logfile /var/log/squid/access.log --configfile /etc/squidanalyzer/squidanalyzer.conf+# ./squid-analyzer --rebuild --configfile /etc/squidanalyzer/squidanalyzer.conf /var/log/squid/access.log
 </code> </code>
  
Zeile 1571: Zeile 1635:
 <code> <code>
 # ls -la /var/www/squidanalyzer/ # ls -la /var/www/squidanalyzer/
-total 64 +total 180 
-drwxr-xr-x root root  4096 May  4 13:59 . +drwxr-xr-x 13 root root   4096 Dec  1  2012 2012 
-drwxr-xr-x root root  4096 May  4 11:17 .+drwxr-xr-x 16 root root   4096 Dec  1 08:01 2013 
-drwxr-xr-x root root  4096 May  4 13:59 2012 +drwxr-xr-x 10 root root   4096 May 16 08:46 2014 
--rw-r--r-- 1 root root  2027 May  4 13:59 index.html +-rw-r--r--  1 root root   1406 Nov  2  2011 favicon.ico 
--rw-r--r-- 1 root root 23628 May  4 13:48 logo-squidanalyzer.png +-rw-r--r--  1 root root 102194 May 16 08:30 flotr2.js 
--rw-r--r-- 1 root root 16917 May  4 13:48 sorttable.js +drwxr-xr-x  root root   4096 May 16 08:30 images 
--rw-r--r-- 1 root root  1160 May  4 13:48 squidanalyzer.css +-rw-r--r--  1 root root   3340 May 16 08:48 index.html 
--rw-r--r-- 1 root root    14 May  4 13:59 SquidAnalyzer.current+-rw-r--r--  1 root root  23628 Sep 12  2012 logo-squidanalyzer.png 
 +-rw-r--r--  1 root root      0 Nov  2  2011 robots.txt 
 +-rw-r--r--  1 root root  17262 May 16 08:30 sorttable.js 
 +-rw-r--r--  1 root root   7604 May 16 08:30 squidanalyzer.css 
 +-rw-r--r--  1 root root     14 May 16 08:46 SquidAnalyzer.current
 </code> </code>
  
tachtler/squid_centos_6.txt · Zuletzt geändert: 2014/11/01 08:43 von klaus