Provide the following information:
Using the VMware vCenter Server console, configure the Management Server as the SNMP trap receiver in the VMware vCenter Server. In the Home page of vSphere Client, select vCenter Server Settings and then select SNMP configuration. Enable one of the SNMP receivers and enter details as follows:
Configure alarm for generating SNMP traps when the virtual machine state changes. It includes adding alarm to monitor the change in the virtual machine state and adding the appropriate action (for example, send notification email).
In the Home page of the VMware vSphere Client, select Hosts and Clusters and right-click on the VMware vCenter Server, data-center or an individual virtual machine to set the alarm. You can set the alarm at an individual virtual machine level, at the data center level, or at the entire VMware vCenter Server level. It is recommended to set it at the VMware vCenter Server level.
In the General tab, provide alarm details with alarm type set for monitoring the virtual machines. Enter the details as listed in the following table:
In the Triggers tab, add the required triggers to monitor the states of the virtual machine - VM powered on, VM powered off, VM suspended, and DRS VM powered on (for clustered environment with DRS enabled). The values of the fields are as follows: