6.5

Table Of Contents
Configuring Alert Email Triggers (Alternate Method)
vCenter Server Heartbeat allows an alternate method to congure sending an alert notication that allows the
Administrator to create an event in the Application Event Log that can be customized to include vCenter Server
Heartbeat specic 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 precongured WScript command creates an event in the Application Event Log and can be customized
to include vCenter Server Heartbeat specic informational variables as shown in Table 9-1.
Table 9- 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, the time the alert occurred, the 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.
Testing Alert Reporting
vCenter Server Heartbeat allows you to test alert reporting without triggering an actual alert during the
operation of the active server.
Procedure
1 Navigate to the Logs page.
2 Click Test Alert Reporting.
A Test Alert email is sent to the congured email recipients.
Configuring Event Log Files
vCenter Server Heartbeat allows you to congure Event Log les to direct where the log le is stored and the
number of events to be recorded.
Procedure
1 Navigate to the Logs page and click Congure.
2
Select the General tab to dene the lename and path of the exported comma-separated variable (.CSV)
le.
VMware, Inc. 79
Chapter 9 Alerts and Events