第一部分
使用alarms
virtual machines面板性能摘要
monitoring performance is a key part of every vsphere administrator's job.fortunately,vcenter server provides a number of ways to get insight into the behavior of the vsphere environment and the vms running within that environment.
the virtual machines tab of a cluster object offers a quick look at vm cpu and memory usage.
使用alarms
the first tool vcenter server provides is its alarms mechanism.the administrator can create alarms for virtual machines,hosts,networks,and datastores based on predefined triggers(预先定义的触发器)provided with vcenter server.depending upon the object,these alarms can monitor resource consumption or the state of the object and alert the administrator when certain conditions have been met,such as high resource usage or even low resource usage.these alarms can then provide an action(提供一个行为)that informs the administrator of the condition by email or snmp trap(发送邮件和snmp通告).an action can also automatically run a script(运行脚本)or provide other means to correct the problem the virtual machine or host might be experiencing.
系统默认告警简介
these default alarms are usually generic in nature.some of the predefined alarms include alarms to alert the administrator if any of the following happen:
1.a host's storage status,cpu status,voltage,temperature,or power status changes(主机存储状态,cpu状态,电压,温度或者电源状态改变)
2.a cluster experiences a vmware high availability(ha) error(集群经历高可用性错误)
3.a datastore runs low on free disk space(数据存储闲置空间低)
4.a virtual machine's cpu usage,memory usage,disk latency,or even fault tolerance status changes(虚拟机cpu利用率,内存利用率,磁盘延时,容错状态改变)
理解告警范围(层次)
when you define an alarm on an object,that alarm applies to all objects beneath that object in the vcenter server hierarchy.(当你定义一个告警在一个目标,这个告警会被运用到这个目标层次一下的所有目标)
the default set of alarms that vmware provides with vcenter server are defined at the vcenter server object and therefore apply to all objects datacenters,hosts,clusters,datastores,networks,and virtual machines-managed by that instance of vcenter server,if you were to create an alarm on a resource pool,then the alarm would apply only to virtual machines found in that resource pool.similarly,if you were to create an alarm on a specific virtual machine,that alarm would apply only to that specific virtual machine.
alarms are also associated with specific types of objects(有些告警和特殊类型的object有关).for example,some alarms apply only to virtual machines,while other alarms apply only to esx/esxi hosts.(有些只能运用到vm,有些只能运用到hosts)
创建告警前需要考虑的问题
first,is there an exiting alarm that already handles this task for you?
(第一,是否存在告警已经能够处理相同的任务)
second,if you're going to create a new alarm,where is the appropriate place within vcenter server to create that alarm?
(第二,如何选择vcenter适当位置来创建告警)
注意:alarm技术必须使用vcenter
标签:vSphere5.11,alarm,object,virtual,server,alarms,使用,Alarms,vcenter From: https://www.cnblogs.com/smoke520/p/18370185