Support Questions
Find answers, ask questions, and share your expertise

ambari alerts notifications

ambari alerts notifications

Even after configuring all the required properties on the ambari alert notificattions, we are not getting alerts through email. IS there any specific log file i need to look at for the errors.

8 REPLIES 8

Re: ambari alerts notifications

Re: ambari alerts notifications

@ARUNKUMAR RAMASAMY

Are you following the steps similar to what is mentioned in the following example:

https://community.hortonworks.com/articles/40361/how-to-troubleshoot-ambari-alerts-notification.html...

Also do you see any message in the ambari-server.log as soon as the alert is being triggered. It should log the reason of failure.

Re: ambari alerts notifications

@Joy

Thanks for your response,

I do see the following in the logs. but not sure what is the reason.

javax.mail.MessagingException: Could not connect to SMTP host: emailserver, port: 465, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2041) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697) at javax.mail.Service.connect(Service.java:364) at javax.mail.Service.connect(Service.java:245) at javax.mail.Service.connect(Service.java:194) at javax.mail.Transport.send0(Transport.java:253) at javax.mail.Transport.send(Transport.java:124) at org.apache.ambari.server.notifications.dispatchers.EmailDispatcher.dispatch(EmailDispatcher.java:160) at org.apache.ambari.server.notifications.DispatchRunnable.run(DispatchRunnable.java:58) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Re: ambari alerts notifications

Super Collaborator

Your error indicates that Ambari can't connect to your SMTP server. From your Ambari host, you can double check your settings:

> telnet emailserver 465
EHLO localhost
250-localhost Hello localhost (localhost [0:0:0:0:0:0:0:1])
250-PIPELINING
250 ENHANCEDSTATUSCODES

Port 465 is typically the SSL SMTP port, so you're going to need to specify some additional properties when you created your alert target in the Ambari Web UI. Otherwise it won't know how to connect over SSL:

mail.smtp.ssl.enable : true

Re: ambari alerts notifications

Setting mail.smtp.ssl.enable : true

helped in resolving "javax.mail.MessagingException: Could not connect to SMTP host: emailserver, port: 465, response: -1 at" issue.

Re: ambari alerts notifications

Explorer

where you can update this configuration

mail.smtp.ssl.enable : true

Re: ambari alerts notifications

Explorer

@Sandeep nemuri

Re: ambari alerts notifications

Explorer

@Sandeep nemuri