6.6

Table Of Contents
3 Click Add and type a fully qualified email address for each recipient for the respective trigger level alert.
4 To delete a recipient, select the recipients email address in the Mail Recipients pane and click Remove.
Use the preconfigured subject and content for alert emails for Red, Yellow, or Green alerts.You may add
content as required.VMware recommends leaving the preconfigured subject and content and if necessary,
add additional information.
Note In the Configure Alerts pane, On Red Alert, On Yellow Alert and On Green Alert tabs allow the
frequency, recipient, and text of emails to be configured.
When Send mail is selected, three alternatives are available:
Always will always send an email if this alert type is triggered.
Once will send an email once for each triggered alert. An email will not be sent again for the same
triggered alert, until vCenter Server Heartbeat is re-started
Once per within the time period selected, an email will only be sent once for the same triggered
alert, subsequent emails for that trigger will be suppressed. Once the time period has expired, an
email will be sent if the same alert is triggered
Note that Once and Once Per options will operate per individual triggered Alert. Multiple emails will be
sent, but only if the event being alerted is different.
Configuring Alert Email Triggers (Alternate Method)
vCenter Server Heartbeat allows an alternate method to configure sending alert notifications that allow the
Administrator to create an event in the Application Event Log which can be customized to include vCenter
Server Heartbeat specific information variables.
Procedure
1 Select Run Command under the pertinent alert state.
2 Browse to the script to run or use a command line argument to run on the alert trigger.
The preconfigured WScript command creates an event in the Application Event Log and can be customized
to include vCenter Server Heartbeat specific informational variables as shown in Table 9-1.
Table 3- 1. Customized Information Variables
ValueVariable
Id of event as listed above$EventId
Human-readable name of event$EventName
Detail message for event$EventDetail
Time at which event occurred$EventTime
The following command line argument creates an event in the Application Event Log listing the machine
that caused the alert, time the alert occurred, name, and details of the alert:
WScript //T:10 $(installdir)\bin\alert.vbs "VMware vCenter Server Heartbeat alert on $EventHost at $EventTime because
$EventName ($EventDetail). Event Id is $EventId"
3 Click OK.
VMware, Inc. 69
Chapter 3 Managing vCenter Server Heartbeat