Configuring and testing alerts in VMware vCenter Server Heartbeat
search cancel

Configuring and testing alerts in VMware vCenter Server Heartbeat

book

Article ID: 309029

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides information about configuring alerts and setting reporting levels using the VMware vCenter Server Heartbeat Console.


Symptoms:


Environment

VMware vCenter Server Heartbeat 5.5.x
VMware vCenter Server Heartbeat 6.3.x

Resolution

Configuring Alerts

To configure alerts:
  1. Click Advanced > Alerts > Configuration.
  2. Critical red alerts and less serious yellow alerts can be manually reconfigured. The alerts are preconfigured with the recommended alerting levels. Reconfigure alerts to yellow or red by selecting Trigger Yellow Alert or Trigger Red Alert.
  3. Click Apply to save your new configuration.
  4. Reset resets the screen to the last changes applied.

Setting up Alerts Reporting

To setup alerts reporting:
  1. When you are satisfied with the trigger levels, click the Reporting tab in the Standard mode to configure the recipients of emailed alerts. Emails can be sent for both red and yellow alert triggers.
  2. To configure alerts, Send mail on red alert and/or Send mail on yellow alert must be selected.
  3. Enter the recipients fully qualified email addresses into rows in the table Mail Recipients for the trigger level alert.
    • Click Add Row.
    • Delete an email address from the tables by clicking Delete Row.
    • Clear an entire recipient list table by clicking Trash Can.

The Subject and Content text fields offer a template for email messages that is sent to recipients. They can be customized and allow the use of VMware vCenter Server Heartbeat specific informational variables as detailed below:

Variable

Value

$EventId

Id of trigger event

$EventName

Name of event

$EventDetail

Detail message for event

$EventHostName

The name of the host where the event took place

$EventHostRole

The role (active/passive) of the server where the event took place

$EventHostId

The identity(Primary/Secondary)of the server where the event took place

$EventTime

The time at which event occurred

Although you can configure alerts to suit your requirements, VMware recommends that the preconfigured content remains the same and any adjustments are made in addition.
An alternative method of issuing e-mail alerts is to run a command, by selecting Run Command. A Run Command can be either a script or a command line argument to run on the alert trigger.
When the alert recipients and/or actions to be run have been defined, click Apply to save the changes and apply the notification rules.
Reset resets the screen to the last changes applied.

Testing Alerts

Alert reporting may be tested without the need to trigger an alert (and therefore jeopardize the operation of the active Server), by clicking the Test Alert Reporting button.
To test alerts:
  1. Configure the mail host, send mail address, and authentication configuration via VMware vCenter Server Heartbeat Console Advanced > System > Configuration. Click on Apply.
  2. Click Alerts > Configuration and check that Testing Alert Reporting is selected.
  3. Click Alerts > Reporting. Click Test Alert Reporting.
  4. Check the mail accounts for appropriate messages.

A mis-configured or unreachable mail system prevents email alerts from being sent and a warning event is generated in the VMware vCenter Server Heartbeat Console Log Panel like:
Importance : Warning
Type : Sending mail failed
Source : Primary (while active)

Unable to mail alert message Could not connect to SMTP host: 192.168.27.27, port: 25;
nested exception is:
java.net.NoRouteToHostException: No route to host: connect


Additional Information

The VMware vCenter Server Heartbeat Console allows you to configure alerts and customize the actions taken by VMware vCenter Server Heartbeat when the alert is triggered.
vCSHB-Ref-517
VMware vCenter Server Heartbeat でアラートを構成およびテストする
在 VMware vCenter Server Heartbeat 中配置和测试警示