OpenNMS---郵件通知配置筆記--開源監控軟件

OpenNMS郵件通知配置

    打開通知功能:Admin頁面中Operations下放的Notification Status 選項設置爲On,點擊Update。
    1.郵件服務器的配置:
        配置文件:$opennms_home/etc/javamail-configuration.properties
        配置方案:
            org.opennms.core.utils.useJMTA=false       //是否使用JMTA,如果適用JMTA則將使用本機代理髮送郵件
            org.opennms.core.utils.mailHost=mail.360buy.com //郵件服務器地址
            org.opennms.core.utils.transport=smtp //發送協議
            org.opennms.core.utils.smtpport=25 //SMTP協議端口
            org.opennms.core.utils.debug=true   //打印錯誤日誌,日誌文件 $opennms_home//logs/daemon/notifd.log
            org.opennms.core.utils.smtpssl.enable=true //使用SSL鏈接服務器,starttls和SSL需根據郵件服務器來設置
            org.opennms.core.utils.quitwait=true //等待服務器返回
            org.opennms.core.utils.authenticate=true //啓用驗證
            [email protected]
            org.opennms.core.utils.authenticatePassword=*******your password*****
            org.opennms.core.utils.starttls.enable=false //使用TLS連接服務器,使用京東郵件服務器應設置爲false。
            org.opennms.core.utils.messageContentType=text/html
            org.opennms.core.utils.charset=UTF-8
            [email protected] //郵件中顯示的發送者,須同authenticateUser一致。
    2.用戶配置:
            webUI配置路徑:Admin->Configure Users, Groups and Roles->Configure Users->AddNew User->
            輸入ID和password->在用戶信息中輸入Email(用戶的郵件接收地址)->Finsh
            如果需要修改用戶信息,可以在Configure Users中點擊Modify按鈕修改。
    3.Destination Paths配置(發送路徑,配置需要接收通知的羣組、用戶、角色和E-mail)
            webUI配置路徑:Admin->Configure Notifications->Configure Destination Paths->New path
            ->輸入路徑名稱(如:testEmail-path)->點擊Initial Targets右邊的Edit,配置需要接受郵件的目標;
            在這個頁面中共有四個個選框:User、Groups、Roles、Email選中需要接收郵件的目標即可。Email中
            可以添加任意郵箱來接收郵件。->next配置用戶之間的發送延遲時間->next發送方式,選擇javaEmail即用郵件發送。
            配置文件:$opennms_home/etc/destinationPaths.xml也可在配置文件中配置路徑
    4.event配置
            WebUI配置路徑:Admin->Configure Notifications->Configure Event Notifications->點擊上方的Add New Event Notification 
            添加新的Event->在events列表中選擇一個事件->Next->Skip results validation->編輯事件郵件內容,在choose A path 中選擇一個發送路徑。->Finish
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章