Unable to send a notification email from Alarm action if multiple emails are separated by semicolon in VCSA 6.5
search cancel

Unable to send a notification email from Alarm action if multiple emails are separated by semicolon in VCSA 6.5

book

Article ID: 314028

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:
When an alarm action is set up using PowerCLI to send notification emails to multiple email addresses, the emails are not sent to the expected recipients when the alarm gets triggered in vCenter Server Appliance.

Environment

VMware vCenter Server Appliance 6.5.x

Cause

When setting up multiple emails to alarm action using PowerCLI, the emails are added to the "To" field semicolon (;) as separator by default. However, VMware vCenter Server Appliance (VCSA) 6.5 only accepts comma (,) as separator and that causes the emails not to be sent successfully.

Resolution

To resolve this issue:
  1. Replace semicolon (;) with comma (,) manually in vCenter alarms action configuration. Email alarm notifications will be sent successfully.
  2. Set an individual alarm action for every individual email using the following sample script:

    -----------------------------------
    $emails = @('[email protected]', '[email protected]' )
    foreach ($email in $emails)
    {
    Get-AlarmDefinition -Name "Storage DRS recommendation" | New-AlarmAction -Email -To $email
    }
    -----------------------------------


Additional Information