You can define actions that the system performs when the alarm is triggered or changes status. You can enable and disable alarms and alarm actions independently of each other.
About this task
vCenter Server can perform alarm actions in response to triggered alarms.
Verify that you have navigated to the Actions page of the alarm definition wizard. See View and Edit Alarm Settings in the vSphere Web Client.
- Select the action that you want to change, or click the Add icon to add one.
- Click in the Action column, and select an option from the drop-down menu.
- Click in the Configuration column, and enter configuration information for actions that require additional information:
Send a notification email
Type email addresses, separated by a comma.
Complete the virtual machine migration wizard.
Run a command
Take one of the following actions and press Enter:
If the command is a .exe file, enter the full path name of the command and include any parameters. For example, to run the cmd.exe command in the C:\tools directory, with the alarmName and targetName parameters, type: c:\tools\cmd.exe alarmName targetName
If the command is a .bat file, enter the full path name of the command as an argument to the c:\windows\system32\cmd.exe command. Include any parameters. For example, to run the cmd.bat command in the C:\tools directory, with the alarmName and targetName parameters, type: c:\windows\system32\cmd.exe /c c:\tools\cmd.bat alarmName targetName
For .bat files, the command and its parameters must be formatted into one string.
- (Optional) For each alarm status change column, select whether the alarm should be triggered when the alarm status changes.
Some actions do not support re-triggering when alarm status change.
- For repeat actions, select the time interval for the repetition.
- Click Finish.
You configured the alarm general settings, triggers, and actions. The alarm monitors the object on which it is defined, as well as child objects.