When ESXi detects a datastore heartbeat timeout, an event is reported in the vobd.log.
Example:
--/var/run/log/vobd.log
YYYY-MM-DDTHH:MM:SS In(14) vobd[2097763]: [vmfsCorrelator] 614045975024us: [esx.problem.vmfs.heartbeat.timedout] ########-########-####-############ Test_Datastore
VMware vSphere (All Versions)
Follow the below steps to configure the Alarm in vCenter UI:
Navigate to vCenter Server -> Configure -> Alarm Definitions
Click Add
Input alarm name "VMFS volume connectivity degraded" or "VMFS heartbeatbeat timeout".
Choose the "Target type" as Hosts and click Next
In the "Alarm Rule1" page, Input "esx.problem.vmfs.heartbeat.timedout" and press enter two times to accept the event definition.
Select severity as "Show as Critical"
Optionally, you can configure email notification or SNMP traps or running any script whenever such alarm is triggered
Click Next
In the Review page, verify if the alarm rules is set correctly and make sure the "Enable this alarm" option is enabled.
Click CREATE.
Understanding lost access to volume messages in ESXi
With vCenter 8.0U3 and earlier
DO NOT use the "VMFS Volume Connectivity Degraded" from the list as the trigger condition, there are two alarms defined with this name and one is a legacy rule, this will lead to bad rules being created.