tachtler:squid_centos_6
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:squid_centos_6 [2014/09/05 08:20] – klaus | tachtler:squid_centos_6 [2014/11/01 08:43] (aktuell) – klaus | ||
---|---|---|---|
Zeile 1001: | Zeile 1001: | ||
Als Voraussetzung für die Installation von [[http:// | Als Voraussetzung für die Installation von [[http:// | ||
- | * '' | + | * '' |
- | * '' | + | |
- | * '' | + | |
* '' | * '' | ||
Zeile 1009: | Zeile 1007: | ||
Di Programmdateien von [[http:// | Di Programmdateien von [[http:// | ||
- | * [[http:// | + | * [[http:// |
==== Installation Systemvoraussetzungen SquidAnalyzer ==== | ==== Installation Systemvoraussetzungen SquidAnalyzer ==== | ||
Zeile 1016: | Zeile 1014: | ||
* **'' | * **'' | ||
* **'' | * **'' | ||
- | * :!: **bis Version 5.0** --> **'' | ||
- | * :!: **bis Version 5.0** --> **'' | ||
* :!: **ab Version 5.1** --> **'' | * :!: **ab Version 5.1** --> **'' | ||
* **'' | * **'' | ||
- | * **'' | ||
- | * **'' | ||
installiert werden. | installiert werden. | ||
Mit nachfolgendem Befehl, werden die Pakete installiert: | Mit nachfolgendem Befehl, werden die Pakete installiert: | ||
< | < | ||
- | # yum install perl-ExtUtils-MakeMaker | + | # yum install perl-ExtUtils-MakeMaker make |
Loaded plugins: fastestmirror, | Loaded plugins: fastestmirror, | ||
Loading mirror speeds from cached hostfile | Loading mirror speeds from cached hostfile | ||
Zeile 1037: | Zeile 1031: | ||
Resolving Dependencies | Resolving Dependencies | ||
--> Running transaction check | --> Running transaction check | ||
- | ---> Package gd.x86_64 0: | ||
- | --> Processing Dependency: libXpm.so.4()(64bit) for package: gd-2.0.35-10.el6.x86_64 | ||
- | --> Processing Dependency: libX11.so.6()(64bit) for package: gd-2.0.35-10.el6.x86_64 | ||
- | --> Processing Dependency: libfontconfig.so.1()(64bit) for package: gd-2.0.35-10.el6.x86_64 | ||
- | --> Processing Dependency: libfreetype.so.6()(64bit) for package: gd-2.0.35-10.el6.x86_64 | ||
- | --> Processing Dependency: libjpeg.so.62()(64bit) for package: gd-2.0.35-10.el6.x86_64 | ||
- | ---> Package libpng.x86_64 2: | ||
---> Package make.x86_64 1: | ---> Package make.x86_64 1: | ||
---> Package perl-ExtUtils-MakeMaker.x86_64 0: | ---> Package perl-ExtUtils-MakeMaker.x86_64 0: | ||
--> Processing Dependency: perl(Test:: | --> Processing Dependency: perl(Test:: | ||
--> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64 | --> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64 | ||
- | ---> Package perl-GD-Graph.noarch 0: | ||
- | --> Processing Dependency: perl(GD) for package: perl-GD-Graph-1.44-1.el6.rf.noarch | ||
- | --> Processing Dependency: perl(GD:: | ||
- | ---> Package perl-GD-Graph3d.noarch 0: | ||
- | --> Running transaction check | ||
- | ---> Package fontconfig.x86_64 0: | ||
- | ---> Package freetype.x86_64 0: | ||
- | ---> Package libX11.x86_64 0:1.3-2.el6 set to be updated | ||
- | --> Processing Dependency: libX11-common = 1.3-2.el6 for package: libX11-1.3-2.el6.x86_64 | ||
- | --> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.3-2.el6.x86_64 | ||
- | ---> Package libXpm.x86_64 0: | ||
- | ---> Package libjpeg.x86_64 0:6b-46.el6 set to be updated | ||
- | ---> Package perl-GD.x86_64 0: | ||
- | ---> Package perl-GDTextUtil.noarch 0: | ||
---> Package perl-Test-Harness.x86_64 0: | ---> Package perl-Test-Harness.x86_64 0: | ||
---> Package perl-devel.x86_64 4: | ---> Package perl-devel.x86_64 4: | ||
--> Processing Dependency: perl(ExtUtils:: | --> Processing Dependency: perl(ExtUtils:: | ||
--> Running transaction check | --> Running transaction check | ||
- | ---> Package libX11-common.noarch 0:1.3-2.el6 set to be updated | ||
- | ---> Package libxcb.x86_64 0:1.5-1.el6 set to be updated | ||
- | --> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.5-1.el6.x86_64 | ||
---> Package perl-ExtUtils-ParseXS.x86_64 1: | ---> Package perl-ExtUtils-ParseXS.x86_64 1: | ||
- | --> Running transaction check | ||
- | ---> Package libXau.x86_64 0: | ||
--> Finished Dependency Resolution | --> Finished Dependency Resolution | ||
Zeile 1080: | Zeile 1048: | ||
================================================================================ | ================================================================================ | ||
Installing: | Installing: | ||
- | | ||
- | | ||
| | ||
| | ||
- | | ||
- | | ||
Installing for dependencies: | Installing for dependencies: | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
| | ||
- | | ||
- | | ||
| | ||
| | ||
Zeile 1103: | Zeile 1057: | ||
Transaction Summary | Transaction Summary | ||
================================================================================ | ================================================================================ | ||
- | Install | + | Install |
Upgrade | Upgrade | ||
- | Total download size: 3.6 M | + | Total download size: 1.1 M |
- | Installed size: 11 M | + | Installed size: 3.4 M |
Is this ok [y/N]: y | Is this ok [y/N]: y | ||
- | Downloading Packages: | + | Downloading Packages: |
- | (1/19): fontconfig-2.8.0-3.el6.x86_64.rpm | + | (1/5): make-3.81-19.el6.x86_64.rpm |
- | (2/19): freetype-2.3.11-6.el6_0.2.x86_64.rpm | + | (2/5): perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64.rpm | 289 kB |
- | (3/19): gd-2.0.35-10.el6.x86_64.rpm | + | (3/5): perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64.r | 41 kB |
- | (4/19): libX11-1.3-2.el6.x86_64.rpm | + | (4/5): perl-Test-Harness-3.17-115.el6.x86_64.rpm |
- | (5/19): libX11-common-1.3-2.el6.noarch.rpm | + | (5/5): perl-devel-5.10.1-115.el6.x86_64.rpm |
- | (6/19): libXau-1.0.5-1.el6.x86_64.rpm | + | |
- | (7/19): libXpm-3.5.8-2.el6.x86_64.rpm | + | |
- | (8/19): libjpeg-6b-46.el6.x86_64.rpm | + | |
- | (9/19): libpng-1.2.44-1.el6.x86_64.rpm | + | |
- | (10/19): libxcb-1.5-1.el6.x86_64.rpm | + | |
- | (11/19): make-3.81-19.el6.x86_64.rpm | + | |
- | (12/19): perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64.rpm | 289 kB | + | |
- | (13/19): perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64.r | 41 kB | + | |
- | (14/19): perl-GD-2.44-3.el6.x86_64.rpm | + | |
- | (15/19): perl-GD-Graph-1.44-1.el6.rf.noarch.rpm | + | |
- | (16/19): perl-GD-Graph3d-0.63-2.2.el6.rf.noarch.rpm | + | |
- | (17/19): perl-GDTextUtil-0.86-15.el6.noarch.rpm | + | |
- | (18/19): perl-Test-Harness-3.17-115.el6.x86_64.rpm | + | |
- | (19/19): perl-devel-5.10.1-115.el6.x86_64.rpm | + | |
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
Total 499 kB/s | 3.6 MB | Total 499 kB/s | 3.6 MB | ||
Zeile 1135: | Zeile 1075: | ||
Transaction Test Succeeded | Transaction Test Succeeded | ||
Running Transaction | Running Transaction | ||
- | | + | Installing |
- | Installing | + | Installing |
- | Installing | + | Installing |
- | Installing | + | Installing |
- | Installing | + | Installing |
- | | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installing | + | |
- | Installed: | + | Installed: |
- | gd.x86_64 0: | + | |
- | libpng.x86_64 2: | + | |
make.x86_64 1: | make.x86_64 1: | ||
perl-ExtUtils-MakeMaker.x86_64 0: | perl-ExtUtils-MakeMaker.x86_64 0: | ||
- | perl-GD-Graph.noarch 0: | ||
- | perl-GD-Graph3d.noarch 0: | ||
- | Dependency Installed: | + | Dependency Installed: |
- | fontconfig.x86_64 0: | + | |
- | freetype.x86_64 0: | + | |
- | libX11.x86_64 0: | + | |
- | libX11-common.noarch 0: | + | |
- | libXau.x86_64 0: | + | |
- | libXpm.x86_64 0: | + | |
- | libjpeg.x86_64 0: | + | |
- | libxcb.x86_64 0: | + | |
perl-ExtUtils-ParseXS.x86_64 1: | perl-ExtUtils-ParseXS.x86_64 1: | ||
- | perl-GD.x86_64 0: | ||
- | perl-GDTextUtil.noarch 0: | ||
perl-Test-Harness.x86_64 0: | perl-Test-Harness.x86_64 0: | ||
perl-devel.x86_64 4: | perl-devel.x86_64 4: | ||
Zeile 1231: | Zeile 1143: | ||
==== Installation SquidAnalyzer ==== | ==== Installation SquidAnalyzer ==== | ||
- | Die Datei '' | + | Die Datei '' |
< | < | ||
- | # tar xfzv / | + | # tar xfzv / |
- | squidanalyzer-6.0/ | + | squidanalyzer-6.1/ |
- | squidanalyzer-6.0/etc/ | + | squidanalyzer-6.1/ |
- | squidanalyzer-6.0/etc/network-aliases | + | squidanalyzer-6.1/ |
- | squidanalyzer-6.0/ | + | squidanalyzer-6.1/etc/ |
- | squidanalyzer-6.0/etc/user-aliases | + | squidanalyzer-6.1/etc/included |
- | squidanalyzer-6.0/ | + | squidanalyzer-6.1/ |
- | squidanalyzer-6.0/etc/included | + | squidanalyzer-6.1/ |
- | squidanalyzer-6.0/SquidAnalyzer.pm | + | squidanalyzer-6.1/etc/network-aliases |
- | squidanalyzer-6.0/MANIFEST | + | squidanalyzer-6.1/ |
- | squidanalyzer-6.0/META.yml | + | squidanalyzer-6.1/resources/ |
- | squidanalyzer-6.0/lang/ | + | squidanalyzer-6.1/ |
- | squidanalyzer-6.0/lang/pl_PL.txt | + | squidanalyzer-6.1/resources/ |
- | squidanalyzer-6.0/lang/pt_BR.txt | + | squidanalyzer-6.1/resources/ |
- | squidanalyzer-6.0/lang/fr_FR.txt | + | squidanalyzer-6.1/resources/images/ |
- | squidanalyzer-6.0/lang/es_ES.txt | + | squidanalyzer-6.1/resources/images/ |
- | squidanalyzer-6.0/lang/de_DE.txt | + | squidanalyzer-6.1/resources/images/ |
- | squidanalyzer-6.0/lang/en_US.txt | + | squidanalyzer-6.1/resources/images/ |
- | squidanalyzer-6.0/lang/ru_RU.txt | + | squidanalyzer-6.1/resources/images/user.png |
- | squidanalyzer-6.0/lang/cs_CZ.txt | + | squidanalyzer-6.1/resources/images/ |
- | squidanalyzer-6.0/lang/ | + | squidanalyzer-6.1/resources/flotr2.js |
- | squidanalyzer-6.0/doc/ | + | squidanalyzer-6.1/resources/squidanalyzer.css |
- | squidanalyzer-6.0/ | + | squidanalyzer-6.1/resources/sorttable.js |
- | squidanalyzer-6.0/squid-analyzer | + | squidanalyzer-6.1/README |
- | squidanalyzer-6.0/Makefile.PL | + | squidanalyzer-6.1/doc/ |
- | squidanalyzer-6.0/ChangeLog | + | squidanalyzer-6.1/ |
- | squidanalyzer-6.0/TODO | + | squidanalyzer-6.1/META.yml |
- | squidanalyzer-6.0/packaging/ | + | squidanalyzer-6.1/SquidAnalyzer.pm |
- | squidanalyzer-6.0/packaging/ | + | squidanalyzer-6.1/TODO |
- | squidanalyzer-6.0/ | + | squidanalyzer-6.1/MANIFEST |
- | squidanalyzer-6.0/resources/ | + | squidanalyzer-6.1/Makefile.PL |
- | squidanalyzer-6.0/resources/flotr2.js | + | squidanalyzer-6.1/squid-analyzer |
- | squidanalyzer-6.0/resources/squidanalyzer.css | + | squidanalyzer-6.1/lang/ |
- | squidanalyzer-6.0/resources/sorttable.js | + | squidanalyzer-6.1/lang/ru_RU.txt |
- | squidanalyzer-6.0/resources/ | + | squidanalyzer-6.1/lang/fr_FR.txt |
- | squidanalyzer-6.0/resources/images/info.png | + | squidanalyzer-6.1/lang/de_DE.txt |
- | squidanalyzer-6.0/resources/images/ | + | squidanalyzer-6.1/lang/pl_PL.txt |
- | squidanalyzer-6.0/resources/images/ | + | squidanalyzer-6.1/lang/es_ES.txt |
- | squidanalyzer-6.0/resources/images/user.png | + | squidanalyzer-6.1/lang/en_US.txt |
- | squidanalyzer-6.0/resources/images/ | + | squidanalyzer-6.1/lang/uk_UA.txt |
- | squidanalyzer-6.0/resources/images/ | + | squidanalyzer-6.1/lang/cs_CZ.txt |
- | squidanalyzer-6.0/resources/images/domain.png | + | squidanalyzer-6.1/lang/pt_BR.txt |
- | squidanalyzer-6.0/resources/images/cursor.png | + | squidanalyzer-6.1/packaging/ |
- | squidanalyzer-6.0/INSTALL | + | squidanalyzer-6.1/packaging/RPM/ |
- | squidanalyzer-6.0/ | + | squidanalyzer-6.1/packaging/RPM/ |
</ | </ | ||
- | Das so erhaltene Verzeichnis, | + | Das so erhaltene Verzeichnis, |
Die Schritte zusammengefasst sollten wie folgt aussehen: | Die Schritte zusammengefasst sollten wie folgt aussehen: | ||
< | < | ||
- | # cd / | + | # cd / |
</ | </ | ||
Zeile 1307: | Zeile 1219: | ||
< | < | ||
- | # make install | ||
# make install | # make install | ||
Installing / | Installing / | ||
Zeile 1355: | Zeile 1266: | ||
# Path where SquidAnalyzer should dump all HTML and images files. | # Path where SquidAnalyzer should dump all HTML and images files. | ||
# Choose a path that can be read by a Web browser | # Choose a path that can be read by a Web browser | ||
- | Output / | + | Output |
# The URL of the SquidAnalyzer javascript, HTML and images files. | # The URL of the SquidAnalyzer javascript, HTML and images files. | ||
# Tachtler | # Tachtler | ||
- | # default: WebUrl / | + | # default: WebUrl |
WebUrl / | WebUrl / | ||
# Set the path to the Squid log file | # Set the path to the Squid log file | ||
# Tachtler | # Tachtler | ||
- | # default: LogFile / | + | # default: LogFile |
- | LogFile / | + | LogFile / |
# If you want to use DNS name instead of client Ip address as username enable | # If you want to use DNS name instead of client Ip address as username enable | ||
- | # this directive. When you don't have authentication, | + | # this directive. When you don't have authentication, |
# the client ip address, this allow you to use the DNS name instead. | # 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 | + | #Â Note |
- | # down the generation of reports. | + | #Â down |
UseClientDNSName | UseClientDNSName | ||
Zeile 1382: | Zeile 1293: | ||
# show as Ip addresses so if you want to display name instead | # show as Ip addresses so if you want to display name instead | ||
# create a file with this format : | # create a file with this format : | ||
- | # LOCATION_NAME IP_NETWORK_ADDRESS | + | # LOCATION_NAME IP_NETWORK_ADDRESS |
# Separator must be a tabulation | # Separator must be a tabulation | ||
- | NetworkAlias / | + | NetworkAlias |
# Set the file containing user alias name. If you don't have auth_proxy | # Set the file containing user alias name. If you don't have auth_proxy | ||
# enable user are seen as Ip addresses, or if you want to replace login | # enable user are seen as Ip addresses, or if you want to replace login | ||
# name by full user name, create a file with this format : | # name by full user name, create a file with this format : | ||
- | # FULL_USERNAME IP_ADDRESS || LOGIN_NAME | + | # FULL_USERNAME IP_ADDRESS || LOGIN_NAME |
# Separator must be a tabulation | # Separator must be a tabulation | ||
- | UserAlias / | + | UserAlias |
# How do we sort Network, User and Url report screen | # How do we sort Network, User and Url report screen | ||
# Value can be: bytes, hits or duration. Default is bytes. | # Value can be: bytes, hits or duration. Default is bytes. | ||
- | OrderNetwork bytes | + | OrderNetwork |
- | OrderUser bytes | + | OrderUser |
- | OrderUrl bytes | + | OrderUrl |
# How do we sort Mime types report screen | # How do we sort Mime types report screen | ||
# Value can be: bytes or hits. Default is bytes. | # Value can be: bytes or hits. Default is bytes. | ||
- | OrderMime bytes | + | OrderMime |
# Should we display user details. This will show all URL read | # Should we display user details. This will show all URL read | ||
# by user. Take care to have enougth space disk for large user. | # by user. Take care to have enougth space disk for large user. | ||
- | UrlReport 1 | + | UrlReport |
# Run in quiet mode or print debug information | # Run in quiet mode or print debug information | ||
- | QuietMode 1 | + | QuietMode |
# Cost of the bandwith per Mb. If you want to generate invoice per Mb | # Cost of the bandwith per Mb. If you want to generate invoice per Mb | ||
# for bandwith traffic this can help you. Value 0 mean no cost. | # for bandwith traffic this can help you. Value 0 mean no cost. | ||
# Tachtler | # Tachtler | ||
- | # default: CostPrice 0.5 | + | # default: CostPrice |
- | CostPrice 0.01 | + | CostPrice |
# Currency of the bandwith cost | # Currency of the bandwith cost | ||
- | Currency & | + | Currency |
# Top number of url to show | # Top number of url to show | ||
- | TopNumber 100 | + | TopNumber |
# Path to the file containing client ip addresses, network ip address, | # Path to the file containing client ip addresses, network ip address, | ||
Zeile 1428: | Zeile 1339: | ||
# Path to the file containing client ip addresses, network ip address, | # Path to the file containing client ip addresses, network ip address, | ||
# and/or auth login to include into the report. Other entries will be | # and/or auth login to include into the report. Other entries will be | ||
- | # excluded | + | #Â excluded |
Include / | Include / | ||
- | # Translation Language file to use (fr_FR.txt, pt_BR.txt | + | # Translation Language file to use (fr_FR.txt, pt_BR.txt, es_ES.txt, |
- | # Default to en_US.txt | + | # en_US.txt, ru_RU.txt, uk_UA.txt, cs_CZ.txt, pl_PL.txt and de_DE.txt). |
- | #Lang / | + | # Default to: |
+ | #Lang | ||
# Tachtler | # Tachtler | ||
- | Lang / | + | Lang / |
# 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. | # You can also use %M to replace month by its 3 letters abbreviation. | ||
- | DateFormat %y-%m-%d | + | DateFormat |
# Custom Footer. Must be a path to a text file containing HTML code that | # Custom Footer. Must be a path to a text file containing HTML code that | ||
Zeile 1449: | Zeile 1361: | ||
FooterFile | FooterFile | ||
- | # Set this to 1 if you want to anonymize all user login. The username | + | #â¯Set |
# 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. | ||
- | AnonymizeLogin 0 | + | AnonymizeLogin |
# Adds peer cache hit (CD_SIBLING_HIT) to be taken has local cache hit. | # Adds peer cache hit (CD_SIBLING_HIT) to be taken has local cache hit. | ||
# Enabled by default, you must disabled it if you don't want to report | # Enabled by default, you must disabled it if you don't want to report | ||
# peer cache hit onto your stats. | # peer cache hit onto your stats. | ||
- | SiblingHit 1 | + | SiblingHit |
# Set the default unit for transfert size. Default is BYTES, other possible | # Set the default unit for transfert size. Default is BYTES, other possible | ||
Zeile 1474: | Zeile 1386: | ||
# By default SquidAnalyzer is saving current collected statistics each time | # 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 | + | #Â 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 | + | #Â you |
# parser by forcing Perl to use temporaries files. Use lower value following | # 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 | # your memory and the size of your log file, on very huge log file with lot of | ||
Zeile 1492: | Zeile 1404: | ||
# Feel free to define your own header but take care to not break current design. | # Feel free to define your own header but take care to not break current design. | ||
# | # | ||
+ | |||
+ | # This directive allow exclusion of some unwanted methods in report statistics | ||
+ | # like HEAD, POST, CONNECT, etc. Can be a comma separated list of methods. | ||
+ | # | ||
+ | |||
+ | # 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. | ||
+ | # | ||
</ | </ | ||
Zeile 1601: | Zeile 1522: | ||
<code bash> | <code bash> | ||
#!/bin/sh | #!/bin/sh | ||
- | / | + | / |
</ | </ | ||
Zeile 1620: | Zeile 1541: | ||
Das Perl-Script wird mit folgendem Befehl ausgeführt: | Das Perl-Script wird mit folgendem Befehl ausgeführt: | ||
< | < | ||
- | # ./ | + | # ./ |
</ | </ | ||
tachtler/squid_centos_6.1409898028.txt.gz · Zuletzt geändert: 2014/09/05 08:20 von klaus