Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:postfix_logfiles_auswerten

Postfix Logfiles auswerten

Es gibt verschiedene Varianten und Tools um LOG-Dateien von Postfix auszuwerten. Hier sollen einige davon vorgestellt werden. Unter anderem

  • pflogsumm - In den RPM-Paketen von CentOS enthalten!
  • mailgraph - Herunterladbar von Mailgraph
  • AWStats - Herunterladbar von AWStats - oder auch in diesem DokuWiki beschrieben unter AWStats

Folgende Voraussetzungen sind für den Betrieb der Tools zur LOG-Dateien Auswertung mindestens notwendig:

Ab hier werden root-Rechte zur Ausführung der nachfolgenden Befehle benötigt. Um root zu werden geben Sie bitte folgenden Befehl ein:

$ su -
Password: 

pflogsumm

Um eine grundlegende Auswertung der Postfix-LOG-Datei - z.B. unter /var/log/maillog durchführen zu können, kann das Perl-Script pflogsumm.pl genutzt werden.

Unter CentOS Version 5.x gibt es die Möglichkeit das RPM-Paket postfix-pflogsumm.i386 mit folgendem Befehl über den Paket-Manager yum zu installieren:

# yum install postfix-pflogsumm

Ab der CentOS Version 6.x gibt es die Möglichkeit das RPM-Paket postfix-perl-scripts.x86_64 mit folgendem Befehl über den Paket-Manager yum zu installieren:

# yum install postfix-perl-scripts
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
4 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package postfix-perl-scripts.x86_64 2:2.6.6-2.2.el6_1 will be installed
--> Processing Dependency: perl(Date::Calc) for package: 2:postfix-perl-scripts-2.6.6-2.2.el6_1.x86_64
--> Running transaction check
---> Package perl-Date-Calc.noarch 0:6.3-2.el6 will be installed
--> Processing Dependency: perl(Bit::Vector) >= 7.1 for package: perl-Date-Calc-6.3-2.el6.noarch
--> Processing Dependency: perl(Carp::Clan) for package: perl-Date-Calc-6.3-2.el6.noarch
--> Processing Dependency: perl(Bit::Vector) for package: perl-Date-Calc-6.3-2.el6.noarch
--> Running transaction check
---> Package perl-Bit-Vector.x86_64 0:7.1-2.el6 will be installed
---> Package perl-Carp-Clan.noarch 0:6.03-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch        Version                  Repository
                                                                           Size
================================================================================
Installing:
 postfix-perl-scripts      x86_64      2:2.6.6-2.2.el6_1        base       61 k
Installing for dependencies:
 perl-Bit-Vector           x86_64      7.1-2.el6                base      169 k
 perl-Carp-Clan            noarch      6.03-2.el6               base       25 k
 perl-Date-Calc            noarch      6.3-2.el6                base      210 k

Transaction Summary
================================================================================
Install       4 Package(s)

Total download size: 465 k
Installed size: 1.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): perl-Bit-Vector-7.1-2.el6.x86_64.rpm              | 169 kB     00:00     
(2/4): perl-Carp-Clan-6.03-2.el6.noarch.rpm              |  25 kB     00:00     
(3/4): perl-Date-Calc-6.3-2.el6.noarch.rpm               | 210 kB     00:00     
(4/4): postfix-perl-scripts-2.6.6-2.2.el6_1.x86_64.rpm   |  61 kB     00:00     
--------------------------------------------------------------------------------
Total                                           4.1 MB/s | 465 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-Carp-Clan-6.03-2.el6.noarch                             1/4 
  Installing : perl-Bit-Vector-7.1-2.el6.x86_64                             2/4 
  Installing : perl-Date-Calc-6.3-2.el6.noarch                              3/4 
  Installing : 2:postfix-perl-scripts-2.6.6-2.2.el6_1.x86_64                4/4 

Installed:
  postfix-perl-scripts.x86_64 2:2.6.6-2.2.el6_1                                 

Dependency Installed:
  perl-Bit-Vector.x86_64 0:7.1-2.el6     perl-Carp-Clan.noarch 0:6.03-2.el6    
  perl-Date-Calc.noarch 0:6.3-2.el6     

Complete!

Mit der CentOS Version 7.x gibt es die Möglichkeit das RPM-Paket postfix-perl-scripts.x86_64 mit folgendem Befehl über den Paket-Manager yum zu installieren:

# yum install postfix-perl-scripts
Loaded plugins: changelog, priorities
240 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package postfix-perl-scripts.x86_64 2:2.11.6-1.el7.centos will be installed
--> Processing Dependency: perl(Date::Calc) for package: 2:postfix-perl-scripts-2.11.6-1.el7.centos.x86_64
--> Running transaction check
---> Package perl-Date-Calc.noarch 0:6.3-14.el7 will be installed
--> Processing Dependency: perl(Bit::Vector) >= 7.1 for package: perl-Date-Calc-6.3-14.el7.noarch
--> Processing Dependency: perl(Carp::Clan) for package: perl-Date-Calc-6.3-14.el7.noarch
--> Processing Dependency: perl(Bit::Vector) for package: perl-Date-Calc-6.3-14.el7.noarch
--> Running transaction check
---> Package perl-Bit-Vector.x86_64 0:7.3-3.el7 will be installed
---> Package perl-Carp-Clan.noarch 0:6.04-10.el7 will be installed
--> Finished Dependency Resolution

Changes in packages about to be updated:


Dependencies Resolved

================================================================================
 Package               Arch    Version                Repository           Size
================================================================================
Installing:
 postfix-perl-scripts  x86_64  2:2.11.6-1.el7.centos  mailserver.guru-os   70 k
Installing for dependencies:
 perl-Bit-Vector       x86_64  7.3-3.el7              base                165 k
 perl-Carp-Clan        noarch  6.04-10.el7            base                 26 k
 perl-Date-Calc        noarch  6.3-14.el7             base                210 k

Transaction Summary
================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 471 k
Installed size: 1.3 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): perl-Bit-Vector-7.3-3.el7.x86_64.rpm                | 165 kB   00:00     
(2/4): perl-Carp-Clan-6.04-10.el7.noarch.rpm               |  26 kB   00:00     
(3/4): perl-Date-Calc-6.3-14.el7.noarch.rpm                | 210 kB   00:00     
(4/4): postfix-perl-scripts-2.11.6-1.el7.centos.x86_64.rpm |  70 kB   00:00     
--------------------------------------------------------------------------------
Total                                              725 kB/s | 471 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : perl-Carp-Clan-6.04-10.el7.noarch                            1/4 
  Installing : perl-Bit-Vector-7.3-3.el7.x86_64                             2/4 
  Installing : perl-Date-Calc-6.3-14.el7.noarch                             3/4 
  Installing : 2:postfix-perl-scripts-2.11.6-1.el7.centos.x86_64            4/4 
  Verifying  : perl-Bit-Vector-7.3-3.el7.x86_64                             1/4 
  Verifying  : perl-Date-Calc-6.3-14.el7.noarch                             2/4 
  Verifying  : 2:postfix-perl-scripts-2.11.6-1.el7.centos.x86_64            3/4 
  Verifying  : perl-Carp-Clan-6.04-10.el7.noarch                            4/4 

Installed:
  postfix-perl-scripts.x86_64 2:2.11.6-1.el7.centos                             

Dependency Installed:
  perl-Bit-Vector.x86_64 0:7.3-3.el7     perl-Carp-Clan.noarch 0:6.04-10.el7    
  perl-Date-Calc.noarch 0:6.3-14.el7    

Complete!

Nach der Installation unter CentOS Version 5.x sind folgende Dateien im Dateisystem vorhanden, was mit nachfolgendem Befehl ermittelt werden kann:

# rpm -qil postfix-pflogsumm
Name        : postfix-pflogsumm            Relocations: (not relocatable)
Version     : 2.3.3                             Vendor: CentOS
Release     : 2.1.el5_2                     Build Date: Thu 14 Aug 2008 11:06:38 PM CEST
Install Date: Mon 29 Dec 2008 01:14:59 PM CET      Build Host: builder16.centos.org
Group       : System Environment/Daemons    Source RPM: postfix-2.3.3-2.1.el5_2.src.rpm
Size        : 87602                            License: IBM Public License
Signature   : DSA/SHA1, Fri 15 Aug 2008 12:59:48 PM CEST, Key ID a8a447dce8562897
URL         : http://www.postfix.org
Summary     : A Log Summarizer/Analyzer for the Postfix MTA
Description :
Pflogsumm is a log analyzer/summarizer for the Postfix MTA.  It is
designed to provide an over-view of Postfix activity. Pflogsumm
generates summaries and, in some cases, detailed reports of mail
server traffic volumes, rejected and bounced email, and server
warnings, errors and panics.
/usr/sbin/pflogsumm
/usr/share/doc/postfix-2.3.3/pflogsumm-faq.txt
/usr/share/man/man1/pflogsumm.1.gz

Nach der Installation unter CentOS Version 6.x sind folgende Dateien im Dateisystem vorhanden, was mit nachfolgendem Befehl ermittelt werden kann:

# rpm -qil postfix-perl-scripts
Name        : postfix-perl-scripts         Relocations: (not relocatable)
Version     : 2.6.6                             Vendor: CentOS
Release     : 2.2.el6_1                     Build Date: Sat 03 Dec 2011 06:01:00 AM CET
Install Date: Tue 24 Jan 2012 01:06:24 PM CET      Build Host: c6b18n3.bsys.dev.centos.org
Group       : Applications/System           Source RPM: postfix-2.6.6-2.2.el6_1.src.rpm
Size        : 106404                           License: IBM
Signature   : RSA/SHA1, Wed 07 Dec 2011 07:15:05 PM CET, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://www.postfix.org
Summary     : Postfix utilities written in perl
Description :
This package contains perl scripts pflogsumm and qshape.

Pflogsumm is a log analyzer/summarizer for the Postfix MTA. It is
designed to provide an over-view of Postfix activity. Pflogsumm
generates summaries and, in some cases, detailed reports of mail
server traffic volumes, rejected and bounced email, and server
warnings, errors and panics.

qshape prints Postfix queue domain and age distribution.
/usr/sbin/pflogsumm
/usr/sbin/qshape
/usr/share/doc/postfix-2.6.6/pflogsumm-faq.txt
/usr/share/man/man1/pflogsumm.1.gz
/usr/share/man/man1/qshape.1.gz

Nach der Installation unter CentOS Version 6.x sind folgende Dateien im Dateisystem vorhanden, was mit nachfolgendem Befehl ermittelt werden kann:

# rpm -qil postfix-perl-scripts
Name        : postfix-perl-scripts
Epoch       : 2
Version     : 2.11.6
Release     : 1.el7.centos
Architecture: x86_64
Install Date: Fri 06 May 2016 12:27:18 PM CEST
Group       : Applications/System
Size        : 111466
License     : IBM and GPLv2+
Signature   : RSA/SHA1, Wed 07 Oct 2015 12:19:20 PM CEST, Key ID 60ecfb9e8195aea0
Source RPM  : postfix-2.11.6-1.el7.centos.src.rpm
Build Date  : Wed 07 Oct 2015 12:13:26 PM CEST
Build Host  : vml000200.dmz.nausch.org
Relocations : (not relocatable)
Packager    : Django <django@mailserver.guru>
Vendor      : Django
URL         : http://www.postfix.org
Summary     : Postfix utilities written in perl
Description :
This package contains perl scripts pflogsumm and qshape.

Pflogsumm is a log analyzer/summarizer for the Postfix MTA. It is
designed to provide an over-view of Postfix activity. Pflogsumm
generates summaries and, in some cases, detailed reports of mail
server traffic volumes, rejected and bounced email, and server
warnings, errors and panics.

qshape prints Postfix queue domain and age distribution.
/usr/sbin/pflogsumm
/usr/sbin/qshape
/usr/share/doc/postfix-2.11.6/pflogsumm-faq.txt
/usr/share/man/man1/pflogsumm.1.gz
/usr/share/man/man1/qshape.1.gz

Der Aufruf des Perl-Scripts kann mit folgendem Befehl durchgeführt werden und liefert „syntaktisch“ in etwa folgendes Ergebnis:

# cat /var/log/maillog | /usr/sbin/pflogsumm

Grand Totals
------------
messages

     23   received
     19   delivered
      0   forwarded
      0   deferred
      0   bounced
      2   rejected (9%)
      0   reject warnings
      0   held
      0   discarded (0%)

  68687   bytes received
  68687   bytes delivered
      1   senders
      1   sending hosts/domains
      1   recipients
      1   recipient hosts/domains


Per-Day Traffic Summary
    date          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    Dec 28 2008         1          1          0          0          2 
    Dec 29 2008        22         18 

Per-Hour Traffic Daily Average
    time          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    0000-0100           0          0          0          0          0 
    0100-0200           0          0          0          0          0 
    0200-0300           0          0          0          0          0 
    0300-0400           0          0          0          0          0 
    0400-0500           2          2          0          0          1 
    0500-0600           0          0          0          0          0 
    0600-0700           0          0          0          0          0 
    0700-0800           0          0          0          0          0 
    0800-0900           0          0          0          0          0 
    0900-1000           0          0          0          0          0 
    1000-1100           0          0          0          0          0 
    1100-1200          10          8          0          0          0 
    1200-1300           0          0          0          0          0 
    1300-1400           0          0          0          0          0 
    1400-1500           0          0          0          0          0 
    1500-1600           0          0          0          0          0 
    1600-1700           0          0          0          0          0 
    1700-1800           0          0          0          0          0 
    1800-1900           0          0          0          0          0 
    1900-2000           0          0          0          0          0 
    2000-2100           0          0          0          0          1 
    2100-2200           0          0          0          0          0 
    2200-2300           0          0          0          0          0 
    2300-2400           0          0          0          0          0 

Host/Domain Summary: Message Delivery 
 sent cnt  bytes   defers   avg dly max dly host/domain
 -------- -------  -------  ------- ------- -----------
     19    68687        0    27.4 s    4.4 m  tachtler.net

Host/Domain Summary: Messages Received 
 msg cnt   bytes   host/domain
 -------- -------  -----------
     19    68687   tachtler.net

Senders by message count
------------------------
     19   root@tachtler.net

Recipients by message count
---------------------------
     19   root@tachtler.net

Senders by message size
-----------------------
  68687   root@tachtler.net

Recipients by message size
--------------------------
  68687   root@tachtler.net

message deferral detail: none

message bounce detail (by relay): none

message reject detail
---------------------
  RCPT
    blocked using zen.spamhaus.org (total: 2)
           1   hinet.net
           1   125.116.99.104

message reject warning detail: none

message hold detail: none

message discard detail: none

smtp delivery failures: none

Warnings
--------
  policyd-weight (total: 1)
         1   cache_query: $csock couln't be created: connect: No such file o...
  smtpd (total: 92)
        91   Connection concurrency limit exceeded: 11 from mx1.tachtler.net...
         1   Recipient address rate limit exceeded: 11 from mx1.tachtler.net...

Fatal Errors: none

Panics: none

Master daemon messages
----------------------
      3   daemon started -- version 2.3.3, configuration /etc/postfix
      3   terminating on signal 15
      1   reload configuration /etc/postfix

Eine weitere Möglichkeit besteht darin, einmal nächtlich dieses Perl-Script via cron-Job aufzurufen. Das nachfolgende Beispiel ist aus der man-Page von pflogsumm entliehen und würde 10 Minuten nach Mitternacht, täglich eine e-Mail mit einer Auswertung wie oben stehend gezeigt erstellen und per e-Mail an den postmaster verschicken. Der Eintrag kann in /etc/crontab erfolgen:

# postfix-pflogsumm
00 0 * * * root /usr/sbin/pflogsumm -d yesterday /var/log/mail/maillog 2>&1 | /bin/mailx -s "`uname -n` daily mail stats" postmaster

mailgraph

mailgraph: Herunterladen

Unter folgendem Link kann das Perl-Script von Mailgraph heruntergeladen werden.

Folgende Abhängigkeiten müssen ebenfalls noch aufgelöst werden, sprich Komponente die nachfolgende beschrieben sind ebenfalls heruntergeladen werden:

Nach Möglichkeit sollte auf die Installation über ein RPM-Paket zurückgegriffen werden. Unter folgendem Link kann ein entsprechendes RPM-Paket heruntergeladen werden:

Folgende Perl-Module sind zur Ausführung von Mailgraph notwendig:

mailgraph: Installation

Unter CentOS Version 5.x besteht die Möglichkeit eine Installation über folgende Befehle durchzuführen, ausgehend davon das sich die RPM-Pakete im Verzeichnis /tmp befinden:

# yum localinstall --nogpgcheck /tmp/perl-Time-HiRes-Value-0.05-1.el5.rf.noarch.rpm
# yum localinstall --nogpgcheck /tmp/perl-File-Tail-0.99.3-1.2.el5.rf.noarch.rpm
# yum localinstall --nogpgcheck /tmp/perl-rrdtool-1.2.28-2.el5.rf.i386.rpm
# yum localinstall --nogpgcheck /tmp/rrdtool-1.2.28-2.el5.rf.i386.rpm

Nach der Installation, kann z.B. mit folgendem Befehl zusätzlich überprüft werden, was alles im Paket rrdtool.i386 enthalten ist:

# rpm -qil rrdtool.i386 | more
Name        : rrdtool                      Relocations: (not relocatable)
Version     : 1.2.28                            Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release     : 2.el5.rf                      Build Date: Wed 10 Dec 2008 01:12:12 PM CET
Install Date: Tue 30 Dec 2008 11:23:38 AM CET      Build Host: lisse.hasselt.wieers.com
Group       : Applications/Databases        Source RPM: rrdtool-1.2.28-2.el5.rf.src.rpm
Size        : 2346200                          License: GPL
Signature   : DSA/SHA1, Wed 10 Dec 2008 01:44:42 PM CET, Key ID a20e52146b8d79e6
Packager    : Dag Wieers <dag@wieers.com>
URL         : http://oss.oetiker.ch/rrdtool/
Summary     : Round Robin Database Tool to store and display time-series data
Description :
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). It stores the data in a very compact way that will not
expand over time, and it presents useful graphs by processing the data to
enforce a certain data density. It can be used either via simple wrapper
scripts (from shell or Perl) or via frontends that poll network devices and
put a friendly user interface on it.
/usr/bin/rrdcgi
/usr/bin/rrdtool
/usr/bin/rrdupdate
/usr/lib/librrd.so.2
/usr/lib/librrd.so.2.0.13
/usr/lib/librrd_th.so.2
/usr/lib/librrd_th.so.2.0.13
/usr/share/doc/rrdtool-1.2.28
/usr/share/doc/rrdtool-1.2.28/CHANGES
/usr/share/doc/rrdtool-1.2.28/CONTRIBUTORS
/usr/share/doc/rrdtool-1.2.28/COPYING
/usr/share/doc/rrdtool-1.2.28/COPYRIGHT
/usr/share/doc/rrdtool-1.2.28/NEWS
/usr/share/doc/rrdtool-1.2.28/README
/usr/share/doc/rrdtool-1.2.28/THREADS
/usr/share/doc/rrdtool-1.2.28/TODO
/usr/share/doc/rrdtool-1.2.28/docs
/usr/share/doc/rrdtool-1.2.28/docs/RRDp.html
/usr/share/doc/rrdtool-1.2.28/docs/RRDs.html
/usr/share/doc/rrdtool-1.2.28/docs/bin_dec_hex.html
/usr/share/doc/rrdtool-1.2.28/docs/bin_dec_hex.txt
/usr/share/doc/rrdtool-1.2.28/docs/cdeftutorial.html
/usr/share/doc/rrdtool-1.2.28/docs/cdeftutorial.txt
/usr/share/doc/rrdtool-1.2.28/docs/rpntutorial.html
/usr/share/doc/rrdtool-1.2.28/docs/rpntutorial.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrd-beginners.html
/usr/share/doc/rrdtool-1.2.28/docs/rrd-beginners.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdbuild.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdbuild.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdcgi.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdcgi.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdcreate.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdcreate.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrddump.html
/usr/share/doc/rrdtool-1.2.28/docs/rrddump.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdfetch.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdfetch.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdfirst.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdfirst.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph_data.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph_data.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph_examples.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph_examples.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph_graph.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph_graph.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph_rpn.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdgraph_rpn.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdinfo.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdinfo.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdlast.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdlast.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdlastupdate.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdlastupdate.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdresize.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdresize.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdrestore.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdrestore.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdthreads.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdthreads.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdtool.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdtool.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdtune.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdtune.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdtutorial.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdtutorial.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdupdate.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdupdate.txt
/usr/share/doc/rrdtool-1.2.28/docs/rrdxport.html
/usr/share/doc/rrdtool-1.2.28/docs/rrdxport.txt
/usr/share/doc/rrdtool-1.2.28/examples
/usr/share/doc/rrdtool-1.2.28/examples/4charts.pl
/usr/share/doc/rrdtool-1.2.28/examples/bigtops.pl
/usr/share/doc/rrdtool-1.2.28/examples/cgi-demo.cgi
/usr/share/doc/rrdtool-1.2.28/examples/minmax.pl
/usr/share/doc/rrdtool-1.2.28/examples/perftest.pl
/usr/share/doc/rrdtool-1.2.28/examples/piped-demo.pl
/usr/share/doc/rrdtool-1.2.28/examples/shared-demo.pl
/usr/share/doc/rrdtool-1.2.28/examples/stripes.pl
/usr/share/man/man1/bin_dec_hex.1.gz
/usr/share/man/man1/cdeftutorial.1.gz
/usr/share/man/man1/rpntutorial.1.gz
/usr/share/man/man1/rrd-beginners.1.gz
/usr/share/man/man1/rrdbuild.1.gz
/usr/share/man/man1/rrdcgi.1.gz
/usr/share/man/man1/rrdcreate.1.gz
/usr/share/man/man1/rrddump.1.gz
/usr/share/man/man1/rrdfetch.1.gz
/usr/share/man/man1/rrdfirst.1.gz
/usr/share/man/man1/rrdgraph.1.gz
/usr/share/man/man1/rrdgraph_data.1.gz
/usr/share/man/man1/rrdgraph_examples.1.gz
/usr/share/man/man1/rrdgraph_graph.1.gz
/usr/share/man/man1/rrdgraph_rpn.1.gz
/usr/share/man/man1/rrdinfo.1.gz
/usr/share/man/man1/rrdlast.1.gz
/usr/share/man/man1/rrdlastupdate.1.gz
/usr/share/man/man1/rrdresize.1.gz
/usr/share/man/man1/rrdrestore.1.gz
/usr/share/man/man1/rrdthreads.1.gz
/usr/share/man/man1/rrdtool.1.gz
/usr/share/man/man1/rrdtune.1.gz
/usr/share/man/man1/rrdtutorial.1.gz
/usr/share/man/man1/rrdupdate.1.gz
/usr/share/man/man1/rrdxport.1.gz
/usr/share/rrdtool
/usr/share/rrdtool/examples
/usr/share/rrdtool/examples/4charts.pl
/usr/share/rrdtool/examples/bigtops.pl
/usr/share/rrdtool/examples/cgi-demo.cgi
/usr/share/rrdtool/examples/minmax.pl
/usr/share/rrdtool/examples/perftest.pl
/usr/share/rrdtool/examples/piped-demo.pl
/usr/share/rrdtool/examples/shared-demo.pl
/usr/share/rrdtool/examples/stripes.pl
/usr/share/rrdtool/fonts
/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf

Nach dem erfolgreichen herunterladen des Perl-Script und dessen Komponenten in das Verzeichnis - hier z.B. /tmp, kann die Gepackte Datei mit folgendem Befehl entpackt werden:

# tar -xvf /tmp/mailgraph-1.14.tar.gz

Der Inhalt des so neu entstandenen Verzeichnisses mit dem Namen /tmp/mailgraph-1.14 sollte wie folgt aussehen und kann mit nachfolgendem Befehl aufgelistete werden:

# ll /tmp/mailgraph-1.14
total 84
-rw-r--r-- 1 1000 1000  8519 Aug 29  2007 CHANGES
-rw-r--r-- 1 1000 1000 17976 Aug 29  2007 COPYING
-rwxr-xr-x 1 1000 1000  6898 Aug 29  2007 mailgraph.cgi
-rw-r--r-- 1 1000 1000   672 Aug 29  2007 mailgraph.css
-rw-r--r-- 1 1000 1000   777 Aug 29  2007 mailgraph-init
-rwxr-xr-x 1 1000 1000 29230 Aug 29  2007 mailgraph.pl
-rw-r--r-- 1 1000 1000  2683 Aug 29  2007 README

Unter CentOS Version 6.x besteht die Möglichkeit eine Installation über folgende Befehle durchzuführen, ausgehend davon das ein externes Repository eingebunden wurde, eine Beschreibung, wie ein externes Repository eingebunden werden könnte unter nachfolgendem Link, ebenfalls aus diesem DokuWiki als Anleitung genutzt werden:

:!: WICHTIG - In oben dargestellten Ausführungen wird das RPMforge-Repository eingebunden !!

In diesem Falls soll nicht das RPMforge-Repository eingebunden werden, daher muss der Link des einzubindenden Repositorys nachfolgender sein:

Nachfolgender Befehl installiert das rpm-Paket - mailgraph:

# yum install mailgraph
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
1107 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mailgraph.noarch 0:1.14-8.el6 will be installed
--> Processing Dependency: rrdtool for package: mailgraph-1.14-8.el6.noarch
--> Processing Dependency: perl(File::Tail) for package: mailgraph-1.14-8.el6.noarch
--> Processing Dependency: perl(RRDs) for package: mailgraph-1.14-8.el6.noarch
--> Running transaction check
---> Package perl-File-Tail.noarch 0:0.99.3-1.2.el6.rf will be installed
---> Package rrdtool.x86_64 0:1.3.8-6.el6 will be installed
--> Processing Dependency: dejavu-sans-mono-fonts for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: dejavu-lgc-sans-mono-fonts for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: libcairo.so.2()(64bit) for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: libpng12.so.0()(64bit) for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: libpango-1.0.so.0()(64bit) for package: rrdtool-1.3.8-6.el6.x86_64
---> Package rrdtool-perl.x86_64 0:1.3.8-6.el6 will be installed
--> Running transaction check
---> Package cairo.x86_64 0:1.8.8-3.1.el6 will be installed
--> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libfontconfig.so.1()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
---> Package dejavu-lgc-sans-mono-fonts.noarch 0:2.30-2.el6 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.30-2.el6 for package: dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch
---> Package dejavu-sans-mono-fonts.noarch 0:2.30-2.el6 will be installed
---> Package libpng.x86_64 2:1.2.46-1.el6_1 will be installed
---> Package pango.x86_64 0:1.28.1-3.el6_0.5.1.centos will be installed
--> Processing Dependency: libthai >= 0.1.9 for package: pango-1.28.1-3.el6_0.5.1.centos.x86_64
--> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.28.1-3.el6_0.5.1.centos.x86_64
--> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.28.1-3.el6_0.5.1.centos.x86_64
--> Processing Dependency: libXft.so.2()(64bit) for package: pango-1.28.1-3.el6_0.5.1.centos.x86_64
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.30-2.el6 will be installed
--> Processing Dependency: fontpackages-filesystem for package: dejavu-fonts-common-2.30-2.el6.noarch
---> Package fontconfig.x86_64 0:2.8.0-3.el6 will be installed
---> Package freetype.x86_64 0:2.3.11-6.el6_1.8 will be installed
---> Package libX11.x86_64 0:1.3-2.el6 will be installed
--> 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 libXft.x86_64 0:2.1.13-4.1.el6 will be installed
---> Package libXrender.x86_64 0:0.9.5-1.el6 will be installed
---> Package libthai.x86_64 0:0.1.12-3.el6 will be installed
---> Package pixman.x86_64 0:0.18.4-1.el6_0.1 will be installed
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.41-1.1.el6 will be installed
---> Package libX11-common.noarch 0:1.3-2.el6 will be installed
---> Package libxcb.x86_64 0:1.5-1.el6 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.5-1.el6.x86_64
--> Running transaction check
---> Package libXau.x86_64 0:1.0.5-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch    Version                    Repository
                                                                           Size
================================================================================
Installing:
 mailgraph                   noarch  1.14-8.el6                 epel       28 k
Installing for dependencies:
 cairo                       x86_64  1.8.8-3.1.el6              base      309 k
 dejavu-fonts-common         noarch  2.30-2.el6                 base       59 k
 dejavu-lgc-sans-mono-fonts  noarch  2.30-2.el6                 base      393 k
 dejavu-sans-mono-fonts      noarch  2.30-2.el6                 base      450 k
 fontconfig                  x86_64  2.8.0-3.el6                base      186 k
 fontpackages-filesystem     noarch  1.41-1.1.el6               base      8.8 k
 freetype                    x86_64  2.3.11-6.el6_1.8           updates   358 k
 libX11                      x86_64  1.3-2.el6                  base      582 k
 libX11-common               noarch  1.3-2.el6                  base      188 k
 libXau                      x86_64  1.0.5-1.el6                base       22 k
 libXft                      x86_64  2.1.13-4.1.el6             base       49 k
 libXrender                  x86_64  0.9.5-1.el6                base       27 k
 libpng                      x86_64  2:1.2.46-1.el6_1           base      180 k
 libthai                     x86_64  0.1.12-3.el6               base      183 k
 libxcb                      x86_64  1.5-1.el6                  base      100 k
 pango                       x86_64  1.28.1-3.el6_0.5.1.centos  updates   350 k
 perl-File-Tail              noarch  0.99.3-1.2.el6.rf          rpmforge   23 k
 pixman                      x86_64  0.18.4-1.el6_0.1           base      146 k
 rrdtool                     x86_64  1.3.8-6.el6                base      293 k
 rrdtool-perl                x86_64  1.3.8-6.el6                base       36 k

Transaction Summary
================================================================================
Install      21 Package(s)

Total download size: 3.9 M
Installed size: 11 M
Is this ok [y/N]: y
Downloading Packages:
(1/21): cairo-1.8.8-3.1.el6.x86_64.rpm                   | 309 kB     00:00     
(2/21): dejavu-fonts-common-2.30-2.el6.noarch.rpm        |  59 kB     00:00     
(3/21): dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch.rpm | 393 kB     00:00     
(4/21): dejavu-sans-mono-fonts-2.30-2.el6.noarch.rpm     | 450 kB     00:00     
(5/21): fontconfig-2.8.0-3.el6.x86_64.rpm                | 186 kB     00:00     
(6/21): fontpackages-filesystem-1.41-1.1.el6.noarch.rpm  | 8.8 kB     00:00     
(7/21): freetype-2.3.11-6.el6_1.8.x86_64.rpm             | 358 kB     00:00     
(8/21): libX11-1.3-2.el6.x86_64.rpm                      | 582 kB     00:00     
(9/21): libX11-common-1.3-2.el6.noarch.rpm               | 188 kB     00:00     
(10/21): libXau-1.0.5-1.el6.x86_64.rpm                   |  22 kB     00:00     
(11/21): libXft-2.1.13-4.1.el6.x86_64.rpm                |  49 kB     00:00     
(12/21): libXrender-0.9.5-1.el6.x86_64.rpm               |  27 kB     00:00     
(13/21): libpng-1.2.46-1.el6_1.x86_64.rpm                | 180 kB     00:00     
(14/21): libthai-0.1.12-3.el6.x86_64.rpm                 | 183 kB     00:00     
(15/21): libxcb-1.5-1.el6.x86_64.rpm                     | 100 kB     00:00     
(16/21): mailgraph-1.14-8.el6.noarch.rpm                 |  28 kB     00:00     
(17/21): pango-1.28.1-3.el6_0.5.1.centos.x86_64.rpm      | 350 kB     00:00     
(18/21): perl-File-Tail-0.99.3-1.2.el6.rf.noarch.rpm     |  23 kB     00:00     
(19/21): pixman-0.18.4-1.el6_0.1.x86_64.rpm              | 146 kB     00:00     
(20/21): rrdtool-1.3.8-6.el6.x86_64.rpm                  | 293 kB     00:00     
(21/21): rrdtool-perl-1.3.8-6.el6.x86_64.rpm             |  36 kB     00:00     
--------------------------------------------------------------------------------
Total                                           8.2 MB/s | 3.9 MB     00:00     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
 Userid : EPEL (6) <epel@fedoraproject.org>
 Package: epel-release-6-5.noarch (@/epel-release-6-5.noarch)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : freetype-2.3.11-6.el6_1.8.x86_64                            1/21 
  Installing : fontconfig-2.8.0-3.el6.x86_64                               2/21 
  Installing : 2:libpng-1.2.46-1.el6_1.x86_64                              3/21 
  Installing : fontpackages-filesystem-1.41-1.1.el6.noarch                 4/21 
  Installing : dejavu-fonts-common-2.30-2.el6.noarch                       5/21 
  Installing : dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch                6/21 
  Installing : dejavu-sans-mono-fonts-2.30-2.el6.noarch                    7/21 
  Installing : libthai-0.1.12-3.el6.x86_64                                 8/21 
  Installing : libXau-1.0.5-1.el6.x86_64                                   9/21 
  Installing : libxcb-1.5-1.el6.x86_64                                    10/21 
  Installing : perl-File-Tail-0.99.3-1.2.el6.rf.noarch                    11/21 
  Installing : pixman-0.18.4-1.el6_0.1.x86_64                             12/21 
  Installing : libX11-common-1.3-2.el6.noarch                             13/21 
  Installing : libX11-1.3-2.el6.x86_64                                    14/21 
  Installing : libXrender-0.9.5-1.el6.x86_64                              15/21 
  Installing : cairo-1.8.8-3.1.el6.x86_64                                 16/21 
  Installing : libXft-2.1.13-4.1.el6.x86_64                               17/21 
  Installing : pango-1.28.1-3.el6_0.5.1.centos.x86_64                     18/21 
  Installing : rrdtool-1.3.8-6.el6.x86_64                                 19/21 
  Installing : rrdtool-perl-1.3.8-6.el6.x86_64                            20/21 
  Installing : mailgraph-1.14-8.el6.noarch                                21/21 

Installed:
  mailgraph.noarch 0:1.14-8.el6                                                 

Dependency Installed:
  cairo.x86_64 0:1.8.8-3.1.el6                                                  
  dejavu-fonts-common.noarch 0:2.30-2.el6                                       
  dejavu-lgc-sans-mono-fonts.noarch 0:2.30-2.el6                                
  dejavu-sans-mono-fonts.noarch 0:2.30-2.el6                                    
  fontconfig.x86_64 0:2.8.0-3.el6                                               
  fontpackages-filesystem.noarch 0:1.41-1.1.el6                                 
  freetype.x86_64 0:2.3.11-6.el6_1.8                                            
  libX11.x86_64 0:1.3-2.el6                                                     
  libX11-common.noarch 0:1.3-2.el6                                              
  libXau.x86_64 0:1.0.5-1.el6                                                   
  libXft.x86_64 0:2.1.13-4.1.el6                                                
  libXrender.x86_64 0:0.9.5-1.el6                                               
  libpng.x86_64 2:1.2.46-1.el6_1                                                
  libthai.x86_64 0:0.1.12-3.el6                                                 
  libxcb.x86_64 0:1.5-1.el6                                                     
  pango.x86_64 0:1.28.1-3.el6_0.5.1.centos                                      
  perl-File-Tail.noarch 0:0.99.3-1.2.el6.rf                                     
  pixman.x86_64 0:0.18.4-1.el6_0.1                                              
  rrdtool.x86_64 0:1.3.8-6.el6                                                  
  rrdtool-perl.x86_64 0:1.3.8-6.el6                                             

Complete!

Der Inhalt des rpm-Pakets - mailgraph kann mit nachfolgendem Befehl aufgelistet werden:

# rpm -qil mailgraph
Name        : mailgraph                    Relocations: (not relocatable)
Version     : 1.14                              Vendor: Fedora Project
Release     : 8.el6                         Build Date: Sat 02 Oct 2010 03:26:31 PM CEST
Install Date: Tue 24 Jan 2012 02:00:46 PM CET      Build Host: ppc02.phx2.fedoraproject.org
Group       : System Environment/Daemons    Source RPM: mailgraph-1.14-8.el6.src.rpm
Size        : 68312                            License: GPL+
Signature   : RSA/8, Mon 04 Oct 2010 10:43:13 PM CEST, Key ID 3b49df2a0608b895
Packager    : Fedora Project
URL         : http://mailgraph.schweikert.ch/
Summary     : A RRDtool frontend for Mail statistics
Description :
Mailgraph is a very simple mail statistics RRDtool frontend for Postfix and
Sendmail that produces daily, weekly, monthly and yearly graphs of
received/sent and bounced/rejected mail.
/etc/httpd/conf.d/mailgraph.conf
/etc/rc.d/init.d/mailgraph
/etc/sysconfig/mailgraph
/usr/sbin/mailgraph
/usr/share/doc/mailgraph-1.14
/usr/share/doc/mailgraph-1.14/CHANGES
/usr/share/doc/mailgraph-1.14/COPYING
/usr/share/doc/mailgraph-1.14/README
/usr/share/mailgraph
/usr/share/mailgraph/mailgraph.cgi
/usr/share/mailgraph/mailgraph.css
/var/cache/mailgraph
/var/lib/mailgraph

mailgraph: Konfiguration

Zur Konfiguration sollten noch einige Anpassungen in der CGI-Script-Datei von Mailgraph mit dem Namen mailgraph.cgi wie nachfolgend beschrieben durchgeführt werden:

Die relevanten Änderungen gegenüber der Standard-Konfiguration von Mailgraph, in der Script-Datei /var/www/html/mailgraph/mailgraph.cgi, sind mit folgendem Kommentar

# Tachtler

versehen.

Hier die geänderte Script-Datei, welche unter /var/www/html/mailgraph zu finden ist und den Namen mailgraph.cgi trägt (nur relevante Auszüge):

#!/usr/bin/perl -w
 
# mailgraph -- postfix mail traffic statistics
# copyright (c) 2000-2007 ETH Zurich
# copyright (c) 2000-2007 David Schweikert <david@schweikert.ch>
# released under the GNU General Public License
 
...
 
# Tachtler
# default: my $rrd = 'mailgraph.rrd'; # path to where the RRD database is
my $rrd = '/var/log/mail/mailgraph.rrd'; # path to where the RRD database is
# Tachtler
# default: my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is
my $rrd_virus = '/var/log/mail/mailgraph_virus.rrd'; # path to where the Virus RRD database is
my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images
...

:!: Zum Abschluss wird noch das temporäre Verzeichnis für Mailgraph mit folgendem Befehl angelegt

# mkdir /tmp/mailgraph

und dem temporäre Verzeichnis /tmp/mailgraph die entsprechenden Besitzrechte mit nachfolgendem Befehl zugewiesen:

# chown -R apache.apache /tmp/mailgraph

mailgraph: Konfiguration Webserver

Hier soll die Konfiguration eines virtuellen Host für den Apache HTTP Server beschrieben werden. Der Aufruf von Mailgraph soll über die URL

ermöglicht werden.

:!: Falls Sie noch keine Erfahrungen mit virtuellen Hosts in Verbindung mit dem Apache HTTP Server haben sollten, lesen Sie bitte die Dokumentation des Apache HTTP Server Projektes, da hier nur die grundlegenden Schritte erläutert werden.

Falls noch nicht geschehen wird im Verzeichnis /etc/httpd/conf.d eine Datei mit dem Namen vhosts.conf erstellt. Der Inhalt dieser Datei sollte minimal für einen virtuellen Host für Mailgraph wie folgt aussehen:

# This configuration file enables the vhosts to this
# Server
#
 
NameVirtualHost *:80
 
#
# mailgraph.tachtler.net
#
<VirtualHost *:80>
        ServerAdmin webmaster@tachtler.net
        ServerName mailgraph.tachtler.net
        ServerAlias www.mailgraph.tachtler.net
        ServerPath /
        DocumentRoot "/var/www/html/mailgraph"
        AddHandler cgi-script .cgi
        <Directory "/var/www/html/mailgraph">
                Options ExecCGI
                AllowOverride AuthConfig
                Order allow,deny
                Allow from all
        </Directory>
        DirectoryIndex mailgraph.cgi
        ErrorLog logs/mailgraph_error.log
        CustomLog logs/mailgraph_access.log combined
</VirtualHost>

Anschließend wird das Verzeichnis /tmp/mailgraph-1.14 nach /var/www/html/mailgraph mit folgendem Befehl kopiert und gleichzeitig umbenannt:

# mv /tmp/mailgraph-1.14 /var/www/html/mailgraph

Die Besitzrechte für das Verzeichnis /var/www/html/mailgraph müssen noch korrigiert werden, was mit folgendem Befehl durchgeführt wird:

# chown -R root.apache /var/www/html/mailgraph

Die Zugriffsrechte müssen ebenfalls noch für das Verzeichnis /var/www/html/mailgraph noch korrigiert werden, was mit folgenden Befehlen durchgeführt wird:

# cd /var/www/html/mailgraph
# chmod o-rx *

Ein erneuter oder erster Start des Apache HTTP Server mit folgenden Befehl für eine erstmaligen Start

# service httpd start

oder einen erneuten Start des Apache HTTP Server mit folgendem Befehl

# service httpd restart

macht die oben beschriebenen Konfigurationen für den Apache HTTP Server wirksam.

mailgraph: Starten

Das Script mailgraph.pl ist dafür ausgelegt sich dauerhaft als Daemon im Hintergrund lauffähig im Speicher zu halten. Damit sich auch nach einem (Re)Start des Rechners der Daemon wieder startet, sind einige Vorbereitungen zu treffen.

Zuerst muss das Shell-Script zum Starten und Beenden des Daemons von Mailgraph mit dem Namen mailgraph-init in das Startverzeichnis für die jeweiligen Start-Scripte - /etc/init.d mit folgendem Befehl kopiert werden:

# cp /var/www/html/mailgraph/mailgraph-init /etc/init.d/

Anschließend müssen noch die Benutzerrechte und die Dateirechte mit folgenden Befehlen gesetzt werden. Zuerst die Benutzerrechte mit folgendem Befehl:

# chown root.root mailgraph-init

anschließend die Dateirechte mit folgendem Befehl:

# chmod 755 mailgraph-init

Bevor nun das Shell-Script zum Einsatz kommt, sind noch ein paar Anpassungen notwendig.

Die relevanten Änderungen gegenüber der Standard-Konfiguration von Mailgraph, im Shell-Script /etc/init.d/mailgraph-init, sind mit folgendem Kommentar

# Tachtler

versehen.

Hier die komplette Shell-Script-Datei, welche unter /etc/init.d zu finden ist und den Namen mailgraph-init trägt:

#!/bin/sh
 
# $Id: mailgraph-init 19 2005-06-13 11:23:22Z dws $
# example init script for mailgraph
#
# chkconfig: 2345 82 28
# description: mailgraph postfix log grapher.
#
# processname: mailgraph.pl
# pidfile: /var/run/mailgraph.pid
 
 
PATH=/bin:/usr/bin
# Tachtler
# default: MAILGRAPH_PL=/usr/local/bin/mailgraph.pl
MAILGRAPH_PL=/var/www/html/mailgraph/mailgraph.pl
# Tachtler
# default: MAIL_LOG=/var/log/syslog
MAIL_LOG=/var/log/maillog
PID_FILE=/var/run/mailgraph.pid
# Tachtler
# default: RRD_DIR=/var/lib
RRD_DIR=/var/log
 
case "$1" in
'start')
        echo "Starting mail statistics grapher: mailgraph";
        # Tachtler
        # default: nice -19 $MAILGRAPH_PL -l $MAIL_LOG -d \
        # default:      --daemon-pid=$PID_FILE --daemon-rrd=$RRD_DIR
        nice -19 $MAILGRAPH_PL -l $MAIL_LOG -d \
                --daemon-pid=$PID_FILE --daemon-rrd=$RRD_DIR \
                --ignore-localhost
        ;;
 
'stop')
        echo "Stopping mail statistics grapher: mailgraph";
        if [ -f $PID_FILE ]; then
                kill `cat $PID_FILE`
                rm $PID_FILE
        else
                echo "mailgraph not running";
        fi
        ;;
 
*)
        echo "Usage: $0 { start | stop }"
        exit 1
        ;;
 
esac
exit 0

:!: WICHTIG - Für den Einsatz von amavisd-new ist es wichtig, das über localhost zurückgespielte e-Mails nicht die Statistik verfälschen, sofern die Spam- und Virusmeldungen auch in die gleiche LOG-Datei - hier /var/log/maillog geschrieben werden, ist die Angabe des zusätzlichen Parameter —ignore-localhost notwendig!

Um das Starten von Mailgraph auch nach einem System-(re)-start auch in Zukunft dauerhaft zu realisieren, kann folgender Befehl genutzt werden. Hier wird das Mailgraph Start-Script zu der einzelnen Runlevel des Betriebssystem hinzugefügt:

# chkconfig mailgraph-init on

Ein Überprüfung, ob Mailgraph in den einzelnen Runlevel des Betriebssystems bei einem system-(re)-start mit gestartet wird, kann mit folgenden Befehlen abgefragt werden:

# chkconfig --list | grep mailgraph-init
mailgraph-init  0:off   1:off   2:on    3:on    4:on    5:on    6:off

Zuletzt wird Mailgraph mit folgendem Befehl gestartet.

# service mailgraph-init start

Ob Mailgraph auch als Daemon im Hintergrund läuft, kann mit folgendem Befehl überprüft werden:

# ps aux | grep mailgraph
root      8453  0.5  0.3   9416  3768 ?        SNs  13:34   0:00 /usr/bin/perl -w /var/www/html/mailgraph/mailgraph.pl -l /var/log/maillog -d --daemon-pid=/var/run/mailgraph.pid --daemon-rrd=/var/log --ignore-localhost
root      8459  0.0  0.0   1772   180 pts/2    R+   13:35   0:00 grep mailgraph

AWStats

:!: Die grundlegende Installation und Konfiguration von AWStats ist in diesem DokuWiki unter AWStats ausführlich beschrieben!

Hier an dieser Stelle soll nur auf die Konfiguration der Auswertung einer LOG-Datei von Postfix - in diesem Fall /var/log/maillog - eingegangen werden!

:!: Um überhaupt eine erfolgreiche LOG-Datei-Auswertung mittels AWStats durchführen zu können, müssen auf die Dateien /var/log/maillog* mit folgendem Befehl die Zugriffsrechte angepasst werden:

# chmod 644 /var/log/maillog*

Die relevanten Änderungen gegenüber der Standard-Konfiguration von AWStats, wie sie z.B. in /usr/etc/awstats/awstats.model.conf zu finden ist, sind mit folgendem Kommentar

# Tachtler

versehen.

Hier die komplette Konfigurationsdatei, welche unter /etc/awstats zu finden ist und den Namen awstats.mail.tachtler.net.conf trägt:

# AWSTATS CONFIGURE FILE 6.8
#-----------------------------------------------------------------------------
# Copy this file into awstats.www.mydomain.conf and edit this new config file
# to setup AWStats (See documentation in docs/ directory).
# The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for
# Unix/Linux) or same directory than awstats.pl (Windows, Mac, Unix/Linux...)
# To include an environment variable in any parameter (AWStats will replace
# it with its value when reading it), follow the example:
# Parameter="__ENVNAME__"
# Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with
# the config value in an AWStats running session and can be used like others.
#-----------------------------------------------------------------------------
# $Revision: 1.333 $ - $Author: eldy $ - $Date: 2008/02/26 01:33:59 $
 
 
 
#-----------------------------------------------------------------------------
# MAIN SETUP SECTION (Required to make AWStats work)
#-----------------------------------------------------------------------------
 
# "LogFile" contains the web, ftp or mail server log file to analyze.
# Possible values: A full path, or a relative path from awstats.pl directory.
# Example: "/var/log/apache/access.log"
# Example: "../logs/mycombinedlog.log"
# You can also use tags in this filename if you need a dynamic file name
# depending on date or time (Replacement is made by AWStats at the beginning
# of its execution). This is available tags :
#   %YYYY-n  is replaced with 4 digits year we were n hours ago
#   %YY-n    is replaced with 2 digits year we were n hours ago
#   %MM-n    is replaced with 2 digits month we were n hours ago
#   %MO-n    is replaced with 3 letters month we were n hours ago
#   %DD-n    is replaced with day we were n hours ago
#   %HH-n    is replaced with hour we were n hours ago
#   %NS-n    is replaced with number of seconds at 00:00 since 1970
#   %WM-n    is replaced with the week number in month (1-5)
#   %Wm-n    is replaced with the week number in month (0-4)
#   %WY-n    is replaced with the week number in year (01-52)
#   %Wy-n    is replaced with the week number in year (00-51)
#   %DW-n    is replaced with the day number in week (1-7, 1=sunday)
#                              use n=24 if you need (1-7, 1=monday)
#   %Dw-n    is replaced with the day number in week (0-6, 0=sunday)
#                              use n=24 if you need (0-6, 0=monday)
#   Use 0 for n if you need current year, month, day, hour...
# Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
# Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
# You can also use a pipe if log file come from a pipe :
# Example: "gzip -d </var/log/apache/access.log.gz |"
# If there are several log files from load balancing servers :
# Example: "/pathtotools/logresolvemerge.pl *.log |"
#
# Tachtler
# default: LogFile="/var/log/httpd/mylog.log"
LogFile="perl /usr/local/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"
 
 
# Enter the log file type you want to analyze.
# Possible values:
#  W - For a web log file
#  S - For a streaming log file
#  M - For a mail log file
#  F - For a ftp log file
# Example: W
# Default: W
#
# Tachtler
# default: LogType=W
LogType=M
 
 
# Enter here your log format (Must match your web server config. See setup
# instructions in documentation to know how to configure your web server to
# have the required log format).
# Possible values: 1,2,3,4 or "your_own_personalized_log_format"
# 1 - Apache or Lotus Notes/Domino native combined log format (NCSA combined/XLF/ELF log format)
# 2 - IIS or ISA format (IIS W3C log format). See FAQ-COM115 For ISA.
# 3 - Webstar native log format.
# 4 - Apache or Squid native common log format (NCSA common/CLF log format)
#     With LogFormat=4, some features (browsers, os, keywords...) can't work.
# "your_own_personalized_log_format" = If your log is ftp, mail or other format,
#     you must use following keys to define the log format string (See FAQ for
#     ftp, mail or exotic web log format examples):
#   %host             Client hostname or IP address (or Sender host for mail log)
#   %host_r           Receiver hostname or IP address (for mail log)
#   %lognamequot      Authenticated login/user with format: "john"
#   %logname          Authenticated login/user with format: john
#   %time1            Date and time with format: [dd/mon/yyyy:hh:mm:ss +0000] or [dd/mon/yyyy:hh:mm:ss]
#   %time2            Date and time with format: yyyy-mm-dd hh:mm:ss
#   %time3            Date and time with format: Mon dd hh:mm:ss or Mon dd hh:mm:ss yyyy
#   %time4            Date and time with unix timestamp format: dddddddddd
#   %methodurl        Method and URL with format: "GET /index.html HTTP/x.x"
#   %methodurlnoprot  Method and URL with format: "GET /index.html"
#   %method           Method with format: GET
#   %url              URL only with format: /index.html
#   %query            Query string (used by URLWithQuery option)
#   %code             Return code status (with format for web log: 999)
#   %bytesd           Size of document in bytes
#   %refererquot      Referer page with format: "http://from.com/from.htm"
#   %referer          Referer page with format: http://from.com/from.htm
#   %uabracket        User agent with format: [Mozilla/4.0 (compatible, ...)]
#   %uaquot           User agent with format: "Mozilla/4.0 (compatible, ...)"
#   %ua               User agent with format: Mozilla/4.0_(compatible...)
#   %gzipin           mod_gzip compression input bytes: In:XXX
#   %gzipout          mod_gzip compression output bytes & ratio: Out:YYY:ZZpct.
#   %gzipratio        mod_gzip compression ratio: ZZpct.
#   %deflateratio     mod_deflate compression ratio with format: (ZZ)
#   %email            EMail sender (for mail log)
#   %email_r          EMail receiver (for mail log)
#   %virtualname      Web sever virtual hostname. Use this tag when same log
#                     contains data of several virtual web servers. AWStats
#                     will discard records not in SiteDomain nor HostAliases
#   %cluster          If log file is provided from several computers (merged by
#                     logresolvemerge.pl), use this to define cluster id field.
#   %extraX           Another field that you plan to use for building a
#                     personalized report with ExtraSection feature (See later).
#   If your log format has some fields not included in this list, use:
#   %other            Means another not used field
#   %otherquot        Means another not used double quoted field
#
# Examples for Apache combined logs (following two examples are equivalent):
# LogFormat = 1
# LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
#
# Example for IIS:
# LogFormat = 2
#
# Tachtler
# default: LogFormat=1
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
 
 
# If your log field's separator is not a space, you can change this parameter.
# This parameter is not used if LogFormat is a predefined value (1,2,3,4)
# Backslash can be used as escape character.
# Example: " "
# Example: "\t"
# Example: "\|"
# Example: ","
# Default: " "
#
LogSeparator=" "
 
 
# "SiteDomain" must contain the main domain name, or the main intranet web
# server name, used to reach the web site.
# If you share the same log file for several virtual web servers, this
# parameter is used to tell AWStats to filter record that contains records for
# this virtual host name only (So check that this virtual hostname can be
# found in your log file and use a personalized log format that include the
# %virtualname tag).
# But for multi hosting a better solution is to have one log file for each
# virtual web server. In this case, this parameter is only used to generate
# full URL's links when ShowLinksOnUrl option is set to 1.
# If analyzing mail log, enter here the domain name of mail server.
# Example: "myintranetserver"
# Example: "www.domain.com"
# Example: "ftp.domain.com"
# Example: "domain.com"
#
# Tachtler
# default: SiteDomain=""
SiteDomain="mx1.tachtler.net"
 
 
# Enter here all other possible domain names, addresses or virtual host
# aliases someone can use to access your site. Try to keep only the minimum
# number of possible names/addresses to have the best performances.
# You can repeat the "SiteDomain" value in this list.
# This parameter is used to analyze referer field in log file and to help
# AWStats to know if a referer URL is a local URL of same site or an URL of
# another site.
# Note: Use space between each value.
# Note: You can use regular expression values writing value with REGEX[value].
# Note: You can also use @/mypath/myfile if list of aliases are in a file.
# Example: "www.myserver.com localhost 127.0.0.1 REGEX[mydomain\.(net|org)$]"
#
# Tachtler
# default: HostAliases="localhost 127.0.0.1 REGEX[mydomain\.com$]"
HostAliases="localhost 127.0.0.1 REGEX[tachtler\.net$] REGEX[www\.tachtler\.net$]"
 
 
# If you want to have hosts reported by name instead of ip address, AWStats
# need to make reverse DNS lookups (if not already done in your log file).
# With DNSLookup to 0, all hosts will be reported by their IP addresses and
# not by the full hostname of visitors (except if names are already available
# in log file).
# If you want/need to set DNSLookup to 1, don't forget that this will reduce
# dramatically AWStats update process speed. Do not use on large web sites.
# Note: Reverse DNS lookup is done on IPv4 only (Enable ipv6 plugin for IPv6).
# Note: Result of DNS Lookup can be used to build the Country report. However
# it is highly recommanded to enable the plugin 'geoip' or 'geoipfree' to
# have an accurate Country report with no need of DNS Lookup.
# Possible values:
# 0 - No DNS Lookup
# 1 - DNS Lookup is fully enabled
# 2 - DNS Lookup is made only from static DNS cache file (if it exists)
# Default: 2
# 
DNSLookup=2
 
 
# When AWStats updates its statistics, it stores results of its analysis in 
# files (AWStats database). All those files are written in the directory
# defined by the "DirData" parameter. Set this value to the directory where
# you want AWStats to save its database and working files into.
# Warning: If you want to be able to use the "AllowToUpdateStatsFromBrowser"
# feature (see later), you need "Write" permissions by web server user on this
# directory (and "Modify" for Windows NTFS file systems).
# Example: "/var/lib/awstats"
# Example: "../data"
# Example: "C:/awstats_data_dir"
# Default: "."          (means same directory as awstats.pl)
#
# Tachtler
# default: DirData="."
DirData="/var/lib/awstats"
 
 
# Relative or absolute web URL of your awstats cgi-bin directory.
# This parameter is used only when AWStats is run from command line
# with -output option (to generate links in HTML reported page).
# Example: "/awstats"
# Default: "/cgi-bin"   (means awstats.pl is in "/yourwwwroot/cgi-bin")
#
# Tachtler
# default: DirCgi="/cgi-bin"
DirCgi="/awstats"
 
 
# Relative or absolute web URL of your awstats icon directory.
# If you build static reports ("... -output > outputpath/output.html"), enter
# path of icon directory relative to the output directory 'outputpath'.
# Example: "/awstatsicons"
# Example: "../icon"
# Default: "/icon" (means you must copy icon directories in "/mywwwroot/icon")
#
# Tachtler
# default DirIcons="/icon"
DirIcons="/awstatsicons"
 
 
# When this parameter is set to 1, AWStats adds a button on report page to
# allow to "update" statistics from a web browser. Warning, when "update" is
# made from a browser, AWStats is run as a CGI by the web server user defined
# in your web server (user "nobody" by default with Apache, "IUSR_XXX" with
# IIS), so the "DirData" directory and all already existing history files
# awstatsMMYYYY[.xxx].txt must be writable by this user. Change permissions if
# necessary to "Read/Write" (and "Modify" for Windows NTFS file systems).
# Warning: Update process can be long so you might experience "time out"
# browser errors if you don't launch AWStats frequently enough.
# When set to 0, update is only made when AWStats is run from the command
# line interface (or a task scheduler).
# Possible values: 0 or 1
# Default: 0
#
# Tachtler
# default: AllowToUpdateStatsFromBrowser=0
AllowToUpdateStatsFromBrowser=1
 
 
# AWStats saves and sorts its database on a month basis (except if using
# databasebreak option from command line). 
# However, if you choose the -month=all from command line or
# value '-Year-' from CGI combo form to have a report for all year, AWStats
# needs to reload all data for full year (each month), and sort them,
# requiring a large amount of time, memory and CPU. This might be a problem
# for web hosting providers that offer AWStats for large sites, on shared
# servers, to non CPU cautious customers.
# For this reason, the 'full year' is only enabled on Command Line by default.
# You can change this by setting this parameter to 0, 1, 2 or 3.
# Possible values:
#  0 - Never allowed
#  1 - Allowed on CLI only, -Year- value in combo is not visible
#  2 - Allowed on CLI only, -Year- value in combo is visible but not allowed
#  3 - Possible on CLI and CGI
# Default: 2
#
AllowFullYearView=2
 
 
 
#-----------------------------------------------------------------------------
# OPTIONAL SETUP SECTION (Not required but increase AWStats features)
#-----------------------------------------------------------------------------
 
# When the update process runs, AWStats can set a lock file in TEMP or TMP
# directory. This lock is to avoid to have 2 update processes running at the
# same time to prevent unknown conflicts problems and avoid DoS attacks when
# AllowToUpdateStatsFromBrowser is set to 1.
# Because, when you use lock file, you can experience sometimes problems in
# lock file not correctly removed (killed process for example requires that
# you remove the file manualy), this option is not enabled by default (Do
# not enable this option with no console server access).
# Change : Effective immediatly
# Possible values: 0 or 1
# Default: 0
#
EnableLockForUpdate=0
 
 
# AWStats can do reverse DNS lookups through a static DNS cache file that was
# previously created manually. If no path is given in static DNS cache file
# name, AWStats will search DirData directory. This file is never changed.
# This option is not used if DNSLookup=0.
# Note: DNS cache file format is 'minsince1970 ipaddress resolved_hostname'
# or just 'ipaddress resolved_hostname'
# Change : Effective for new updates only
# Example: "/mydnscachedir/dnscache"
# Default: "dnscache.txt"
#
DNSStaticCacheFile="dnscache.txt"
 
 
# AWStats can do reverse DNS lookups through a DNS cache file that was created
# by a previous run of AWStats. This file is erased and recreated after each
# statistics update process. You don't need to create and/or edit it.
# AWStats will read and save this file in DirData directory.
# This option is used only if DNSLookup=1.
# Note: If a DNSStaticCacheFile is available, AWStats will check for DNS
# lookup in DNSLastUpdateCacheFile after checking into DNSStaticCacheFile.
# Change : Effective for new updates only
# Example: "/mydnscachedir/dnscachelastupdate"
# Default: "dnscachelastupdate.txt"
#
DNSLastUpdateCacheFile="dnscachelastupdate.txt"
 
 
# You can specify specific IP addresses that should NOT be looked up in DNS.
# This option is used only if DNSLookup=1.
# Note: Use space between each value.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "123.123.123.123 REGEX[^192\.168\.]"
# Default: ""
#
SkipDNSLookupFor=""
 
 
# The following two parameters allow you to protect a config file from being
# read by AWStats when called from a browser if web user has not been
# authenticated. Your AWStats program must be in a web protected "realm" (With
# Apache, you can use .htaccess files to do so. With other web servers, see
# your server setup manual).
# Change : Effective immediatly
# Possible values: 0 or 1
# Default: 0
#
# Tachtler
# default: AllowAccessFromWebToAuthenticatedUsersOnly=0
AllowAccessFromWebToAuthenticatedUsersOnly=1
 
 
# This parameter gives the list of all authorized authenticated users to view
# statistics for this domain/config file. This parameter is used only if
# AllowAccessFromWebToAuthenticatedUsersOnly is set to 1.
# Change : Effective immediatly
# Example: "user1 user2"
# Example: "__REMOTE_USER__"
# Default: ""
#
# Tachtler
# default: AllowAccessFromWebToFollowingAuthenticatedUsers=""
AllowAccessFromWebToFollowingAuthenticatedUsers="geheim1 geheim2 geheim3"
 
 
# When this parameter is defined to something, the IP address of the user that
# reads its statistics from a browser (when AWStats is used as a CGI) is
# checked and must match one of the IP address values or ranges.
# Change : Effective immediatly
# Example: "127.0.0.1 123.123.123.1-123.123.123.255"
# Default: ""
#
AllowAccessFromWebToFollowingIPAddresses=""
 
 
# If the "DirData" directory (see above) does not exist, AWStats return an
# error. However, you can ask AWStats to create it.
# This option can be used by some Web Hosting Providers that has defined a 
# dynamic value for DirData (for example DirData="/home/__REMOTE_USER__") and
# don't want to have to create a new directory each time they add a new user.
# Change : Effective immediatly
# Possible values: 0 or 1
# Default: 0
#
CreateDirDataIfNotExists=0
 
 
# You can choose in which format the Awstats history database is saved.
# Note: Using "xml" format make AWStats building database files three times
# larger than using "text" format.
# Change : Database format is switched after next update
# Possible values: text or xml
# Default: text
#
BuildHistoryFormat=text
 
 
# If you prefer having the report output pages be built as XML compliant pages
# instead of simple HTML pages, you can set this to 'xhtml' (May not work
# properly with old browsers).
# Change : Effective immediatly
# Possible values: html or xhtml
# Default: html
#
BuildReportFormat=html
 
 
# AWStats databases can be updated from command line of from a browser (when
# used as a cgi program). So AWStats database files need write permission
# for both command line user and default web server user (nobody for Unix,
# IUSR_xxx for IIS/Windows,...).
# To avoid permission problems between update process (run by an admin user)
# and CGI process (ran by a low level user), AWStats can save its database 
# files with read and write permissions for everyone.
# By default, AWStats keeps default user permissions on updated files. If you 
# set AllowToUpdateStatsFromBrowser to 1, you can change this parameter to 1.
# Change : Effective for new updates only
# Possible values: 0 or 1
# Default: 0
#
# Tachtler
# default: SaveDatabaseFilesWithPermissionsForEveryone=0
SaveDatabaseFilesWithPermissionsForEveryone=1
 
 
# AWStats can purge log file, after analyzing it. Note that AWStats is able
# to detect new lines in a log file, to process only them, so you can launch
# AWStats as often as you want, even with this parameter to 0.
# With 0, no purge is made, so you must use a scheduled task or a web server
# that make this purge frequently.
# With 1, the purge of the log file is made each time AWStats update is run.
# This parameter doesn't work with IIS (This web server doesn't let its log
 
# file to be purged).
# Change : Effective for new updates only
# Possible values: 0 or 1
# Default: 0
#
PurgeLogFile=0
 
 
# When PurgeLogFile is setup to 1, AWStats will clean your log file after
# processing it. You can however keep an archive file of all processed log
# records by setting this parameter (For example if you want to use another
# log analyzer). The archived log file is saved in "DirData" with name
# awstats_archive.configname[.suffix].log
# This parameter is not used if PurgeLogFile=0
# Change : Effective for new updates only
# Possible values: 0, 1, or tags (See LogFile parameter) for suffix
# Example: 1
# Example: %YYYY%MM%DD
# Default: 0
#
ArchiveLogRecords=0
 
 
# Each time you run the update process, AWStats overwrites the 'historic file'
# for the month (awstatsMMYYYY[.*].txt) with the updated one.
# When write errors occurs (IO, disk full,...), this historic file can be
# corrupted and must be deleted. Because this file contains information of all
# past processed log files, you will loose old stats if removed. So you can
# ask AWStats to save last non corrupted file in a .bak file. This file is
# stored in "DirData" directory with other 'historic files'.
# Change : Effective for new updates only
# Possible values: 0 or 1
# Default: 0
#
KeepBackupOfHistoricFiles=0
 
 
# Default index page name for your web server.
# Change : Effective for new updates only
# Example: "index.php index.html default.html"
# Default: "index.html"
#
# Tachtler
# DefaultFile="index.html"
DefaultFile="index.htm"
 
 
# Do not include access from clients that match following criteria.
# If your log file contains IP addresses in host field, you must enter here
# matching IP addresses criteria.
# If DNS lookup is already done in your log file, you must enter here hostname
# criteria, else enter ip address criteria.
# The opposite parameter of "SkipHosts" is "OnlyHosts".
# Note: Use space between each value. This parameter is not case sensitive.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]"
# Example: "localhost REGEX[^.*\.localdomain$]"
# Default: ""
#
SkipHosts=""
 
 
# Do not include access from clients with a user agent that match following
# criteria. If you want to exclude a robot, you should update the robots.pm
# file instead of this parameter.
# The opposite parameter of "SkipUserAgents" is "OnlyUserAgents".
# Note: Use space between each value. This parameter is not case sensitive.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "konqueror REGEX[ua_test_v\d\.\d]"
# Default: ""
#
SkipUserAgents=""
 
 
# Use SkipFiles to ignore access to URLs that match one of following entries.
# You can enter a list of not important URLs (like framed menus, hidden pages,
# etc...) to exclude them from statistics. You must enter here exact relative
# URL as found in log file, or a matching REGEX value. Check apply on URL with
# all its query paramaters.
# For example, to ignore /badpage.php, just add "/badpage.php". To ignore all
# pages in a particular directory, add "REGEX[^\/directorytoexclude]".
# The opposite parameter of "SkipFiles" is "OnlyFiles".
# Note: Use space between each value. This parameter is or not case sensitive
# depending on URLNotCaseSensitive parameter.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "/badpage.php /page.php?param=x REGEX[^\/excludedirectory]"
# Default: ""
#
SkipFiles=""
 
 
# Use SkipReferrersBlackList if you want to exclude records coming from a SPAM
# referrer. Parameter must receive a local file name containing rules applied
# on referrer field. If parameter is empty, no filter is applied.
# An example of such a file is available in lib/blacklist.txt
# You can download updated version at http://www.jayallen.org/comment_spam/
# Change : Effective for new updates only
# Example: "/mylibpath/blacklist.txt"
# Default: ""
#
# WARNING!! Using this feature make AWStats running very slower (5 times slower
# with black list file provided with AWStats !
#
SkipReferrersBlackList=""
 
 
# Include in stats, only accesses from hosts that match one of following
# entries. For example, if you want AWStats to filter access to keep only
# stats for visits from particular hosts, you can add those host names in
# this parameter.
# If DNS lookup is already done in your log file, you must enter here hostname
# criteria, else enter ip address criteria.
# The opposite parameter of "OnlyHosts" is "SkipHosts".
# Note: Use space between each value. This parameter is not case sensitive.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]"
# Default: ""
#
OnlyHosts=""
 
 
# Include in stats, only accesses from user agent that match one of following
# entries. For example, if you want AWStats to filter access to keep only
# stats for visits from particular browsers, you can add their user agents
# string in this parameter.
# The opposite parameter of "OnlyUserAgents" is "SkipUserAgents".
# Note: Use space between each value. This parameter is not case sensitive.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "msie"
# Default: ""
#
OnlyUserAgents=""
 
 
# Include in stats, only accesses from authenticated users that match one of
# following entries. For example, if you want AWStats to filter access to keep
# only stats for authenticated users, you can add those users names in
# this parameter. Useful for statistics for per user ftp logs.
# Note: Use space between each value. This parameter is not case sensitive.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "john bob REGEX[^testusers]"
# Default: ""
#
OnlyUsers=""
 
 
# Include in stats, only accesses to URLs that match one of following entries.
# For example, if you want AWStats to filter access to keep only stats that
# match a particular string, like a particular directory, you can add this
# directory name in this parameter.
# The opposite parameter of "OnlyFiles" is "SkipFiles".
# Note: Use space between each value. This parameter is or not case sensitive
# depending on URLNotCaseSensitive parameter.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "REGEX[marketing_directory] REGEX[office\/.*\.(csv|sxw)$]"
# Default: ""
#
OnlyFiles=""
 
 
# Add here a list of kind of url (file extension) that must be counted as
# "Hit only" and not as a "Hit" and "Page/Download". You can set here all
# image extensions as they are hit downloaded that must be counted but they
# are not viewed pages. URLs with such extensions are not included in the TOP
# Pages/URL report.
# Note: If you want to exclude particular URLs from stats (No Pages and no
# Hits reported), you must use SkipFiles parameter.
# Change : Effective for new updates only
# Example: "css js class gif jpg jpeg png bmp ico rss xml swf zip arj rar gz z bz2 wav mp3 wma mpg avi"
# Example: ""
# Default: "css js class gif jpg jpeg png bmp ico rss xml swf"
#
NotPageList="css js class gif jpg jpeg png bmp ico rss xml swf"
 
 
# By default, AWStats considers that records found in web log file are
# successful hits if HTTP code returned by server is a valid HTTP code (200
# and 304). Any other code are reported in HTTP status chart.
# Note that HTTP 'control codes', like redirection (302, 305) are not added by
# default in this list as they are not pages seen by a visitor but are
# protocol exchange codes to tell the browser to ask another page. Because
# this other page will be counted and seen with a 200 or 304 code, if you 
# add such codes, you will have 2 pages viewed reported for only one in facts.
# Change : Effective for new updates only
# Example: "200 304 302 305"
# Default: "200 304"
#
ValidHTTPCodes="200 304"
 
 
# By default, AWStats considers that records found in mail log file are
# successful mail transfers if field that represent return code in analyzed
# log file match values defined by this parameter.
# Change : Effective for new updates only
# Example: "1 250 200"
# Default: "1 250"
#
ValidSMTPCodes="1 250"
 
 
# Some web servers on some Operating systems (IIS-Windows) consider that a
# login with same value but different case are the same login. To tell AWStats
# to also consider them as one, set this parameter to 1.
# Change : Effective for new updates only
# Possible values: 0 or 1
# Default: 0
# 
AuthenticatedUsersNotCaseSensitive=0
 
 
# Some web servers on some Operating systems (IIS-Windows) considers that two
# URLs with same value but different case are the same URL. To tell AWStats to
# also considers them as one, set this parameter to 1.
# Change : Effective for new updates only
# Possible values: 0 or 1
# Default: 0
# 
URLNotCaseSensitive=0
 
 
# Keep or remove the anchor string you can find in some URLs.
# Change : Effective for new updates only
# Possible values: 0 or 1
# Default: 0
#
URLWithAnchor=0
 
 
# In URL links, "?" char is used to add parameter's list in URLs. Syntax is:
# /mypage.html?param1=value1&param2=value2
# However, some servers/sites use also other chars to isolate dynamic part of
# their URLs. You can complete this list with all such characters.
# Change : Effective for new updates only
# Example: "?;,"
# Default: "?;"
#
URLQuerySeparators="?;"
 
 
# Keep or remove the query string to the URL in the statistics for individual
# pages. This is primarily used to differentiate between the URLs of dynamic
# pages. If set to 1, mypage.html?id=x and mypage.html?id=y are counted as two
# different pages.
# Warning, when set to 1, memory required to run AWStats is dramatically
# increased if you have a lot of changing URLs (for example URLs with a random
# id inside). Such web sites should not set this option to 1 or use seriously
# the next parameter URLWithQueryWithOnlyFollowingParameters (or eventually 
# URLWithQueryWithoutFollowingParameters).
# Change : Effective for new updates only
# Possible values:
# 0 - URLs are cleaned from the query string (ie: "/mypage.html")
# 1 - Full URL with query string is used     (ie: "/mypage.html?p=x&q=y")
# Default: 0
# 
URLWithQuery=0
 
 
# When URLWithQuery is on, you will get the full URL with all parameters in
# URL reports. But among thoose parameters, sometimes you don't need a
# particular parameter because it does not identify the page or because it's
# a random ID changing for each access even if URL points to same page. In
# such cases, it is higly recommanded to ask AWStats to keep only parameters
# you need (if you know them) before counting, manipulating and storing URL.
# Enter here list of wanted parameters. For example, with "param", one hit on
# /mypage.cgi?param=abc&id=Yo4UomP9d  and  /mypage.cgi?param=abc&id=Mu8fdxl3r
# will be reported as 2 hits on /mypage.cgi?param=abc
# This parameter is not used when URLWithQuery is 0 and can't be used with
# URLWithQueryWithoutFollowingParameters.
# Change : Effective for new updates only
# Example: "param"
# Default: ""
# 
URLWithQueryWithOnlyFollowingParameters=""
 
 
# When URLWithQuery is on, you will get the full URL with all parameters in
# URL reports. But among thoose parameters, sometimes you don't need a
# particular parameter because it does not identify the page or because it's
# a random ID changing for each access even if URL points to same page. In
# such cases, it is higly recommanded to ask AWStats to remove such parameters
# from the URL before counting, manipulating and storing URL. Enter here list
# of all non wanted parameters. For example if you enter "id", one hit on
# /mypage.cgi?param=abc&id=Yo4UomP9d  and  /mypage.cgi?param=abc&id=Mu8fdxl3r
# will be reported as 2 hits on /mypage.cgi?param=abc
# This parameter is not used when URLWithQuery is 0 and can't be used with
# URLWithQueryWithOnlyFollowingParameters.
# Change : Effective for new updates only
# Example: "PHPSESSID jsessionid"
# Default: ""
# 
URLWithQueryWithoutFollowingParameters=""
 
 
# Keep or remove the query string to the referrer URL in the statistics for
# external referrer pages. This is used to differentiate between the URLs of
# dynamic referrer pages. If set to 1, mypage.html?id=x and mypage.html?id=y
# are counted as two different referrer pages.
# Change : Effective for new updates only
# Possible values:
# 0 - Referrer URLs are cleaned from the query string (ie: "/mypage.html")
# 1 - Full URL with query string is used      (ie: "/mypage.html?p=x&q=y")
# Default: 0
# 
URLReferrerWithQuery=0
 
 
# AWStats can detect setup problems or show you important informations to have
# a better use. Keep this to 1, except if AWStats says you can change it.
# Change : Effective immediatly
# Possible values: 0 or 1
# Default: 1
#
WarningMessages=1
 
 
# When an error occurs, AWStats outputs a message related to errors. If you
# want (in most cases for security reasons) to have no error messages, you
# can set this parameter to your personalized generic message.
# Change : Effective immediatly
# Example: "An error occurred. Contact your Administrator"
# Default: ""
#
ErrorMessages=""
 
 
# AWStat can be run with debug=x parameter to output various informations
# to help in debugging or solving troubles. If you want to allow this (not
# enabled by default for security reasons), set this parameter to 0.
# Change : Effective immediatly
# Possible values: 0 or 1
# Default: 0
#
DebugMessages=0
 
 
# To help you to detect if your log format is good, AWStats reports an error
# if all the first NbOfLinesForCorruptedLog lines have a format that does not
# match the LogFormat parameter.
# However, some worm virus attack on your web server can result in a very high
# number of corrupted lines in your log. So if you experience awstats stop
# because of bad virus records at the beginning of your log file, you can
# increase this parameter (very rare).
# Change : Effective for new updates only
# Default: 50
#
NbOfLinesForCorruptedLog=50
 
 
# For some particular integration needs, you may want to have CGI links to
# point to another script than awstats.pl.
# Use the name of this script in WrapperScript parameter.
# Change : Effective immediatly
# Example: "awstatslauncher.pl"
# Default: ""
#
WrapperScript=""
 
 
# DecodeUA must be set to 1 if you use Roxen web server. This server converts
# all spaces in user agent field into %20. This make the AWStats robots, OS
# and browsers detection fail in some cases. Just change it to 1 if and only
# if your web server is Roxen.
# Change : Effective for new updates only
# Possible values: 0 or 1
# Default: 0
#
DecodeUA=0
 
 
# MiscTrackerUrl can be used to make AWStats able to detect some miscellaneous
# things, that can not be tracked on other way, like:
# - Javascript disabled
# - Java enabled
# - Screen size
# - Color depth
# - Macromedia Director plugin
# - Macromedia Shockwave plugin
# - Realplayer G2 plugin
# - QuickTime plugin
# - Mediaplayer plugin
# - Acrobat PDF plugin
# To enable all these features, you must copy the awstats_misc_tracker.js file
# into a /js/ directory stored in your web document root and add the following
# HTML code at the end of your index page (but before </BODY>) :
#
# <script language=javascript src="/js/awstats_misc_tracker.js"></script>
# <noscript><img src="/js/awstats_misc_tracker.js?nojs=y" height=0 width=0 border=0 style="display: none"></noscript>
#
# If code is not added in index page, all those detection capabilities will be
# disabled. You must also check that ShowScreenSizeStats and ShowMiscStats
# parameters are set to 1 to make results appear in AWStats report page.
# If you want to use another directory than /js/, you must also change the
# awstatsmisctrackerurl variable into the awstats_misc_tracker.js file.
# Change : Effective for new updates only.
# Possible value: URL of javascript tracker file added in your HTML code.
# Default: "/js/awstats_misc_tracker.js"
#
MiscTrackerUrl="/js/awstats_misc_tracker.js"
 
 
 
#-----------------------------------------------------------------------------
# OPTIONAL ACCURACY SETUP SECTION (Not required but increase AWStats features)
#-----------------------------------------------------------------------------
 
# The following values allow you to define accuracy of AWStats entities
# (robots, browsers, os, referers, file types) detection.
# It might be a good idea for large web sites or ISP that provides AWStats to
# high number of customers, to set this parameter to 1 (or 0), instead of 2.
# Possible values:
#    0      = No detection,
#    1      = Medium/Standard detection
#    2      = Full detection
# Change : Effective for new updates only
# Note   : LevelForBrowsersDetection can also accept value "allphones". This
#          enable detailed detection of phone/pda browsers.
# Default: 2 (0 for LevelForWormsDetection)
#
# Tachtler
# default: LevelForBrowsersDetection=2         # 0 disables Browsers detection.
LevelForBrowsersDetection=0         # 0 disables Browsers detection.
                                    # 2 reduces AWStats speed by 2%
                                    # allphones reduces AWStats speed by 5%
# default: LevelForOSDetection=2               # 0 disables OS detection.
LevelForOSDetection=0               # 0 disables OS detection.
                                    # 2 reduces AWStats speed by 3%
# default: LevelForRefererAnalyze=2            # 0 disables Origin detection.
LevelForRefererAnalyze=0            # 0 disables Origin detection.
                                    # 2 reduces AWStats speed by 14%
# default: LevelForRobotsDetection=2           # 0 disables Robots detection.
LevelForRobotsDetection=0           # 0 disables Robots detection.
                                    # 2 reduces AWStats speed by 2.5%
# default: LevelForSearchEnginesDetection=2    # 0 disables Search engines detection.
LevelForSearchEnginesDetection=0    # 0 disables Search engines detection.
                                    # 2 reduces AWStats speed by 9%
# default: LevelForKeywordsDetection=2         # 0 disables Keyphrases/Keywords detection.
LevelForKeywordsDetection=0         # 0 disables Keyphrases/Keywords detection.
                                    # 2 reduces AWStats speed by 1%
# default: LevelForFileTypesDetection=2        # 0 disables File types detection.
LevelForFileTypesDetection=0        # 0 disables File types detection.
                                    # 2 reduces AWStats speed by 1%
LevelForWormsDetection=0            # 0 disables Worms detection.
                                    # 2 reduces AWStats speed by 15%
 
 
 
#-----------------------------------------------------------------------------
# OPTIONAL APPEARANCE SETUP SECTION (Not required but increase AWStats features)
#-----------------------------------------------------------------------------
 
# When you use AWStats as a CGI, you can have the reports shown in HTML frames.
# Frames are only available for report viewed dynamically. When you build
# pages from command line, this option is not used and no frames are built.
# Possible values: 0 or 1
# Default: 1
#
UseFramesWhenCGI=1
 
 
# This parameter asks your browser to open detailed reports into a different
# window than the main page.
# Possible values:
# 0 - Open all in same browser window
# 1 - Open detailed reports in another window except if using frames
# 2 - Open always in a different window even if reports are framed
# Default: 1
#
DetailedReportsOnNewWindows=1
 
 
# You can add, in the HTML report page, a cache lifetime (in seconds) that
# will be returned to the browser in HTTP header answer by server.
# This parameter is not used when reports are built with -staticlinks option.
# Example: 3600
# Default: 0
#
Expires=0
 
 
# To avoid too large web pages, you can ask AWStats to limit number of rows of
# all reported charts to this number when no other limits apply.
# Default: 1000
#
MaxRowsInHTMLOutput=1000
 
 
# Set your primary language (ISO-639-1 language codes).
# Possible values:
#  Albanian=al, Bosnian=ba, Bulgarian=bg, Catalan=ca,
#  Chinese (Taiwan)=tw, Chinese (Simpliefied)=cn, Croatian=hr, Czech=cz,
#  Danish=dk, Dutch=nl, English=en, Estonian=et, Euskara=eu, Finnish=fi,
#  French=fr, Galician=gl, German=de, Greek=gr, Hebrew=he, Hungarian=hu,
#  Icelandic=is, Indonesian=id, Italian=it, Japanese=jp, Korean=ko,
#  Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl,
#  Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru,
#  Serbian=sr, Slovak=sk, Slovenian=si, Spanish=es, Swedish=se, Turkish=tr,
 
#  Ukrainian=ua, Welsh=cy.
#  First available language accepted by browser=auto
# Default: "auto"
#
# Tachtler
# Lang="auto"
Lang="de"
 
 
# Set the location of language files.
# Example: "/usr/share/awstats/lang"
# Default: "./lang" (means lang directory is in same location than awstats.pl)
#
DirLang="./lang"
 
 
# Show menu header with reports' links
# Possible values: 0 or 1
# Default: 1
#
ShowMenu=1
 
 
# You choose here which reports you want to see in the main page and what you
# want to see in those reports.
# Possible values:
#  0  - Report is not shown at all
#  1  - Report is shown in main page with an entry in menu and default columns
# XYZ - Report shows column informations defined by code X,Y,Z...
#       X,Y,Z... are code letters among the following:
#        U = Unique visitors
#        V = Visits
#        P = Number of pages
#        H = Number of hits (or mails)
#        B = Bandwith (or total mail size for mail logs)
#        L = Last access date
#        E = Entry pages
#        X = Exit pages
#        C = Web compression (mod_gzip,mod_deflate)
#        M = Average mail size (mail logs)
#
 
# Show monthly summary
# Context: Web, Streaming, Mail, Ftp
# Default: UVPHB, Possible column codes: UVPHB
# Tachtler
# default: ShowSummary=UVPHB
ShowSummary=HB
 
# Show monthly chart
# Context: Web, Streaming, Mail, Ftp
# Default: UVPHB, Possible column codes: UVPHB
# Tachtler
# default: ShowMonthStats=UVPHB
ShowMonthStats=HB
 
# Show days of month chart
# Context: Web, Streaming, Mail, Ftp
# Default: VPHB, Possible column codes: VPHB
# Tachtler
# default: ShowDaysOfMonthStats=VPHB
ShowDaysOfMonthStats=HB
 
# Show days of week chart
# Context: Web, Streaming, Mail, Ftp
# Default: PHB, Possible column codes: PHB
# Tachtler
# default: ShowDaysOfWeekStats=PHB
ShowDaysOfWeekStats=HB
 
# Show hourly chart
# Context: Web, Streaming, Mail, Ftp
# Default: PHB, Possible column codes: PHB
# Tachtler
# default: ShowHoursStats=PHB
ShowHoursStats=HB
 
# Show domains/country chart
# Context: Web, Streaming, Mail, Ftp
# Default: PHB, Possible column codes: PHB
# Tachtler
# default: ShowDomainsStats=PHB
ShowDomainsStats=0
 
# Show hosts chart
# Context: Web, Streaming, Mail, Ftp
# Default: PHBL, Possible column codes: PHBL
# Tachtler
# default: ShowHostsStats=PHBL
ShowHostsStats=HBL
 
# Show authenticated users chart
# Context: Web, Streaming, Ftp
# Default: 0, Possible column codes: PHBL
ShowAuthenticatedUsers=0
 
# Show robots chart
# Context: Web, Streaming
# Default: HBL, Possible column codes: HBL
# Tachtler
# default: ShowRobotsStats=HBL
ShowRobotsStats=0
 
# Show worms chart
# Context: Web, Streaming
# Default: 0 (If set to other than 0, see also LevelForWormsDetection), Possible column codes: HBL
ShowWormsStats=0
 
# Show email senders chart (For use when analyzing mail log files)
# Context: Mail
# Default: 0, Possible column codes: HBML
# Tachtler
# default: ShowEMailSenders=0
ShowEMailSenders=HBML
 
# Show email receivers chart (For use when analyzing mail log files)
# Context: Mail
# Default: 0, Possible column codes: HBML
# Tachtler
# default: ShowEMailReceivers=0
ShowEMailReceivers=HBML
 
# Show session chart
# Context: Web, Streaming, Ftp
# Default: 1, Possible column codes: None
# Tachtler
# default: ShowSessionsStats=1
ShowSessionsStats=0
 
# Show pages-url chart.
# Context: Web, Streaming, Ftp
# Default: PBEX, Possible column codes: PBEX
# Tachtler
# ShowPagesStats=PBEX
ShowPagesStats=0
 
# Show file types chart.
# Context: Web, Streaming, Ftp
# Default: HB, Possible column codes: HBC
# Tachtler
# ShowFileTypesStats=HB
ShowFileTypesStats=0
 
# Show file size chart (Not yet available)
# Context: Web, Streaming, Mail, Ftp
# Default: 1, Possible column codes: None
ShowFileSizesStats=0
 
# Show operating systems chart
# Context: Web, Streaming, Ftp
# Default: 1, Possible column codes: None
# Tachtler
# default: ShowOSStats=1
ShowOSStats=0
 
# Show browsers chart
# Context: Web, Streaming
# Default: 1, Possible column codes: None
# Tachtler
# default: ShowBrowsersStats=1
ShowBrowsersStats=0
 
# Show screen size chart
# Context: Web, Streaming
# Default: 0 (If set to 1, see also MiscTrackerUrl), Possible column codes: None
ShowScreenSizeStats=0
 
# Show origin chart
# Context: Web, Streaming
# Default: PH, Possible column codes: PH
# Tachtler
# ShowOriginStats=PH
ShowOriginStats=0
 
# Show keyphrases chart
# Context: Web, Streaming
# Default: 1, Possible column codes: None
# Tachtler
# ShowKeyphrasesStats=1
ShowKeyphrasesStats=0
 
# Show keywords chart
# Context: Web, Streaming
# Default: 1, Possible column codes: None
# Tachtler
# ShowKeywordsStats=1
ShowKeywordsStats=0
 
# Show misc chart
# Context: Web, Streaming
# Default: a (See also MiscTrackerUrl parameter), Possible column codes: anjdfrqwp
# Tachtler
# default: ShowMiscStats=a
ShowMiscStats=0
 
# Show http errors chart
# Context: Web, Streaming
# Default: 1, Possible column codes: None
# Tachtler
# ShowHTTPErrorsStats=1
ShowHTTPErrorsStats=0
 
# Show smtp errors chart (For use when analyzing mail log files)
# Context: Mail
# Default: 0, Possible column codes: None
# Tachtler
# default: ShowSMTPErrorsStats=0
ShowSMTPErrorsStats=1
 
# Show the cluster report (Your LogFormat must contains the %cluster tag)
# Context: Web, Streaming, Ftp
# Default: 0, Possible column codes: PHB
ShowClusterStats=0
 
 
# Some graphical reports are followed by the data array of values.
# If you don't want this array (to reduce the report size for example), you
# can set thoose options to 0.
# Possible values: 0 or 1
# Default: 1
#
# Data array values for the ShowMonthStats report
AddDataArrayMonthStats=1
# Data array values for the ShowDaysOfMonthStats report
AddDataArrayShowDaysOfMonthStats=1
# Data array values for the ShowDaysOfWeekStats report
AddDataArrayShowDaysOfWeekStats=1
# Data array values for the ShowHoursStats report
AddDataArrayShowHoursStats=1
 
 
# In the Origin chart, you have stats on where your hits came from. You can
# include hits on pages that come from pages of same sites in this chart.
# Possible values: 0 or 1
# Default: 0
#
IncludeInternalLinksInOriginSection=0
 
 
# The following parameters can be used to choose the maximum number of lines
# shown for the particular following reports.
#
# Stats by countries/domains
MaxNbOfDomain = 10
MinHitDomain  = 1
# Stats by hosts
MaxNbOfHostsShown = 10
MinHitHost    = 1
# Stats by authenticated users
MaxNbOfLoginShown = 10
MinHitLogin   = 1
# Stats by robots
MaxNbOfRobotShown = 10
MinHitRobot   = 1
# Stats by pages
MaxNbOfPageShown = 10
MinHitFile    = 1
# Stats by OS
MaxNbOfOsShown = 10
MinHitOs      = 1
# Stats by browsers
MaxNbOfBrowsersShown = 10
MinHitBrowser = 1
# Stats by screen size
MaxNbOfScreenSizesShown = 5
MinHitScreenSize = 1
# Stats by window size (following 2 parameters are not yet used)
MaxNbOfWindowSizesShown = 5
MinHitWindowSize = 1
# Stats by referers
MaxNbOfRefererShown = 10
MinHitRefer   = 1
# Stats for keyphrases
MaxNbOfKeyphrasesShown = 10
MinHitKeyphrase = 1
# Stats for keywords
MaxNbOfKeywordsShown = 10
MinHitKeyword = 1
# Stats for sender or receiver emails
MaxNbOfEMailsShown = 20
MinHitEMail   = 1
 
 
# Choose if you want the week report to start on sunday or monday
# Possible values:
# 0 - Week starts on sunday
# 1 - Week starts on monday
# Default: 1
#
FirstDayOfWeek=1
 
 
# List of visible flags that link to other language translations.
# See Lang parameter for list of allowed flag/language codes.
# If you don't want any flag link, set ShowFlagLinks to "".
# This parameter is used only if ShowMenu parameter is set to 1.
# Possible values: "" or "language_codes_separated_by_space"
# Example: "en es fr nl de"
# Default: ""
#
ShowFlagLinks=""
 
 
# Each URL, shown in stats report views, are links you can click.
# Possible values: 0 or 1
# Default: 1
#
ShowLinksOnUrl=1
 
 
# When AWStats builds HTML links in its report pages, it starts those links
# with "http://". However some links might be HTTPS links, so you can enter
# here the root of all your HTTPS links. If all your site is a SSL web site,
# just enter "/".
# This parameter is not used if ShowLinksOnUrl is 0.
# Example: "/shopping"
# Example: "/"
# Default: ""
#
UseHTTPSLinkForUrl=""
 
 
# Maximum length of URL part shown on stats page (number of characters).
# This affects only URL visible text, links still work.
# Default: 64
#
MaxLengthOfShownURL=64
 
 
# You can enter HTML code that will be added at the top of AWStats reports.
# Default: ""
#
HTMLHeadSection=""
 
 
# You can enter HTML code that will be added at the end of AWStats reports.
# Great to add advert ban.
# Default: ""
#
HTMLEndSection=""
 
 
# You can set Logo and LogoLink to use your own logo.
# Logo must be the name of image file (must be in $DirIcons/other directory).
# LogoLink is the expected URL when clicking on Logo.
# Default: "awstats_logo6.png"
#
Logo="awstats_logo6.png"
LogoLink="http://awstats.sourceforge.net"
 
 
# Value of maximum bar width/height for horizontal/vertical HTML graphics bars.
# Default: 260/90
#
BarWidth   = 260
BarHeight  = 90
 
 
# You can ask AWStats to use a particular CSS (Cascading Style Sheet) to
# change its look. To create a style sheet, you can use samples provided with
# AWStats in wwwroot/css directory.
# Example: "/awstatscss/awstats_bw.css"
# Example: "/css/awstats_bw.css"
# Default: ""
#
StyleSheet=""
 
 
# Those color parameters can be used (if StyleSheet parameter is not used)
# to change AWStats look.
# Example: color_name="RRGGBB"  # RRGGBB is Red Green Blue components in Hex
#
color_Background="FFFFFF"               # Background color for main page (Default = "FFFFFF")
color_TableBGTitle="CCCCDD"             # Background color for table title (Default = "CCCCDD")
color_TableTitle="000000"               # Table title font color (Default = "000000")
color_TableBG="CCCCDD"                  # Background color for table (Default = "CCCCDD")
color_TableRowTitle="FFFFFF"    # Table row title font color (Default = "FFFFFF")
color_TableBGRowTitle="ECECEC"  # Background color for row title (Default = "ECECEC")
color_TableBorder="ECECEC"              # Table border color (Default = "ECECEC")
color_text="000000"                             # Color of text (Default = "000000")
color_textpercent="606060"              # Color of text for percent values (Default = "606060")
color_titletext="000000"                # Color of text title within colored Title Rows (Default = "000000")
color_weekend="EAEAEA"                  # Color for week-end days (Default = "EAEAEA")
color_link="0011BB"                             # Color of HTML links (Default = "0011BB")
color_hover="605040"                    # Color of HTML on-mouseover links (Default = "605040") 
color_u="FFAA66"                                # Background color for number of unique visitors (Default = "FFAA66")
color_v="F4F090"                                # Background color for number of visites (Default = "F4F090")
color_p="4477DD"                                # Background color for number of pages (Default = "4477DD")
color_h="66DDEE"                                # Background color for number of hits (Default = "66DDEE")
color_k="2EA495"                                # Background color for number of bytes (Default = "2EA495")
color_s="8888DD"                                # Background color for number of search (Default = "8888DD")
color_e="CEC2E8"                                # Background color for number of entry pages (Default = "CEC2E8")
color_x="C1B2E2"                                # Background color for number of exit pages (Default = "C1B2E2")
 
 
#-----------------------------------------------------------------------------
# PLUGINS
#-----------------------------------------------------------------------------
 
# Add here all plugin files you want to load.
# Plugin files must be .pm files stored in 'plugins' directory.
 
# Uncomment LoadPlugin lines to enable a plugin after checking that perl
# modules required by the plugin are installed.
 
# Plugin: Tooltips
# Perl modules required: None
# Add some tooltips help on HTML report pages.
# Note that enabling this kind of help will increased HTML report pages size,
# so server load and bandwidth.
#
# Tachtler - enabled -
LoadPlugin="tooltips"
 
# Plugin: DecodeUTFKeys
# Perl modules required: Encode and URI::Escape
# Allow AWStats to show correctly (in language charset) keywords/keyphrases
# strings even if they were UTF8 coded by the referer search engine.
#
#LoadPlugin="decodeutfkeys"
 
# Plugin: IPv6
# Perl modules required: Net::IP and Net::DNS
# This plugin gives AWStats capability to make reverse DNS lookup on IPv6
# addresses.
# Note: If you are interested in having country report, you should use the
# geoip or geoipfree plugin instead of enabled reverse DNS lookup.
#
#LoadPlugin="ipv6"
 
# Plugin: HashFiles
# Perl modules required: Storable
# AWStats DNS cache files are read/saved as native hash files. This increases
# DNS cache files loading speed, above all for very large web sites.
#
#LoadPlugin="hashfiles"
 
# Plugin: GeoIP
# Perl modules required: Geo::IP or Geo::IP::PurePerl (from Maxmind)
# Country chart is built from an Internet IP-Country database.
# This plugin is useless for intranet only log files.
# Note: You must choose between using this plugin (need Perl Geo::IP module 
# from Maxmind, database is free and up to date) or the GeoIPfree plugin
# (need Perl Geo::IPfree module, database is free but not up to date).
# There is two versions of Maxmind Country Database:
# You can get a free version or purchase a license from Maxmind to get/use a more
# accurate version including updates (http://www.maxmind.com/app/perl?rId=awstat)
# This plugin reduces AWStats speed of 8% !
#
# Tachtler - enabled -
LoadPlugin="geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat"
 
# Plugin: GeoIPfree
# Perl modules required: Geo::IPfree version 0.2+ (from Graciliano M.P.)
# Country chart is built from an Internet IP-Country database.
# This plugin is useless for intranet only log files.
# Note: You must choose between using this plugin (need Perl Geo::IPfree
# module, database is free but not up to date) or the GeoIP plugin (need
# Perl Geo::IP module from Maxmind, database is also free and up to date).
# Note: Activestate provide a corrupted version of Geo::IPfree 0.2 Perl
# module, so install it from elsewhere (from www.cpan.org for example).
# This plugin reduces AWStats speed of 10% !
#
#LoadPlugin="geoipfree"
 
# Plugin: GeoIP_Region_Maxmind
# Perl modules required: Geo::IP (from Maxmind)
# This plugin add a chart of hits by regions. Only regions for US and 
# Canada can be detected.
# Note: This plugin need Maxmind GeoIP Perl module AND the region database.
# Note: I get some problem with Maxmind Geo::IP Perl module with ActiveState
# on Windows but it works great on Linux with default Perl.
# You need to purchase a license from Maxmind to get/use the Region database.
# This plugin reduces AWStats speed.
#
#LoadPlugin="geoip_region_maxmind GEOIP_STANDARD /pathto/GeoIPRegion.dat"
 
# Plugin: GeoIP_City_Maxmind
# Perl modules required: Geo::IP (from Maxmind)
# This plugin add a chart of hits by cities (with country and regions
# informations for major countries).
# Note: This plugin need Maxmind GeoIP Perl module AND the city database.
# Note: I get some problem with Maxmind Geo::IP Perl module with ActiveState
# on Windows but it works great on Linux with default Perl.
# There is two versions of Maxmind City Database:
# You can get a free version or purchase a license from Maxmind to get/use a more
# accurate version including updates (http://www.maxmind.com/app/perl?rId=awstat)
# This plugin reduces AWStats speed.
#
# Tachtler - enabled -
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/share/GeoIP/GeoLiteCity.dat"
 
# Plugin: GeoIP_ISP_Maxmind
# Perl modules required: Geo::IP (from Maxmind)
# This plugin add a chart of hits by ISP.
# Note: This plugin need Maxmind GeoIP Perl module AND the ISP database.
# Note: I get some problem with Maxmind Geo::IP Perl module with ActiveState
# on Windows but it works great on Linux with default Perl.
# You need to purchase a license from Maxmind to get/use the ISP database.
# This plugin reduces AWStats speed.
#
#LoadPlugin="geoip_isp_maxmind GEOIP_STANDARD /pathto/GeoIPISP.dat"
 
# Plugin: GeoIP_Org_Maxmind
# Perl modules required: Geo::IP (from Maxmind)
# This plugin add a chart of hits by Organization name
# Note: This plugin need Maxmind GeoIP Perl module AND the Org database.
# Note: I get some problem with Maxmind Geo::IP Perl module with ActiveState
# on Windows but it works great on Linux with default Perl.
# You need to purchase a license from Maxmind to get/use the Org database.
# This plugin reduces AWStats speed.
#
#LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /pathto/GeoIPOrg.dat"
 
# Plugin: UserInfo
# Perl modules required: None
# Add a text (Firtname, Lastname, Office Department, ...) in authenticated user
# reports for each login value.
# A text file called userinfo.myconfig.txt, with two fields (first is login,
# second is text to show, separated by a tab char) must be created in DirData
# directory.
#
#LoadPlugin="userinfo"
 
# Plugin: HostInfo
# Perl modules required: Net::XWhois
# Add a column into host chart with a link to open a popup window that shows
# info on host (like whois records).
#
# Tachtler - enabled -
LoadPlugin="hostinfo"
 
# Plugin: ClusterInfo
# Perl modules required: None
# Add a text (for example a full hostname) in cluster reports for each cluster
# number.
# A text file called clusterinfo.myconfig.txt, with two fields (first is
# cluster number, second is text to show) separated by a tab char. must be
# created into DirData directory.
# Note this plugin is useless if ShowClusterStats is set to 0 or if you don't
# use a personalized log format that contains %cluster tag.
#
#LoadPlugin="clusterinfo"
 
# Plugin: UrlAliases
# Perl modules required: None
# Add a text (Page title, description...) in URL reports before URL value.
# A text file called urlalias.myconfig.txt, with two fields (first is URL,
# second is text to show, separated by a tab char) must be created into
# DirData directory.
#
#LoadPlugin="urlalias"
 
# Plugin: TimeHiRes
# Perl modules required: Time::HiRes (if Perl < 5.8)
# Time reported by -showsteps option is in millisecond. For debug purpose.
#
#LoadPlugin="timehires"
 
# Plugin: TimeZone
# Perl modules required: Time::Local
# Allow AWStats to correct a bad timezone for user of some IIS that use
# GMT date in its log instead of local server time.
# This module is useless for Apache and most IIS version.
# This plugin reduces AWStats speed of 40% !!!!!!!
#
#LoadPlugin="timezone +2"
 
# Plugin: Rawlog
# Perl modules required: None
# This plugin adds a form in AWStats main page to allow users to see raw
# content of current log files. A filter is also available.
#
#LoadPlugin="rawlog"
 
# Plugin: GraphApplet
# Perl modules required: None
# Supported charts are built by a 3D graphic applet.
#
#LoadPlugin="graphapplet /awstatsclasses"                               # EXPERIMENTAL FEATURE
 
 
 
#-----------------------------------------------------------------------------
# EXTRA SECTIONS
#-----------------------------------------------------------------------------
 
# You can define your own charts, you choose here what are rows and columns
# keys. This feature is particularly useful for marketing purpose, tracking
# products orders for example.
# For this, edit all parameters of Extra section. Each set of parameter is a
# different chart. For several charts, duplicate section changing the number.
# Note: Each Extra section reduces AWStats speed by 8%.
#
# WARNING: A wrong setup of Extra section might result in too large arrays
# that will consume all your memory, making AWStats unusable after several
# updates, so be sure to setup it correctly.
# In most cases, you don't need this feature.
#
# ExtraSectionNameX is title of your personalized chart.
# ExtraSectionCodeFilterX is list of codes the record code field must match.
#   Put an empty string for no test on code.
# ExtraSectionConditionX are conditions you can use to count or not the hit,
#   Use one of the field condition
#   (URL,URLWITHQUERY,QUERY_STRING,REFERER,UA,HOSTINLOG,HOST,VHOST,extraX)
#   and a regex to match, after a coma. Use "||" for "OR".
# ExtraSectionFirstColumnTitleX is the first column title of the chart.
# ExtraSectionFirstColumnValuesX is a string to tell AWStats which field to
#   extract value from
#   (URL,URLWITHQUERY,QUERY_STRING,REFERER,UA,HOSTINLOG,HOST,VHOST,extraX)
#   and how to extract the value (using regex syntax). Each different value
#   found will appear in first column of report on a different row. Be sure
#   that list of different possible values will not grow indefinitely.
# ExtraSectionFirstColumnFormatX is the string used to write value.
# ExtraSectionStatTypesX are things you want to count. You can use standard
#   code letters (P for pages,H for hits,B for bandwidth,L for last access).
# ExtraSectionAddAverageRowX add a row at bottom of chart with average values.
# ExtraSectionAddSumRowX add a row at bottom of chart with sum values.
# MaxNbOfExtraX is maximum number of rows shown in chart.
# MinHitExtraX is minimum number of hits required to be shown in chart.
#
 
# Example to report the 20 products the most ordered by "order.cgi" script
#ExtraSectionName1="Product orders"
#ExtraSectionCodeFilter1="200 304"
#ExtraSectionCondition1="URL,\/cgi\-bin\/order\.cgi||URL,\/cgi\-bin\/order2\.cgi"
#ExtraSectionFirstColumnTitle1="Product ID"
#ExtraSectionFirstColumnValues1="QUERY_STRING,productid=([^&]+)"
#ExtraSectionFirstColumnFormat1="%s"
#ExtraSectionStatTypes1=PL
#ExtraSectionAddAverageRow1=0
#ExtraSectionAddSumRow1=1
#MaxNbOfExtra1=20
#MinHitExtra1=1
 
 
# There is also a global parameter ExtraTrackedRowsLimit that limits the
# number of possible rows an ExtraSection can report. This parameter is
# here to protect too much memory use when you make a bad setup in your
# ExtraSection. It applies to all ExtraSection independently meaning that
# none ExtraSection can report more rows than value defined by ExtraTrackedRowsLimit.
# If you know an ExtraSection will report more rows than its value, you should
# increase this parameter or AWStats will stop with an error.
# Example: 2000
# Default: 500
#
ExtraTrackedRowsLimit=500
 
 
#-----------------------------------------------------------------------------
# INCLUDES
#-----------------------------------------------------------------------------
 
# You can include other config files using the directive with the name of the
# config file.
# This is particularly useful for users who have a lot of virtual servers, so
# a lot of config files and want to maintain common values in only one file.
# Note that when a variable is defined both in a config file and in an
# included file, AWStats will use the last value read for parameters that
# contains one value and AWStats will concat all values from both files for
# parameters that are lists of values.
#
 
#Include ""
Diese Website verwendet Cookies. Durch die Nutzung der Website stimmen Sie dem Speichern von Cookies auf Ihrem Computer zu. Außerdem bestätigen Sie, dass Sie unsere Datenschutzbestimmungen gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website.Weitere Information
tachtler/postfix_logfiles_auswerten.txt · Zuletzt geändert: 2016/05/06 12:30 von klaus