Hi All,
From last week I just started to use OpenNMS. It’s such a wonderful web based network discovery tool. It has lot of features then other NMS products.
I downloaded the version 1.5.91 from OpenNMS download server. Compiled with maven and added with eclipse workbench. Every thing works fine except mail notification. After some RND on this, finally i solved the problem. I used gmail smtp server.
All open NMS configurations related files are found under etc folder of openNMS. To enable mail notification we need to do some changes in the configuration files.
Edit Javamail-configuration.xml to set SMTP information
org.opennms.core.utils.fromAddress=frommailid@gmail.com
org.opennms.core.utils.useJMTA=false
org.opennms.core.utils.transport=smtp
org.opennms.core.utils.mailHost=smtp.gmail.com
org.opennms.core.utils.smtpport=587
org.opennms.core.utils.smtpssl.enable=false
org.opennms.core.utils.authenticate=true
org.opennms.core.utils.authenticateUser=tomailid@gmail.com
org.opennms.core.utils.authenticatePassword=password
org.opennms.core.utils.starttls.enable=true
org.opennms.core.utils.messageContentType=text/html
org.opennms.core.utils.charset=UTF-8
Edit notifd-configuration.xml to enable notification
status=”on”
Example:
notifd-configuration
status=“on”
pages-sent=”SELECT * FROM notifications”
next-notif-id=”SELECT nextval(’notifynxtid’)”
next-group-id=”SELECT nextval(’notifygrpid’)”
User mail configuration for notification:
As per your need you can configure the duty schedules.
Example:
Group configuration for notify:
As per your need you can configure the Duty schedules.
Example:
When my node is down, i got a email notification. please see the below mail.
No comments:
Post a Comment