1 頁 (共 1 頁)

Sendmail & Mailscanner

發表於 : 2015-02-26, 10:29
C.K.
01.jpg
此一樣式可偵測
Mailscanner - Spam
Mailscanner - Viruses
Sendmail - Mess Recv
Sendmail - Mess Send

下載壓縮檔解壓後將
count_recv.sh
count_sent.sh
count_viruses.sh
count_spam.sh

上傳到要偵測的主機上/opt裡

並修改count_recv.sh、count_sent.sh裡的search_domain_1跟search_domain_2

修改/etc/snmp/snmpd.conf

加入下面
# Count the number of received messages in the last 5 minutes
exec .1.3.6.1.4.100.5 SendMailRecv /bin/sh /opt/count_recv.sh
# Count the number of sent messages in the last 5 minutes
exec .1.3.6.1.4.100.6 SendMailSend /bin/sh /opt/count_sent.sh
# Count the number of SPAM messages in the last 5 minutes
exec .1.3.6.1.4.100.2 MailscannerSpam /bin/sh /opt/count_spam.sh
# Count the number of viruses detected in the last 5 minutes
exec .1.3.6.1.4.100.4 MailscannerViruses /bin/sh /opt/count_viruses.sh

並將各樣版xml檔案匯入即可新增資料來源跟圖片