Information Technology Reference
In-Depth Information
11. On the Actions tab, specify any additional actions that should be taken when the alarm is
triggered.
The following actions are available:
Send a notii cation email.
Send a notii cation trap via SNMP.
Change the power state on a VM.
Migrate a VM.
If you leave the Actions tab empty, the alarm will alert administrators only within the
vSphere Web Client. For now, leave the Actions tab empty.
Configuring vCenter Server for Email and SNMP Notifications
To have vCenter Server send an email for a triggered alarm, you must confi gure vCenter Server
with an SMTP server. To confi gure the SMTP server, from the vSphere Web Client choose the
vCenter Server from within the Navigator, and then select the Manage
Settings tab. Click the
Edit button on the right, then select Mail in the list on the left, and then supply the SMTP server
and the sender account. We recommend using a recognizable sender account so that when you
receive an email, you know it came from the vCenter Server computer. You might use something
like vcenter- alerts@lab.local.
Similarly, to have vCenter Server send an SNMP trap, you must confi gure the SNMP receivers in
the same vCenter Server Settings dialog box under SNMP receivers. You may specify from one to
four management receivers to monitor for traps.
12. Click Finish to create the alarm.
The alarm is now created. To view the alarm you just created, select the datacenter object
from the Navigator on the left, and then click the Manage
Alarm Dei nitions tab. You'll see
your new alarm listed, as shown in Figure 13.4.
Using Duration and Action Frequency with Alarms
Let's create another alarm. This time you'll create an alarm that takes advantage of the param-
eters in the Triggers and Actions area. With the VM snapshot alarm, these parameters didn't
really make any sense; all you really needed was just to be alerted when the snapshot exceeded
a certain size. With other types of alarms, it may make sense to take advantage of these
parameters.
Some triggers are simple state checks, like the VM State trigger, while with others you are
able to specify a size, like VM Snapshot Size. There is also a third type, which is a combination
of size and time (or duration). Triggers such as VM Network Usage will activate only if the size
is over (or under) the set threshold for a set period of time.
Search WWH ::




Custom Search