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/09/09 08:06] – [Herunterladen SquidAnalyzer] klaustachtler:squid_centos_6 [2014/09/05 11:09] – [Ausführen von SquidAnalyzer] klaus
Zeile 3: Zeile 3:
 [[http://www.squid-cache.org|{{:tachtler:index:squid-48x48.png }}]] [[http://www.squid-cache.org|Squid]] ist ein "caching proxy" welcher die Protokolle HTTP, HTTPS, FTP, uvm. unterstützt. Es kann eine Reduzierung der Bandweite der Internetverbindung und eine Reduzierung der Ladezeiten von Internetseiten durch den Einsatz eines //Proxy//-Servers erreicht werden. Ein weiterer sehr wichtiger Punkt beim Einsatz eines //Proxy//-Servers ist die Möglichkeit der Zugriffsbeschränkung und der Authentifizierung beim Zugriff auf das Internet aus dem lokalen Netzwerk. [[http://www.squid-cache.org|{{:tachtler:index:squid-48x48.png }}]] [[http://www.squid-cache.org|Squid]] ist ein "caching proxy" welcher die Protokolle HTTP, HTTPS, FTP, uvm. unterstützt. Es kann eine Reduzierung der Bandweite der Internetverbindung und eine Reduzierung der Ladezeiten von Internetseiten durch den Einsatz eines //Proxy//-Servers erreicht werden. Ein weiterer sehr wichtiger Punkt beim Einsatz eines //Proxy//-Servers ist die Möglichkeit der Zugriffsbeschränkung und der Authentifizierung beim Zugriff auf das Internet aus dem lokalen Netzwerk.
  
-:!: **Hinweis** - **Die nachfolgenden Ausführungen erheben keinen Anspruch auf Vollständigkeit, sondern stellen eine "Basiskonfiguration" eins [[http://http://www.squid-cache.org|Squid]] als //Proxy//-Server für ein kleines privates Netzwerk dar!!!**+:!: **Hinweis** - **Die nachfolgenden Ausführungen erheben keinen Anspruch auf Vollständigkeit, sondern stellen eine "Basiskonfiguration" eines [[http://http://www.squid-cache.org|Squid]] als //Proxy//-Server für ein kleines privates Netzwerk dar!!!**
  
 Ab hier werden zur Ausführung nachfolgender Befehle **''root''**-Rechte benötigt. Um der Benutzer ''root'' zu werden, melden Sie sich bitte als ''root''-Benutzer am System an, oder wechseln mit nachfolgendem Befehl zum Benutzer ''root'': Ab hier werden zur Ausführung nachfolgender Befehle **''root''**-Rechte benötigt. Um der Benutzer ''root'' zu werden, melden Sie sich bitte als ''root''-Benutzer am System an, oder wechseln mit nachfolgendem Befehl zum Benutzer ''root'':
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.2.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.2.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.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 1023: Zeile 1024:
 installiert werden. installiert werden.
  
-Mit nachfolgendem Befehl, werden die Pakete **''gd, libpng''** installiert:+Mit nachfolgendem Befehl, werden die Pakete installiert:
 <code> <code>
 # yum install perl-ExtUtils-MakeMaker perl-GD-Graph perl-GD-Graph3d make gd libpng # yum install perl-ExtUtils-MakeMaker perl-GD-Graph perl-GD-Graph3d make gd libpng
Zeile 1176: Zeile 1177:
   perl-Test-Harness.x86_64 0:3.17-115.el6                                          perl-Test-Harness.x86_64 0:3.17-115.el6                                       
   perl-devel.x86_64 4:5.10.1-115.el6                                               perl-devel.x86_64 4:5.10.1-115.el6                                            
 +
 +Complete!
 +</code>
 +
 +:!: **Ab [[http://squidanalyzer.darold.net/|SquidAnalyzer]] Version 5.1**
 +
 +<code>
 +# yum install perl-Time-HiRes
 +Loaded plugins: priorities
 +1309 packages excluded due to repository priority protections
 +Setting up Install Process
 +Resolving Dependencies
 +--> Running transaction check
 +---> Package perl-Time-HiRes.x86_64 4:1.9721-136.el6 will be installed
 +--> Finished Dependency Resolution
 +
 +Dependencies Resolved
 +
 +================================================================================
 + Package                Arch          Version                 Repository   Size
 +================================================================================
 +Installing:
 + perl-Time-HiRes        x86_64        4:1.9721-136.el6        base         48 k
 +
 +Transaction Summary
 +================================================================================
 +Install       1 Package(s)
 +
 +Total download size: 48 k
 +Installed size: 56 k
 +Is this ok [y/N]: y
 +Downloading Packages:
 +perl-Time-HiRes-1.9721-136.el6.x86_64.rpm                |  48 kB     00:00
 +Running rpm_check_debug
 +Running Transaction Test
 +Transaction Test Succeeded
 +Running Transaction
 +  Installing : 4:perl-Time-HiRes-1.9721-136.el6.x86_64                      1/1
 +  Verifying  : 4:perl-Time-HiRes-1.9721-136.el6.x86_64                      1/1
 +
 +Installed:
 +  perl-Time-HiRes.x86_64 4:1.9721-136.el6
  
 Complete! Complete!
Zeile 1188: Zeile 1231:
 ==== Installation SquidAnalyzer ==== ==== Installation SquidAnalyzer ====
  
-Die Datei ''squidanalyzer-5.2.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.2.tar.gz +# tar xfzv /tmp/squidanalyzer-6.0.tar.gz 
-squidanalyzer-5.2+squidanalyzer-6.0
-squidanalyzer-5.2/packaging+squidanalyzer-6.0/etc
-squidanalyzer-5.2/packaging/RPM+squidanalyzer-6.0/etc/network-aliases 
-squidanalyzer-5.2/packaging/RPM/squidanalyzer.spec +squidanalyzer-6.0/etc/squidanalyzer.conf 
-squidanalyzer-5.2/MANIFEST +squidanalyzer-6.0/etc/user-aliases 
-squidanalyzer-5.2/etc/ +squidanalyzer-6.0/etc/excluded 
-squidanalyzer-5.2/etc/user-aliases +squidanalyzer-6.0/etc/included 
-squidanalyzer-5.2/etc/network-aliases +squidanalyzer-6.0/SquidAnalyzer.pm 
-squidanalyzer-5.2/etc/excluded +squidanalyzer-6.0/MANIFEST 
-squidanalyzer-5.2/etc/squidanalyzer.conf +squidanalyzer-6.0/META.yml 
-squidanalyzer-5.2/TODO +squidanalyzer-6.0/lang
-squidanalyzer-5.2/doc+squidanalyzer-6.0/lang/pl_PL.txt 
-squidanalyzer-5.2/doc/SquidAnalyzer.pod +squidanalyzer-6.0/lang/pt_BR.txt 
-squidanalyzer-5.2/doc/squidanalyzer.3 +squidanalyzer-6.0/lang/fr_FR.txt 
-squidanalyzer-5.2/Makefile.PL +squidanalyzer-6.0/lang/es_ES.txt 
-squidanalyzer-5.2/squid-analyzer +squidanalyzer-6.0/lang/de_DE.txt 
-squidanalyzer-5.2/ChangeLog +squidanalyzer-6.0/lang/en_US.txt 
-squidanalyzer-5.2/README +squidanalyzer-6.0/lang/ru_RU.txt 
-squidanalyzer-5.2/lang/ +squidanalyzer-6.0/lang/cs_CZ.txt 
-squidanalyzer-5.2/lang/de_DE.txt +squidanalyzer-6.0/lang/uk_UA.txt 
-squidanalyzer-5.2/lang/pt_BR.txt +squidanalyzer-6.0/doc
-squidanalyzer-5.2/lang/en_US.txt +squidanalyzer-6.0/doc/SquidAnalyzer.pod 
-squidanalyzer-5.2/lang/fr_FR.txt +squidanalyzer-6.0/squid-analyzer 
-squidanalyzer-5.2/SquidAnalyzer.pm +squidanalyzer-6.0/Makefile.PL 
-squidanalyzer-5.2/INSTALL +squidanalyzer-6.0/ChangeLog 
-squidanalyzer-5.2/resources+squidanalyzer-6.0/TODO 
-squidanalyzer-5.2/resources/squidanalyzer.css +squidanalyzer-6.0/packaging
-squidanalyzer-5.2/resources/flotr2.js +squidanalyzer-6.0/packaging/RPM
-squidanalyzer-5.2/resources/sorttable.js +squidanalyzer-6.0/packaging/RPM/squidanalyzer.spec 
-squidanalyzer-5.2/resources/images/ +squidanalyzer-6.0/resources/ 
-squidanalyzer-5.2/resources/images/cursor.png +squidanalyzer-6.0/resources/flotr2.js 
-squidanalyzer-5.2/resources/images/user.png +squidanalyzer-6.0/resources/squidanalyzer.css 
-squidanalyzer-5.2/resources/images/logo-squidanalyzer.png +squidanalyzer-6.0/resources/sorttable.js 
-squidanalyzer-5.2/resources/images/up-arrow.png +squidanalyzer-6.0/resources/images/ 
-squidanalyzer-5.2/resources/images/info.png +squidanalyzer-6.0/resources/images/info.png 
-squidanalyzer-5.2/resources/images/back-arrow.png +squidanalyzer-6.0/resources/images/up-arrow.png 
-squidanalyzer-5.2/resources/images/network.png +squidanalyzer-6.0/resources/images/back-arrow.png 
-squidanalyzer-5.2/resources/images/domain.png +squidanalyzer-6.0/resources/images/user.png 
-squidanalyzer-5.2/META.yml+squidanalyzer-6.0/resources/images/logo-squidanalyzer.png 
 +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.2'' 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.2+# cd /tmp/squidanalyzer-6.0
 </code> </code>
  
Zeile 1253: 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 1258: 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 1312: Zeile 1365:
 # default: LogFile      /var/log/squid3/access.log # default: LogFile      /var/log/squid3/access.log
 LogFile /var/log/squid/access.log LogFile /var/log/squid/access.log
 +
 +# If you want to use DNS name instead of client Ip address as username enable
 +# this directive. When you don't have authentication, the username is set to
 +# the client ip address, this allow you to use the DNS name instead.
 +# Note that you must have a working DNS resolution and that it can really slow
 +# down the generation of reports.
 +UseClientDNSName        0
 +
 +# If you have enabled UseClientDNSName and have lot of ip addresses that do
 +# not resolve you may want to increase the DNS lookup timeout. By default
 +# SquidAnalyzer will stop to lookup a DNS name after 0.0001 second (100 ms).
 +DNSLookupTimeout        0.0001
  
 # Set the file containing network alias name. Network are # Set the file containing network alias name. Network are
Zeile 1348: Zeile 1413:
 # Tachtler # Tachtler
 # default: CostPrice    0.5 # default: CostPrice    0.5
-CostPrice       0.1+CostPrice       0.01
  
 # Currency of the bandwith cost # Currency of the bandwith cost
Zeile 1360: Zeile 1425:
 Exclude /etc/squidanalyzer/excluded Exclude /etc/squidanalyzer/excluded
  
-# Translation Language file to usei (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
  
 # Date format use to display date (year = %y, month = %m and day = %d) # Date format use to display date (year = %y, month = %m and day = %d)
 +# You can also use %M to replace month by its 3 letters abbreviation.
 DateFormat      %y-%m-%d DateFormat      %y-%m-%d
  
Zeile 1377: Zeile 1449:
 FooterFile      /etc/squidanalyzer/lang/de_DE_footer.txt 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
 # will be replaced by an unique id that change at each squid-analyzer # will be replaced by an unique id that change at each squid-analyzer
 # run. Default disable. # run. Default disable.
Zeile 1400: Zeile 1472:
 # default: #Locale         en_US # default: #Locale         en_US
 Locale         de_DE Locale         de_DE
 +
 +# By default SquidAnalyzer is saving current collected statistics each time
 +# a new hour is found in log file. Most of the time this is enough but if
 +# you have huge log file and don't have enough memory this will slow down the
 +# parser by forcing Perl to use temporaries files. Use lower value following
 +# your memory and the size of your log file, on very huge log file with lot of
 +# requests/seconde a value of 30 minutes (1800) or less should help.
 +WriteDelay      3600
 +
 +# Use this directive to show the top N users that look at an URL or a domain.
 +# Set it to 0 to disable this feature.
 +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 1408: Zeile 1510:
 <code ini> <code ini>
 #------------------------------------------------------------------------------ #------------------------------------------------------------------------------
-# File used to defined which client ip address, network regex address and auth +# File used to defined which client ip address, network with netmask, network 
-login and URI to exclude from report.+regex addressauth login and URI to exclude from the report. 
 +#
 # You can define one by line exclusion by specifying first the type of the # You can define one by line exclusion by specifying first the type of the
 # exclusion (USER, CLIENT or URI) and a space separated list of valid regex. # exclusion (USER, CLIENT or URI) 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: # See example bellow:
 #------------------------------------------------------------------------------ #------------------------------------------------------------------------------
 +#NETWORK        192.168.1.0/24 10.10.0.0/16
 #CLIENT         192\.168\.1\.2 #CLIENT         192\.168\.1\.2
 #CLIENT         10\.169\.1\.\d+ 192\.168\.10\..* #CLIENT         10\.169\.1\.\d+ 192\.168\.10\..*
Zeile 1423: 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 1431: Zeile 1561:
 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
 # Squid Analyzer Network Alias configuration file # Squid Analyzer Network Alias configuration file
-# FORMAT : NETWORK_NAME NETWORK_REGEX1,NETWORK_REGEX2,... +# FORMAT: NETWORK_NAME  NETWORK_REGEX1,NETWORK_REGEX2,... 
-# Field separator must be one or more tabulation. See examples below.+# Field separator must be one or more tabulation. 
 +# You can also use the CIDR notation: 
 +# FORMAT:  NETWORK_NAME xxx.xxx.xxx.xxx/
 +
 +See examples below.
 # #
 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
 #Home Network           192\.168\.1\. #Home Network           192\.168\.1\.
 #Associated Networks    ^10\.169\.[2-4]\.,^10\.169\.[7-9]\. #Associated Networks    ^10\.169\.[2-4]\.,^10\.169\.[7-9]\.
-#ClassB Network         ^10\.172\.+#ClassB Network         10.172.0.0/16 
 +#ClassC Network         192.168.1.0/24
 # Tachtler # Tachtler
 EDMZ    88\.217\.171\.167 EDMZ    88\.217\.171\.167
Zeile 1452: Zeile 1587:
 # Squid Analyzer User Alias configuration file # Squid Analyzer User Alias configuration file
 # FORMAT : FULL_USER_NAME       IP_ADDRESS|LOGIN_NAME,LOGIN_REGEX # FORMAT : FULL_USER_NAME       IP_ADDRESS|LOGIN_NAME,LOGIN_REGEX
-# Field separator must be one or more tabulation. See example bellow+# Field separator must be one or more tabulation. Space in user name are not 
 +# allowed. See example bellow
 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
 #MyFirstName    mylogin,192.168.1.12 #MyFirstName    mylogin,192.168.1.12
Zeile 1474: 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 1493: 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 1499: 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