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 [2014/09/05 08:20] klaustachtler:squid_centos_6 [2014/09/05 11:08] – [cron-job SquidAnalyzer] klaus
Zeile 1307: Zeile 1307:
  
 <code> <code>
-# make install 
 # make install # make install
 Installing /usr/share/perl5/vendor_perl/SquidAnalyzer.pm Installing /usr/share/perl5/vendor_perl/SquidAnalyzer.pm
Zeile 1355: Zeile 1354:
 # 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 /var/www/squidanalyzer+Output  /var/www/squidanalyzer
  
 # The URL of the SquidAnalyzer javascript, HTML and images files. # The URL of the SquidAnalyzer javascript, HTML and images files.
 # Tachtler # Tachtler
-# default: WebUrl /squidreport+# default: WebUrl       /squidreport
 WebUrl / WebUrl /
  
 # Set the path to the Squid log file # Set the path to the Squid log file
 # Tachtler # Tachtler
-# 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 # 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+# 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. # 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 that you must have a working DNS resolution and that it can really slow 
-down the generation of reports.+# down the generation of reports.
 UseClientDNSName        0 UseClientDNSName        0
  
Zeile 1382: Zeile 1381:
 # 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 /etc/squidanalyzer/network-aliases+NetworkAlias    /etc/squidanalyzer/network-aliases
  
 # 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 /etc/squidanalyzer/user-aliases+UserAlias       /etc/squidanalyzer/user-aliases
  
 # 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    bytes 
-OrderUser bytes +OrderUser       bytes 
-OrderUrl bytes+OrderUrl        bytes
  
 # 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       bytes
  
 # 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       1
  
 # Run in quiet mode or print debug information # Run in quiet mode or print debug information
-QuietMode 1+QuietMode       1
  
 # 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    0.5 
-CostPrice 0.01+CostPrice       0.01
  
 # Currency of the bandwith cost # Currency of the bandwith cost
-Currency &euro;+Currency        &euro;
  
 # Top number of url to show # Top number of url to show
-TopNumber 100+TopNumber       100
  
 # 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 1427:
 # 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 by default.+# excluded by default.
 Include /etc/squidanalyzer/included Include /etc/squidanalyzer/included
  
-# Translation Language file to use (fr_FR.txt, pt_BR.txt and en_US.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 /etc/squidanalyzer/lang/fr_FR.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. # 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 # Custom Footer. Must be a path to a text file containing HTML code that
Zeile 1449: 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.
-AnonymizeLogin 0+AnonymizeLogin  0
  
 # 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      1
  
 # 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 1474:
  
 # By default SquidAnalyzer is saving current collected statistics each time # By default SquidAnalyzer is saving current collected statistics each time
-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 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 # 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 1492:
 # 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.
 #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 #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 1601: 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>
  
tachtler/squid_centos_6.txt · Zuletzt geändert: 2014/11/01 08:43 von klaus