Postfix / amavisd のログサマリー
FCやCentOSでは、LogWatchというログ集計プログラムが毎日1回、ログのサマリーをメールでレポートしてくれるが、maillogの集計が今ひとつで、集計結果を見てもあまりありがたくなかった。そこで、もっとかっこよく集計してくれるスクリプトはないかと探したところ、出てきたのがこれ。
http://www.mikecappella.com/logwatch/
なかなかいい感じでまとめてくれる。出力例は続きのとおり。
--------------------- Amavisd-new Begin ------------------------
2 *Warning
46 Clean passed 71.88%
16 Spam passed 25.00%
2 Banned file name blocked 3.12%
-------- ------------------------------------------------
64 Total Messages Scanned 100.00%
======== ================================================
46 Ham 71.88%
16 Spam 25.00%
-------- ------------------------------------------------
64 Total Messages Scanned 100.00%
======== ================================================
---------------------- Amavisd-new End -------------------------
--------------------- Postfix Begin ------------------------
3.508M Bytes accepted 3,678,839
3.439M Bytes delivered 3,606,155
======== ================================================
175 Accepted 99.43%
1 Rejected 0.57%
-------- ------------------------------------------------
176 Total 100.00%
======== ================================================
1 Reject relay denied 100.00%
-------- ------------------------------------------------
1 Total Rejects 100.00%
======== ================================================
114 4xx Reject recipient address 83.82%
22 4xx Reject sender address 16.18%
-------- ------------------------------------------------
136 Total 4xx Rejects 100.00%
======== ================================================
304 Connections made
116 Connections lost
304 Disconnections
175 Removed from queue
65 Delivered
109 Sent via SMTP
43 Forwarded
3 Deferred
3 Deferrals
1 Bounce (local)
3 Connection failure (outbound)
28 Hostname verification errors
2 TLS connections (server)
---------------------- Postfix End -------------------------
0 コメント: