For example, VM created, VM migrated, VM powered on, VM powered off, VM suspended, and so on. In the Triggers tab, add the required triggers to monitor the states of the virtual machine.Ensure that Enable this alarm check box is selected. Select Monitor for specific events occurring on this object, for example, VM powered On option.Alarm Type :Select Virtual Machines in the Monitor drop-down list.Description :Provide additional information about the alarm.
Sometimes when troubleshooting an SNMP Trap issue, it can be very helpful to remove the actual device that could be causing problems and use the snmptrap command instead. Alarm Name :Provide the name of the alarm. This article shows you several methods of sending a trap to your Nagios server to test SNMP Trap functionality.Enter the details as listed in the following table: In the General tab, provide alarm details with alarm type set for monitoring the virtual machines.It is recommended to set it at the VMware vCenter Server level. You can set the alarm at an individual virtual machine level, at the data center level, or at the entire VMware vCenter Server level. 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.Add an alarm to monitor the changes related to VM state and vCenter Server status, and then adding the appropriate action (ie, send a notification trap).So your SNMP server should receive alarms as soon as you have the SNMP setup. There are alarms in vCenter Server that are configured to send traps by default. When ever there is a change in the environment ( host state change, VM state change ,etc) the trigger will be generated and send an alert to the monitoring server.Ĭonfigure the Alarms After you have setup the external SNMP server, vCenter Server can now ready to send SNMP traps to it. Now you need to configure alarm for generating SNMP traps in the vCenter server. That is all that is needed for the configuration.