6.0

Table Of Contents
SNMP Trap Notifications
The following table describes the information that is included in vCenter Server and ESXi trap notifications.
Table 283. SNMP Trap Notification Details
Trap Entry Description
Type The state vCenter Server is monitoring for the alarm. Options include Host Processor (or CPU)
usage, Host Memory usage, Host State, Virtual Machine Processor (or CPU) usage, Virtual
Machine Memory usage, Virtual Machine State, Virtual Machine Heartbeat.
Name The name of the host or virtual machine that triggers the alarm.
Old Status The alarm status before the alarm was triggered.
New Status The alarm status when the alarm is triggered.
Object Value The object value when the alarm is triggered.
Run a Script or a Command as an Alarm Action
You can configure an alarm to run a script or a command when the alarm is triggered.
Use the alarm environment variables to define complex scripts and attach them to multiple alarms or
inventory objects. For example, you can write a script that enters the following trouble ticket information
into an external system when an alarm is triggered:
n
Alarm name
n
Object on which the alarm was triggered
n
Event that triggered the alarm
n
Alarm trigger values
When you write the script, include the following environment variables in the script:
n
VMWARE_ALARM_NAME
n
VMWARE_ALARM_TARGET_NAME
n
VMWARE_ALARM_EVENTDESCRIPTION
n
VMWARE_ALARM_ALARMVALUE
You can attach the script to any alarm on any object without changing the script.
Prerequisites
Required Privilege: Alarms.Create alarm or Alarms.Modify alarm
Procedure
1 In the Actions tab of the Alarm Settings dialog box, click Add to add an action.
2 In the Actions column, select Run a command from the drop-down menu.
vSphere Administration with the vSphere Client
418 VMware, Inc.