exim4?

eximstats
eximのmainlog(かsyslog)を集計してくれる

eximstats (op) mainlog1 mainlog2 ... > report.txt
eximstats -html (op) mainlog1 mainlog2 ... > report.html
eximstats -merge (op) repo.1.txt repo.2.txt ... > weekly_report.txt

オプション(op)

  1. ヒストグラム、区切る時間の単位 [ -h ] [0, 1, 2, 3, 5, 10, 15, 20, 30, 60]
  2. エラー情報は表示しない [-ne]
  3. 中継している情報は表示させない [ -nr ]
  4. 続くパターンで中継している情報は表示させない [ -nr/pattern/]
  5. トランスポート(clamavやspamassassinをexim上で動かしている時など)している情報は表示させない [-nt]
  6. 続くパターンに当てはまるトランスポートしている情報は表示させない [-nt/pattern/]
  7. 訳がよく分からないので保留List of times for queuing information single 0 item suppresses. [-qlist]
          -tnumber
              Display top <number> sources/destinations default is 50, 0 sup-
              presses top listing.
      -tnl
          Omit local sources/destinations in top listing.
      -t_remote_users
          Include remote users in the top source/destination listings.
      -byhost
          Show results by sending host. This may be combined with -bydomain
          and/or -byemail and/or -byedomain. If none of these options are
          specified, then -byhost is assumed as a default.
      -bydomain
          Show results by sending domain.  May be combined with -byhost
          and/or -byemail and/or -byedomain.
      -byemail
          Show results by sender's email address.  May be combined with
          -byhost and/or -bydomain and/or -byedomain.
      -byemaildomain or -byedomain
          Show results by sender's email domain.  May be combined with
          -byhost and/or -bydomain and/or -byemail.
      -pattern Description /Pattern/
          Look for the specified pattern and count the number of lines in
          which it appears.  This option can be specified multiple times. Eg:
           -pattern 'Refused connections' '/refused connection/'
      -merge
          This option allows eximstats to merge old eximstat reports
          together. Eg:
           eximstats mainlog.sun > report.sun.txt
           eximstats mainlog.mon > report.mon.txt
           eximstats mainlog.tue > report.tue.txt
           eximstats mainlog.wed > report.web.txt
           eximstats mainlog.thu > report.thu.txt
           eximstats mainlog.fri > report.fri.txt
           eximstats mainlog.sat > report.sat.txt
           eximstats -merge       report.*.txt > weekly_report.txt
           eximstats -merge -html report.*.txt > weekly_report.html
          *   You can merge text or html reports and output the results as
              text or html.
          *   You can use all the normal eximstat output options, but only
              data included in the original reports can be shown!
          *   When merging reports, some loss of accuracy may occur in the
              top n lists.  This will be towards the ends of the lists.
          *   The order of items in the top n lists may vary when the data
              volumes round to the same value.
      -html
          Output the results in TML.
      -charts
          Create graphical charts to be displayed in TML output.
          This requires the following modules which can be obtained from
         http://www.cpan.org/modules/01modules.index.html
          D
          GDTextUtil
          GDGraph
          To install these, download and unpack them, then use the normal
          perl installation procedure:
           perl Makefile.PL
           make
           make test
           make install
          On Debian GNU/Linux you can use "apt-get install libgd-perl
          libgd-text-perl libgd-graph-perl" instead.
      -chartdirI <dir>
          Create the charts in the directory <dir>
      -chartrelI <dir>
          Specify the relative directory for the "img src=" tags from where
          to include the charts
      -d  Debug flag. This outputs the eval()'d parser onto TDOUT which makes
          it easier to trap errors in the eval section. Remember to add 1 to
          the line numbers to allow for the title!

Last-modified: 2012-03-12 (月) 17:05:06 (166d)