I have been having phantom alarms lately. Virtual machines will show the red alert icon with no alarms triggered. I checked the VM, the host, the cluster, the folder, the datacenter, and vcenter but none of those objects have any triggered alarms either. The cluster does not have HA or DRS enabled.
I had several VMs in this condition so I restarted vCenter server, which usually solves the problem for a while. However, this time two of the VMs have retained their alert state through the vCenter server restart.
I ran this powercli script on the trouble VMs and every alarm state was either gray or green. How can I find out what is causing the VMs to red exclamation point alert symbol?
$vm = Get-VM -Name VM | Get-View
foreach($state in $vm.DeclaredAlarmState){
$alarm = Get-View $state.Alarm
Write-Host "name:"
Write-Host $alarm.info.name
Write-Host "overall status:"
Write-Host $state.OverallStatus
}