I want to create an alarm based on the event of a Guest OS crashing. Below are the event details.
$evt = get-view eventManager
$evt.get_Description() | select -expand Eventinfo |where Description -like "*Guest operating system crashed*"
Key : VmGuestOSCrashedEvent
Description : Guest operating system crashed
Category : error
FormatOnDatacenter : {vm.name} on {host.name}: Guest operating system has crashed.
FormatOnComputeResource : {vm.name} on {host.name}: Guest operating system has crashed.
FormatOnHost : {vm.name}: Guest operating system has crashed.
FormatOnVm : This virtual machine's guest operating system has crashed.
FullFormat : {vm.name} on {host.name}: Guest operating system has crashed.
LongDescription :
Here is the event firing in my vcenter when I forced a BSOD on a test VM.
Get-VIEvent -MaxSamples 100
Template : False
Key : 375245
ChainId : 375245
CreatedTime : 10/16/2020 9:38:12 AM
UserName : User
Datacenter : VMware.Vim.DatacenterEventArgument
ComputeResource : VMware.Vim.ComputeResourceEventArgument
Host : VMware.Vim.HostEventArgument
Vm : VMware.Vim.VmEventArgument
Ds :
Net :
Dvs :
FullFormattedMessage : RDMTest02 on esxivtc04: Guest operating system has crashed.
ChangeTag :
The above event lacks an EventTypeId any thoughts on is there a way to create an alarm for this event?
Michael