SpamAssassin: утилита sa-stats — статистика работы антиспама

Опубликовано:

Качаем скрипт — http://spamassassin.apache.org/full/2.6x/dist/tools/sa-stats.pl

Для его корректной работы потребуются ещё несколько Perl-модулей:

# yum -y install perl-DateManip
# yum -y install perl-Parse-Syslog

Готово, запускаем:

01# ./sa-stats.pl
02Report Title : SpamAssassin - Spam Statistics
03Report Date : 2014-07-13
04Period Beginning : Sun 13 Jul 2014 12:00:00 AM EEST
05Period Ending : Mon 14 Jul 2014 12:00:00 AM EEST
06
07Reporting Period : 24.00 hrs
08--------------------------------------------------
09
10Note: 'ham' = 'nonspam'
11
12Total spam detected : 16 ( 84.21%)
13Total ham accepted : 3 ( 15.79%)
14-------------------
15Total emails processed : 19 ( 1/hr)
16
17Average spam threshold : 5.00
18Average spam score : 877.61
19Average ham score : 0.17
20
21Spam kbytes processed : 69 ( 3 kb/hr)
22Ham kbytes processed : 3 ( 0 kb/hr)
23Total kbytes processed : 72 ( 3 kb/hr)
24
25Spam analysis time : 10 s ( 0 s/hr)
26Ham analysis time : 0 s ( 0 s/hr)
27Total analysis time : 10 s ( 0 s/hr)
28
29
30Statistics by Hour
31----------------------------------------------------
32Hour Spam Ham
33------------- ----------------- --------------
342014-07-13 00 0 ( 0%) 0 ( 0%)
352014-07-13 01 0 ( 0%) 0 ( 0%)
362014-07-13 02 0 ( 0%) 0 ( 0%)
372014-07-13 03 0 ( 0%) 0 ( 0%)
382014-07-13 04 0 ( 0%) 0 ( 0%)
392014-07-13 05 0 ( 0%) 0 ( 0%)
402014-07-13 06 0 ( 0%) 0 ( 0%)
412014-07-13 07 0 ( 0%) 0 ( 0%)
422014-07-13 08 0 ( 0%) 0 ( 0%)
432014-07-13 09 0 ( 0%) 0 ( 0%)
442014-07-13 10 0 ( 0%) 0 ( 0%)
452014-07-13 11 0 ( 0%) 0 ( 0%)
462014-07-13 12 0 ( 0%) 0 ( 0%)
472014-07-13 13 0 ( 0%) 0 ( 0%)
482014-07-13 14 0 ( 0%) 0 ( 0%)
492014-07-13 15 0 ( 0%) 0 ( 0%)
502014-07-13 16 0 ( 0%) 0 ( 0%)
512014-07-13 17 0 ( 0%) 0 ( 0%)
522014-07-13 18 0 ( 0%) 0 ( 0%)
532014-07-13 19 8 ( 72%) 3 ( 27%)
542014-07-13 20 8 (100%) 0 ( 0%)
552014-07-13 21 0 ( 0%) 0 ( 0%)
562014-07-13 22 0 ( 0%) 0 ( 0%)
572014-07-13 23 0 ( 0%) 0 ( 0%)
58
59Done. Report generated in 0 sec by sa-stats.pl, version 6256.

Понравилась статья, расскажи о ней друзьям, нажми кнопку!