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 //启用验证
org.opennms.core.utils.authenticateUser=guwenwu@360buy.com
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
org.opennms.core.utils.fromAddress=guwenwu@360buy.com //邮件中显示的发送者,须同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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值