How to configure Apache Ambari Email Alerts - hadoop

I am using Apache Ambari 2.7.3V. I am trying to configure Email Alerts. I have Followed the Below Link. But I am not getting any alerts To my Gmail. Below are my configurations
https://docs.cloudera.com/HDPDocuments/Ambari-2.7.4.0/managing-and-monitoring-ambari/content/amb_create_an_alert_notification.html
In Manage Alert Notifications I have configured All required configurations. like below.
Name: amabri Alerts
groups: All
Severity: WARNING, CRITICAL
Description : xxxxxxxx
METHOD: EMAIL
SMTP SERVER: smtp-relay.gmail.com
SMTP PORT : 587

I am not sure whether your issue has been resolved. But posting for other users' reference.
You need to set the app password to use Gmail SMTP. You have to enable two-step verification to enable the app password as below. In addition to that, the SMTP server for Gmail would be-smtp.gmail.com
.
If still, you are not getting emails then you can test the python script(from head node) here
and test the below:
Ssh to head node
Then edit the file -Sudo vi /etc/ambari-server/conf/log4j.properties
Modify - log4j.logger.alerts=INFO,alerts to log4j.logger.alerts=DEBUG,alerts
Add below line to Alerts section -
log4j.logger.org.apache.ambari.server.notifications.dispatchers=DEBUG,alerts
Save the file and restart ambari server service using usr/lib/hdinsight-common/scripts/restart_ambari_server.sh
Try to stop zookeeper on any one of the node and check for the ambari-server.log and amabri-alerts.log.
In /var/log/ambari-server, check ambari-alerts.log and ambari-server.log after an alert was fired.

Related

Mandrill SMTP with Swiftmail in Laravel - works local, breaks on hosting

When users are registered Laravel fires of a welcome email using Swiftmail configured to use SMTP with Mandrill. With the existing config, this works perfectly on my local installation.
When moving to the production server (Unmanaged, CentOS with WHM/Cpanel), the first HELO fails, giving this error:
Swift_TransportException in AuthHandler.php line 181:
Failed to authenticate on SMTP server with username "info#mydomain.com" using 2 possible
authenticators
in AuthHandler.php line 181
at Swift_Transport_Esmtp_AuthHandler->afterEhlo(object(Swift_SmtpTransport)) in
EsmtpTransport.php line 307
All other questions I can find with this error are about Gmail needing to have it's authentication weakened to allow the connection. This is directly with Mandrill so such things can't be the issue.
I've already checked the correct port (578) is open - nmap says it is.
That the credentials in mail.php are valid - API key is correct, so is user information.
And that the server can access the remote server - I can telnet smtp.mandrillapp.com without issue.
I'm running out of things to test for to fix.
Any suggestions welcome, and thank you in advance!

Alert notices waiting to be dispatched

I am using Ambari 2.0 and trying to configure email alerts. In the Ambari server logs I can see the following message:
There are 5 alert notices waiting to be dispatched.
But I am not receiving any emails. Using Gmail SMTP configuration
smtp.gmail.com port 465. Is this a problem in the latest Ambari version?
Looks like you are hitting known bug...
Check BUG-30278 in the Ambari 2.0.0 Release notes http://docs.hortonworks.com/HDPDocuments/Ambari-2.0.0.0/bk_releasenotes_ambari_2.0.0/content/ambari_relnotes-2.0.0.0-known-issues.html
Workaround is to restart ambari-server.

How to configure email settings for Xcode Continuous Integration

I've set up Mavericks and OSX Server and have gotten Xcode bots up and running. There's a notification setting on each bot that allows you to email all committers on success or on failure. I've enabled that option and added an additional email address to test.
I can't seem to figure where to configure the email settings (i.e. smtp server, login, password). I've tried enabling Mail on OSX Server and set it to relay outgoing email through ISP, but that didn't seem to help.
Any guidance would be appreciated.
In order for emails to be sent out, all you have to do is set up postfix on your OSX machine.
Here's 2 guides I used when setting it up:
http://benjaminrojas.net/configuring-postfix-to-send-mail-from-mac-os-x-mountain-lion/
http://slashusr.wordpress.com/2012/02/14/enabling-postfix-for-outbound-relay-via-gmail-on-os-x-lion-11/
Afterwards, the emails got sent out without any issues.
These instructions are specific to the use case of a Xcode server running on a host not previously set up as a server.
Xcode Server runs as a system user and does not have access to user email settings.
When it generates emails, it uses the hostname and domain of the system and queues the email for delivery. Typically, unless the system has been set up as a server, the email goes nowhere from an email address unacceptable to ISPs and other mail providers.
OS X Server on Mavericks comes with a Mail server.
The following step set up the Mail server to relay all system mail to a mail service provider modifying the "From" address to a fixed name.
Step 1:
Use the "Server" application and examine the server configuration by clicking on your computer in the server section. Record the "Host Name:".
Step 2:
In /Library/Server/Mail/Config/postfix
Add to the file main.cf:
smtp_generic_map = hash:/Library/Server/Mail/Config/generic
Create a file generic:
#<host name> <user name>#<domain name>
Where <host name> is the host name recorded above and <user name>#<domain name> is the email address you want as the source of all emails from this host.
Step 3:
Using the "Server" application, set the email relay in Services>Mail.
Check Relay outgoing mail through ISP.
Click edit to set the parameters.
Step 4:
Turn on the mail server.
Step 5:
Test from terminal:
bash$ mail xxxx#xxxxx
Subject: Test
Test
.
bash$

What is the default email server for Teamcity 7.1?

Without any changes, email notifications stopped being sent from our continuous integration server which is a Teamcity 7.1 server. Up to now I've just used the default teamcity email configuration, which was this:
SMTP host: mail
SMTP port: 25
Send email messages from: Teamcity
SMTP login: <blank>
SMTP password: <blank>
Secure connection: none
Worked fine for last year or so. Now I'm trying to diagnose what is wrong, but I don't really know what the above configuration is doing... Is it pointing to a built-in mail server that is bundled with Teamcity? Is it pointing to the company's exchange server? Something else?
Teamcity does not have any bundled mail servers. This configuration point to your company's SMTP server. By occasion, SMTP server's name is 'mail'. So TC tries to connect to mail:25 and send messages 'from' 'Teamcity'
Please check if SMTP server's authentication settings were modified (e.g., anonymous access is now forbidden). Also please check 'teamcity-server.log' for error messages related to sending notifications.

Where do you set up email settings in teamcity?

I am VERY new with teamcity so please bear with me
I set up an email notifier to let me know when a build has failed, but TeamCity is reporting the following error:
Failed to send email notification via
SMTP server mail, due to error:
Unknown SMTP host: mail; nested
exception is:
java.net.UnknownHostException: mail
For the life of me, I cannot find where to configure the mail server settings. I don't even want it to use an SMTP server, but I don't see any options for this anywhere.
Option Description
------ ----------
SMTP host Specify the SMTP host name.
SMTP port Specify the SMTP port number.
Send messages from Specify the email address, from which notification messages will be sent to the user.
SMTP login Specify the SMTP login name, if any.
SMTP password Specify the SMTP password.
Use TLS (SSL) Select this option to secure your SMTP connection with TLS.
(This feature is only available in TeamCity 3.1+)
Test connection Click this button to establish a connection with the specified SMTP host.
Save Click this button to save changes and close the page.
source: http://www.jetbrains.net/confluence/display/TCD3/Email+and+Jabber+Notifier+Settings
You can configure your email settings under Administration - Server Configuration - Email Notifier..
Sumeru's answer (https://stackoverflow.com/a/825701/86627) describes the mail account you need to set in order for TeamCity to be able to send email notifications. The actual notifications are sent on a per-user base. Each user can define the notificatinos they wish to receive. In teamCity Professional 7x You can do this under:
Username/My Settings & tools/Watched Builds and Notifications/Email Notifier

Resources