6.3

Table Of Contents
Reference Guide
62 VMware, Inc.
Red,Yellow,orGreenalerttriggersemailtothesameordifferentrecipients.Theprocesstoaddrecipientsis
thesameforalltriggerlevels.
1ClicktheOnRedAlert,OnYellowAlert,orOnGreenAlerttabandselectSendmail.
2 Selectthefrequencyfortheemailtobesent.
3Click
Addandtypeafullyqualifiedemailaddressforeachrecipientfortherespectivetriggerlevelalert.
4Todeletearecipient,selecttherecipient’semailaddressintheMailRecipientspaneandclickRemove.
UsethepreconfiguredsubjectandcontentofthealertemailsforRed,Yellow,orGreenalerts.Youcanadd
contentasrequired.VMwarerecommendsleavingthepreconfiguredsubjectandcontentandifnecessary,add
additionalinformation.
Anothermethodtosendanalertnotificationis:
1 SelectRunCommandunderthepertinentalertstate.
2 Browsetothescripttorunoruseacommandlineargumenttorunonthe
alerttrigger.
ThepreconfiguredWScriptcommandcreatesaneventintheApplicationEventLogandcanbe
customizedtoincludevCenterServerHeartbeatspecificinformationalvariablesasdetailedinTable 91.
ThefollowingcommandlineargumentcreatesaneventintheApplicationEventLoglistingthemachine
thatcausedthealert,
thetimethealertoccurred,thename,anddetailsofthealert:
WScript //T:10 $(installdir)\bin\alert.vbs "VMware vCenter Server Heartbeat alert on
$EventHost at $EventTime because $EventName ($EventDetail). Event Id is $EventId"
3ClickOK.
Test Alert Reporting
ClickTestAlertReportingtorunatestalertemail.Thiswayyoucanavoidtriggeringanactualalertduring
theoperationoftheactiveserver.
Configure Event Log Files
vCenterServerHeartbeatallowsyoutoconfigureEventLogfilestodirectwherethelogfileisstoredandthe
numberofeventstoberecorded.
To configure default settings for log files
1ClickLogs:ConfigureandselecttheGeneraltabtodefinethefilenameandpathoftheexported
commaseparatedvariable(CSV)file.
2Typeapath
andfilenameoruseBrowseandnavigatethefile.
3Adjustthelengthoftheeventlisttomeetyourneedsbyincreasingordecreasingthevalue(thedefaultis
torecord300events)intheRecordatmostfield.
4ClickOK.
Configure Log File Email Recipients
UsevCenterServerHeartbeattoemailthelogtospecifiedpersonnelatpredeterminedintervals.
Table 9-1. Script Variables
Variable Value
$EventId Idofeventaslistedabove
$EventName Humanreadablenameofevent
$EventDetail Detailmessageforevent
$EventTime Timeatwhicheventoccurred