tachtler:squid_centos_6
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
tachtler:squid_centos_6 [2013/09/09 08:06] – [Herunterladen SquidAnalyzer] klaus | tachtler:squid_centos_6 [2014/09/05 11:09] – [Ausführen von SquidAnalyzer] klaus | ||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
[[http:// | [[http:// | ||
- | :!: **Hinweis** - **Die nachfolgenden Ausführungen erheben keinen Anspruch auf Vollständigkeit, | + | :!: **Hinweis** - **Die nachfolgenden Ausführungen erheben keinen Anspruch auf Vollständigkeit, |
Ab hier werden zur Ausführung nachfolgender Befehle **'' | Ab hier werden zur Ausführung nachfolgender Befehle **'' | ||
Zeile 1001: | Zeile 1001: | ||
Als Voraussetzung für die Installation von [[http:// | Als Voraussetzung für die Installation von [[http:// | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
Zeile 1009: | Zeile 1009: | ||
Di Programmdateien von [[http:// | Di Programmdateien von [[http:// | ||
- | * [[http:// | + | * [[http:// |
==== Installation Systemvoraussetzungen SquidAnalyzer ==== | ==== Installation Systemvoraussetzungen SquidAnalyzer ==== | ||
Zeile 1016: | Zeile 1016: | ||
* **'' | * **'' | ||
* **'' | * **'' | ||
- | * **'' | + | * :!: **bis Version 5.0** --> |
- | * **'' | + | * :!: **bis Version 5.0** --> |
+ | * :!: **ab Version 5.1** --> **'' | ||
* **'' | * **'' | ||
* **'' | * **'' | ||
Zeile 1023: | Zeile 1024: | ||
installiert werden. | installiert werden. | ||
- | Mit nachfolgendem Befehl, werden die Pakete | + | Mit nachfolgendem Befehl, werden die Pakete installiert: |
< | < | ||
# 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: | perl-Test-Harness.x86_64 0: | ||
perl-devel.x86_64 4: | perl-devel.x86_64 4: | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | |||
+ | :!: **Ab [[http:// | ||
+ | |||
+ | < | ||
+ | # 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: | ||
+ | --> Finished Dependency Resolution | ||
+ | |||
+ | Dependencies Resolved | ||
+ | |||
+ | ================================================================================ | ||
+ | | ||
+ | ================================================================================ | ||
+ | Installing: | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ================================================================================ | ||
+ | Install | ||
+ | |||
+ | 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 | ||
+ | Running rpm_check_debug | ||
+ | Running Transaction Test | ||
+ | Transaction Test Succeeded | ||
+ | Running Transaction | ||
+ | Installing : 4: | ||
+ | Verifying | ||
+ | |||
+ | Installed: | ||
+ | perl-Time-HiRes.x86_64 4: | ||
Complete! | Complete! | ||
Zeile 1188: | Zeile 1231: | ||
==== Installation SquidAnalyzer ==== | ==== Installation SquidAnalyzer ==== | ||
- | Die Datei '' | + | Die Datei '' |
< | < | ||
- | # tar xfzv / | + | # tar xfzv / |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/packaging/ | + | squidanalyzer-6.0/etc/ |
- | squidanalyzer-5.2/packaging/ | + | squidanalyzer-6.0/etc/network-aliases |
- | squidanalyzer-5.2/packaging/ | + | squidanalyzer-6.0/etc/ |
- | squidanalyzer-5.2/MANIFEST | + | squidanalyzer-6.0/etc/ |
- | squidanalyzer-5.2/etc/ | + | squidanalyzer-6.0/etc/excluded |
- | squidanalyzer-5.2/etc/user-aliases | + | squidanalyzer-6.0/etc/included |
- | squidanalyzer-5.2/etc/ | + | squidanalyzer-6.0/SquidAnalyzer.pm |
- | squidanalyzer-5.2/etc/ | + | squidanalyzer-6.0/MANIFEST |
- | squidanalyzer-5.2/etc/ | + | 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/ |
- | squidanalyzer-5.2/ChangeLog | + | squidanalyzer-6.0/lang/ |
- | squidanalyzer-5.2/README | + | squidanalyzer-6.0/lang/ |
- | 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-6.0/packaging/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/packaging/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/packaging/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/ | + | squidanalyzer-6.0/ |
- | squidanalyzer-5.2/META.yml | + | squidanalyzer-6.0/ |
+ | squidanalyzer-6.0/ | ||
+ | squidanalyzer-6.0/ | ||
+ | squidanalyzer-6.0/ | ||
+ | squidanalyzer-6.0/INSTALL | ||
+ | squidanalyzer-6.0/README | ||
</ | </ | ||
- | 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 1253: | Zeile 1301: | ||
# make | # make | ||
cp SquidAnalyzer.pm blib/ | cp SquidAnalyzer.pm blib/ | ||
+ | cp squid-analyzer blib/ | ||
+ | / | ||
+ | Manifying blib/ | ||
</ | </ | ||
Zeile 1258: | Zeile 1309: | ||
# make install | # make install | ||
Installing / | Installing / | ||
+ | Installing / | ||
+ | Installing / | ||
sh install_all.sh | sh install_all.sh | ||
Zeile 1312: | Zeile 1365: | ||
# default: LogFile | # default: LogFile | ||
LogFile / | LogFile / | ||
+ | |||
+ | # If you want to use DNS name instead of client Ip address as username enable | ||
+ | # | ||
+ | # 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 | ||
+ | |||
+ | # 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 | ||
# 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 | # default: CostPrice | ||
- | CostPrice | + | CostPrice |
# Currency of the bandwith cost | # Currency of the bandwith cost | ||
Zeile 1360: | Zeile 1425: | ||
Exclude / | Exclude / | ||
- | # Translation Language file to usei (fr_FR.txt, pt_BR.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 / | + | # |
+ | Include / | ||
+ | |||
+ | # 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 / | ||
# 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. | ||
DateFormat | DateFormat | ||
Zeile 1377: | Zeile 1449: | ||
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. | ||
Zeile 1400: | Zeile 1472: | ||
# default: # | # default: # | ||
Locale | Locale | ||
+ | |||
+ | # 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/ | ||
+ | WriteDelay | ||
+ | |||
+ | # 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 | ||
+ | |||
+ | # This directive allow you to replace the SquidAnalyze logo by your custom | ||
+ | # logo. The default value is defined as follow: | ||
+ | # <a href=" | ||
+ | # <img src=" | ||
+ | # </a> SquidAnalyzer | ||
+ | # 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 1408: | Zeile 1510: | ||
<code ini> | <code ini> | ||
# | # | ||
- | # File used to defined which client ip address, network regex address | + | # File used to defined which client ip address, network |
- | # login and URI to exclude from report. | + | # regex address, auth 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/ | ||
# | # | ||
# See example bellow: | # See example bellow: | ||
# | # | ||
+ | # | ||
# | # | ||
# | # | ||
Zeile 1423: | Zeile 1529: | ||
# Tachtler | # Tachtler | ||
USER root | USER root | ||
+ | </ | ||
+ | |||
+ | === / | ||
+ | |||
+ | Die Konfigurationsdatei ''/ | ||
+ | |||
+ | <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/ | ||
+ | # | ||
+ | # See example bellow: | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
</ | </ | ||
Zeile 1431: | Zeile 1561: | ||
# | # | ||
# Squid Analyzer Network Alias configuration file | # Squid Analyzer Network Alias configuration file | ||
- | # FORMAT : NETWORK_NAME NETWORK_REGEX1, | + | # FORMAT: NETWORK_NAME |
- | # 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: | ||
+ | # | ||
+ | # See examples below. | ||
# | # | ||
# | # | ||
#Home Network | #Home Network | ||
#Associated Networks | #Associated Networks | ||
- | #ClassB Network | + | #ClassB Network |
+ | #ClassC Network | ||
# 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 | # FORMAT : FULL_USER_NAME | ||
- | # 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 | ||
# | # | ||
# | # | ||
Zeile 1474: | Zeile 1610: | ||
<code bash> | <code bash> | ||
#!/bin/sh | #!/bin/sh | ||
- | / | + | / |
</ | </ | ||
Zeile 1493: | Zeile 1629: | ||
Das Perl-Script wird mit folgendem Befehl ausgeführt: | Das Perl-Script wird mit folgendem Befehl ausgeführt: | ||
< | < | ||
- | # ./ | + | # ./ |
</ | </ | ||
Zeile 1499: | Zeile 1635: | ||
< | < | ||
# ls -la / | # ls -la / | ||
- | total 64 | + | total 180 |
- | drwxr-xr-x | + | drwxr-xr-x |
- | drwxr-xr-x | + | drwxr-xr-x 16 root root 4096 Dec 1 08:01 2013 |
- | drwxr-xr-x | + | drwxr-xr-x |
- | -rw-r--r-- 1 root root | + | -rw-r--r-- |
- | -rw-r--r-- 1 root root 23628 May 4 13:48 logo-squidanalyzer.png | + | -rw-r--r-- |
- | -rw-r--r-- 1 root root 16917 May 4 13:48 sorttable.js | + | drwxr-xr-x |
- | -rw-r--r-- 1 root root | + | -rw-r--r-- |
- | -rw-r--r-- 1 root root 14 May 4 13:59 SquidAnalyzer.current | + | -rw-r--r-- |
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
</ | </ | ||
tachtler/squid_centos_6.txt · Zuletzt geändert: 2014/11/01 08:43 von klaus