How to configure email alert settings in vCenter 6.7

To configure email alert settings in VMware vCenter 6.7 please follow the steps that are listed below. This article relates to configure VMware vCenter 6.7 Update 3 to send you email alerts using a Gmail account, and I have to say that given the fact that receiving email alerts is a must for System Admins, specially when we are talking about a core infrastructure component like the nuclear reactor of your hypervisors, vCenter, it looks like VMware has not made straight forward for this configuration to happen. Anyway, it may be only my option, and let's go ahead and do this

 

1) Configure a Gmail account

2) Set Mail Server settings in vCenter

3) Configure smtp settings in vCenter

4) Configure vCenter alarms

 

1) Configure a Gmail account

First of all, create or use a dedicated email account to send you email alerts. You should surely know by now that it is compulsory by Gmail to enable 2FA (Second Factor Authentication) on every Gmail account that you have. Only after 2FA is enabled, you can create an "App Password" that you can use for that account to send you emails via 3rd party systems, like on this case vCenter, so go ahead an create a Mail >> Windows Computer app password if you haven't done that already

 Generate app password on your Gmail account

2) Set Mail Server settings in vCenter

Navigate to your vCenter server >> Configure >> General, and set the "Mail server" entry to: smtp.gmail.com

 How to configure email alert settings in vCenter 6.7

 

 

3) Configure smtp settings in vCenter

Unfortunately, we also need to edit the "Advanced Settings" and navigate through the 704 items until we reach pages 65 and 66 to configure this settings:

  • mail.smtp.password = the-app-password-you-previously-generated-no-space-in-between-the-characters
  • mail.smtp.port = 587
  • mail.smtp.username = your-dedicated-email-address, on my case I choose "This email address is being protected from spambots. You need JavaScript enabled to view it."

 

Edit Advanced vCenter Server Settings page 65

 

Edit Advanced vCenter Server Settings page 66

This is how your Advanced vCenter Server settings should look like to configure email alert settings

 

4) Configure vCenter alarms

Now that we got it all setup, we have to go through the painful process of configuring each of the alarms "individually"...yep, it looks like there is no other way to do it but by enabling or disabling each one of the 285 Alarm Definitions that comes with VCSA 6.7; they all can be found in VCSA >> Configure >> Alarm Definitions

VCSA Alarm Definitions

 

The alarm I suggest you to visit and enable (by alphabetic order of the alarm name) are:

  • Datastore capacity alarm (Datastore)
  • Datastore usage on disk (Datastore)
  • Health status changed alarm (vCenter Server)
  • Host Baseboard Management Controller status (Host)
  • Host battery status (Host)
  • Host connection and power state (Host)
  • Host connection failure (Host)
  • Host CPU usage (Host)
  • Host error (Host)
  • Host hardware fan status (Host)
  • Host hardware power status (Host)
  • Host hardware sensor state (Host)
  • Host hardware system board status (Host)
  • Host hardware temperature status (Host)
  • Host hardware voltage (Host)
  • Host memory status (Host)
  • Host memory usage (Host)
  • Host processor status (Host)
  • Insufficient vSphere HA failover resources (Cluster)
  • Network connectivity lost (Host)
  • Network uplink redundancy degraded (Host)
  • Network uplink redundancy lost (Host)
  • vCenter HA Cluster Alarm (vCenter Server)
  • vCenter HA Service Health Alarm (vCenter Server)
  • vCenter Server Health Alarm (vCenter Server)
  • Virtual machine Consolidation Needed status (Virtual Machine)
  • Virtual machine CPU usage (Virtual Machine)
  • Virtual machine error (Virtual Machine)
  • Virtual machine memory usage (Virtual Machine)
  • vSphere HA host status (Host)

For each one of these alarms, edit the settings and follow the wizard to configure them, switching the "Send email notifications" on and pasting in the "Email to" field the address that you want to be alerted to when the alarm become active

 Edit alarm definition

 

Hope all this help

If you have enjoyed reading this article about How to configure email alert settings in vCenter 6.7, you might like this other one too:

 

London, August 2022

 

 

References

Configure Mail Sender Settings https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.vcenterhost.doc/GUID-467DA288-7844-48F5-BB44-99DE6F6160A4.html

 

 

 

Print Friendly, PDF & Email

Comments powered by CComment