Sendmail & Mailscanner

Scripts and Templates
任何不錯的Scripts或者自己設定的Templates都可以來這發表
回覆文章
頭像
C.K.
Site Admin
文章: 23
註冊時間: 2015-02-25, 16:13

Sendmail & Mailscanner

文章 C.K. » 2015-02-26, 10:29

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檔案匯入即可新增資料來源跟圖片
您沒有權限檢視這篇文章所附加的檔案。
回覆文章