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
打开通知功能: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
相关文章推荐
- OpenNMS阀值、事件及警告配置笔记--开源监控软件
- OpenNMS--SNMP安装及配置(RRD)--开源监控软件
- OpenNMS在ubuntu12.04和centos6.2下的安装--开源监控软件
- 企业级监控软件Zabbix搭建部署之使用mutt+msmtp配置Zabbix邮件报警 推荐
- 一个开源软件作者和邮件通知奋斗的血泪史
- OpenNMS通知配置(发送邮件)
- SCOM 2007 R2监控系统安装部署(六)配置SCOM邮件通知 推荐
- Cacti 开源监控软件安装、配置
- 开源监控软件的配置:cacti,nagios
- 监控软件Nagios的服务器端在Linux系统上的安装和配置方法
- Zabbix监控配置 邮件 微信告警
- 开源的监控软件
- Jenkins上配置Robot Framework测试邮件通知模板
- Nagios远程监控软件的安装与配置详解
- Jenkins 配置邮件通知
- puppet开源的软件自动化配置和部署工具——本质就是CS,服务端统一管理配置
- 监控之--Nagios监控远程windows主机及邮件告警功能的配置
- 几个常用网络/服务器监控开源软件
- 本地搭建gitlab环境,配置邮件通知和基本操作
- 监控软件nagios之配置文件详解