Skip to content

Alert Emails

Ronen Botzer edited this page May 18, 2020 · 1 revision

AMC can send email alerts for the monitored clusters. The email server should accept username and password access.

This configuration is optional and available only in AMC version 4.

Contents

Configuration fields

The alert email configuration is its own separate context in the configuration file.

For details on the configuration file, see Configure AMC.

Below are the configuration fields for alert email.

[mailer]
template_path 		= "/path/to/email/templates"
host          		= "domainnameOfSMTPserver"
port          		= "portOfSMTPserver"
 # The user field is also the "From:" address
 # of the alert emails. This field *must* have a value.
user          		= "nameOfUserForLoginToSMTPserver"
password      		= "passwordOfThatUser"
 # Comma-separated values of email addresses of email recipient
send_to       		= ["[email protected]", "[email protected]"]
 # In case of an invalid certificate, true = continue processing; false = stop processing
accept_invalid_cert	= trueOrfalse

Explanations and examples of configuration fields

The values below are examples that do not match your own configuration.

template_path - the directory containing the templates for the emails.

template_path = "/home/amc/mailer/templates"

host, port - the host name and port of the SMTP server.

host = "smtp.outlook.com"
port = 587

user, password - the user name and password at the SMTP server. The user name must be in an email address format.

The user field is also the "From:" address of the alert emails. This field must have a value.

user     = "[email protected]"
password = "user123"

send_to - the list of email addresses to send out alerts to.

accept_invalid_cert - if true, continue sending mail even if the certificate is invalid.

accept_invalid_cert = true