If the alarm was triggered by an event, the information in
Table 21-20
is also included in the body of the email.
Table 21-20.
Event Details in Email
Detail
Description
Event Details
VMODL event type name.
Summary
Alarm summary, including the event type, alarm name, and target object.
Date
Time and date the alarm was triggered.
UserName
Person who initiated the action that caused the event to be created. Events caused by an
internal system activity do not have a UserName value.
Host
Host on which the alarm was triggered.
Resource Pool
Resource pool on which the alarm was triggered.
Datacenter
Datacenter on which the alarm was triggered.
Arguments
Arguments passed with the alarm and their values.
Running Scripts as Alarm Actions
You can write scripts and attach them to alarms so that when the alarm triggers, the script runs.
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.
Alarm Environment Variables
To simplify script configuration for alarm actions, VMware provides environment variables for VMware
alarms.
Table 21-21
lists the default environment variables defined for alarms. Use these variables to define more
complex scripts and attach them to multiple alarms or inventory objects so the action occurs when the alarm
triggers.
Table 21-21.
Alarm Environment Variables
Variable Name
Variable Description
Supported Alarm
Type
VMWARE_ALARM_NAME
Name of the triggered alarm.
Condition, State,
Event
VMWARE_ALARM_ID
MOID of the triggered alarm.
Condition, State,
Event
vSphere Basic System Administration
246
VMware, Inc.
Summary of Contents for 4817V62 - vSphere - PC
Page 13: ...Getting Started VMware Inc 13...
Page 14: ...vSphere Basic System Administration 14 VMware Inc...
Page 24: ...vSphere Basic System Administration 24 VMware Inc...
Page 38: ...vSphere Basic System Administration 38 VMware Inc...
Page 76: ...vSphere Basic System Administration 76 VMware Inc...
Page 85: ...Virtual Machine Management VMware Inc 85...
Page 86: ...vSphere Basic System Administration 86 VMware Inc...
Page 98: ...vSphere Basic System Administration 98 VMware Inc...
Page 131: ...3 Click OK Chapter 11 Creating Virtual Machines VMware Inc 131...
Page 132: ...vSphere Basic System Administration 132 VMware Inc...
Page 140: ...vSphere Basic System Administration 140 VMware Inc...
Page 172: ...vSphere Basic System Administration 172 VMware Inc...
Page 182: ...vSphere Basic System Administration 182 VMware Inc...
Page 200: ...vSphere Basic System Administration 200 VMware Inc...
Page 207: ...System Administration VMware Inc 207...
Page 208: ...vSphere Basic System Administration 208 VMware Inc...
Page 278: ...vSphere Basic System Administration 278 VMware Inc...
Page 289: ...Appendixes VMware Inc 289...
Page 290: ...vSphere Basic System Administration 290 VMware Inc...
Page 324: ...vSphere Basic System Administration 324 VMware Inc...
Page 364: ...vSphere Basic System Administration 364 VMware Inc...