Specifications

Basic System Administration
322 VMware, Inc.
{oldStatus} — alarm status before it is triggered
{newStatus} — alarm status after it is triggered
{target} — inventory object as triggering alarm
Example scripts:
"c:\windows\system32\cmd.exe /c c:\MyAlarmProcess.bat {targetName}
{alarmName}"
Twoalarmtriggeringparametersarepassedtothebackfile.Thefirst
parameteristhenameoftheentity,andthesecondisthenameofthealarm.
WhentheentitynameisMyEntityandalarmnameisMyAlarm,thescript
becomes"c:\windows\system32\cmd.exe /c c:\MyAlarmProcess.bat
MyEntity MyAlarm".
"d:\tools\alarm.exe '{targetName}' '{alarmName}' {newStatus}"
Threealarmtriggeringparametersarepassedtotheexecutionfile.Thefirstis
theentityname,thesecondisthealarmname,andthethirdisthealarmstatus
aftertriggering.Whentheentitynameismy dummy vm,thealarmnameismy
test alarm,andthenewstatusisred,the
scriptbecomes:
"d:\tools\alarm.exe ‘my dummy vm’ ‘my test alarm’ red”
Poweron,Poweroff,Suspend,orResetthevirtualmachine.
Theseapplyonlytoavirtualmachinealarm.
12 Tocompletethealarm,clickOK.
VirtualCenterverifiestheconfigurationofthealarmandaddsthealarmtothelist
ofalarmsfortheselectedobject.
NoticethattheDefinedIncolumnindicates
whereintheinventoryhierarchythe
alarmisdefined.
Editing Alarms
Alarmscanbemodified,butyoumusteditthematthehierarchicallevelwherethey
werecreated.Asimplechangeistoenableordisablethealarm.Ifanalarmisdisabled,
anXappearsonthealarmlistingicon.
To edit an existing alarm
1FromtheVIClientconnectedtoaVirtualCenterServer,clickthe
Inventorybutton
inthenavigationbar.Expandtheinventoryasneeded,clicktheAlarmstab,and
clicktheDefinitionsbutton.