您的位置:首页 > 运维架构

OpenNMS---邮件通知配置笔记--开源监控软件

2012-07-28 22:06 411 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: