Search the VMware Knowledge Base (KB)
View by Article ID

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

  • 1 Ratings

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.

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 = @('email1@ourdomain.com', 'email2@ourdomain.com' )
    foreach ($email in $emails)
    {
    Get-AlarmDefinition -Name "Storage DRS recommendation" | New-AlarmAction -Email -To $email
    }
    -----------------------------------

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 1 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 1 Ratings
Actions
KB: