Configuring Alerts
To configure alerts:
- Click Advanced > Alerts > Configuration.
- 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.
- Click Apply to save your new configuration.
- Reset resets the screen to the last changes applied.
Setting up Alerts Reporting
To setup alerts reporting:
- 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.
- To configure alerts, Send mail on red alert and/or Send mail on yellow alert must be selected.
- 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:
- Configure the mail host, send mail address, and authentication configuration via VMware vCenter Server Heartbeat Console Advanced > System > Configuration. Click on Apply.
- Click Alerts > Configuration and check that Testing Alert Reporting is selected.
- Click Alerts > Reporting. Click Test Alert Reporting.
- 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