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

Ambari email alerts are not working

Ambari email alerts are not working

Explorer

Name: Test Email Critical

Groups: All (of your choice)

Severity: All (of your choice)

Method: EMAIL

Email To: Your@companyEmail.com

SMTP Server: smtp.gmail.com

SMTP Port: 465

Email From : yourGmailId@gmail.com

Use authentication: YES (checkbox)

Username: yourGmailId@gmail.com

Password: $YOUR_GMAIL_PWD

Start TLS: YES (checkbox)

 

i gave all the above information for alert setup. Still i i dint get emails. 

1 REPLY 1

Re: Ambari email alerts are not working

Explorer

I am getting this error in log file


2020-05-06 04:47:53,605 INFO [AlertNoticeDispatchService RUNNING] AlertNoticeDispatchService:279 - There are 28 pending alert notices about to be dispatched...
2020-05-06 04:47:53,627 INFO [alert-dispatch-27] EmailDispatcher:94 - Sending email: Notification{ type=ALERT, subject=Alert Summary: OK[14], Warning[0], Critical[0], Unknown[0]}
2020-05-06 04:48:03,962 ERROR [alert-dispatch-27] EmailDispatcher:172 - Unable to dispatch notification via Email
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, 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:386)
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)