Очень удобный скрипт для получения статистики и анализа лога почтового сервера Postfix.
Устанвока:
# wget http://jimsun.linxnet.com/downloads/pflogsumm-1.1.1.tar.gz
# tar -zxf pflogsumm-1.1.1.tar.gz
# cd pflogsumm-1.1.1
Запуск:
# cat /var/log/maillog | ./pflogsumm.pl
Примерный вывод:
Grand Totals
------------
messages
494 received
1181 delivered
0 forwarded
18 deferred (238 deferrals)
118 bounced
51 rejected (4%)
0 reject warnings
0 held
0 discarded (0%)
43601k bytes received
46991k bytes delivered
252 senders
135 sending hosts/domains
767 recipients
23 recipient hosts/domains
Per-Day Traffic Summary
date received delivered deferred bounced rejected
--------------------------------------------------------------------
Feb 21 2016 42 41 38 2 13
Feb 22 2016 77 78 40 0 11
Feb 23 2016 94 93 22 2 4
Feb 24 2016 281 969 138 114 23
Per-Hour Traffic Daily Average
time received delivered deferred bounced rejected
--------------------------------------------------------------------
0000-0100 2 2 1 0 0
0100-0200 0 0 1 0 0
0200-0300 2 2 1 0 1
0300-0400 5 5 1 0 1
0400-0500 4 4 1 0 2
0500-0600 4 4 1 0 0
0600-0700 4 4 1 0 0
0700-0800 3 3 2 0 1
0800-0900 3 3 1 0 1
0900-1000 3 3 1 0 1
1000-1100 4 4 1 0 1
1100-1200 5 5 1 1 0
1200-1300 7 7 1 0 2
1300-1400 4 4 1 0 1
1400-1500 11 9 1 4 1
1500-1600 13 6 3 10 1
1600-1700 12 11 1 5 1
1700-1800 16 14 1 5 1
1800-1900 11 194 33 6 0
1900-2000 1 1 2 0 0
2000-2100 1 2 1 0 0
2100-2200 4 4 1 0 0
2200-2300 2 2 1 0 0
2300-2400 6 6 1 0 0
Host/Domain Summary: Message Delivery
sent cnt bytes defers avg dly max dly host/domain
-------- ------- ------- ------- ------- -----------
451 2245k 0 17.5 s 23.0 s mail.ru
353 39305k 101 2.4 s 120.2 h domain.com
173 742k 124 6.0 m 10.3 m yandex.ru
42 3934k 0 6.3 s 17.0 s list.ru
40 191408 0 6.8 s 7.6 s rambler.ru
Устанвока:
# wget http://jimsun.linxnet.com/downloads/pflogsumm-1.1.1.tar.gz
# tar -zxf pflogsumm-1.1.1.tar.gz
# cd pflogsumm-1.1.1
Запуск:
# cat /var/log/maillog | ./pflogsumm.pl
Примерный вывод:
Grand Totals
------------
messages
494 received
1181 delivered
0 forwarded
18 deferred (238 deferrals)
118 bounced
51 rejected (4%)
0 reject warnings
0 held
0 discarded (0%)
43601k bytes received
46991k bytes delivered
252 senders
135 sending hosts/domains
767 recipients
23 recipient hosts/domains
Per-Day Traffic Summary
date received delivered deferred bounced rejected
--------------------------------------------------------------------
Feb 21 2016 42 41 38 2 13
Feb 22 2016 77 78 40 0 11
Feb 23 2016 94 93 22 2 4
Feb 24 2016 281 969 138 114 23
Per-Hour Traffic Daily Average
time received delivered deferred bounced rejected
--------------------------------------------------------------------
0000-0100 2 2 1 0 0
0100-0200 0 0 1 0 0
0200-0300 2 2 1 0 1
0300-0400 5 5 1 0 1
0400-0500 4 4 1 0 2
0500-0600 4 4 1 0 0
0600-0700 4 4 1 0 0
0700-0800 3 3 2 0 1
0800-0900 3 3 1 0 1
0900-1000 3 3 1 0 1
1000-1100 4 4 1 0 1
1100-1200 5 5 1 1 0
1200-1300 7 7 1 0 2
1300-1400 4 4 1 0 1
1400-1500 11 9 1 4 1
1500-1600 13 6 3 10 1
1600-1700 12 11 1 5 1
1700-1800 16 14 1 5 1
1800-1900 11 194 33 6 0
1900-2000 1 1 2 0 0
2000-2100 1 2 1 0 0
2100-2200 4 4 1 0 0
2200-2300 2 2 1 0 0
2300-2400 6 6 1 0 0
Host/Domain Summary: Message Delivery
sent cnt bytes defers avg dly max dly host/domain
-------- ------- ------- ------- ------- -----------
451 2245k 0 17.5 s 23.0 s mail.ru
353 39305k 101 2.4 s 120.2 h domain.com
173 742k 124 6.0 m 10.3 m yandex.ru
42 3934k 0 6.3 s 17.0 s list.ru
40 191408 0 6.8 s 7.6 s rambler.ru
Комментариев нет:
Отправить комментарий