ESXi sending frequent false SNMP traps for VM Heartbeat
search cancel

ESXi sending frequent false SNMP traps for VM Heartbeat

book

Article ID: 317638

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

To stop the false SNMP traps.

Symptoms:

  • Frequent SNMP traps on VMs and hosts
  • You see output similar to

VMWARE-VMINFO-MIB:vmwVmHBLost and VMWARE-VMINFO-MIB:vmwVmHBDetected

Example: A "vmwVmHBLost" event has occurred, from GnSNMPDev device, named esxi1.. A
virtual machine has detected a loss in guest heartbeat. vmwVmID = 3
vmwVmConfigFilePath = /vmfs/volumes/########-########-f11/VM/VM.vmx
vmwVmDisplayName = VM vmwVmDisplayName.vmwVmIdx = 3


Cause

The SNMP trap provides a reverse poll, a way for a management system to generate an alarm when the ESXi system is not responding or is not reachable. An alarm should be generated indicating that the ESXi system is either slow or not responding when this particular trap is not received after twice the default sending period

Resolution

This issue is resolved in:

VMware vSphere ESXi 6.7 P03 (ESXi670-202008001)
VMware vSphere ESXi 7.0.1 Update 1.
To download, go to  Customer Connect Downloads.

Workaround:
To work around this issue:
  1. Using the oid map from Determining the MIB module listing, name, and type of an SNMP OID
    Identify the traps to supress
For example:
VMWARE-VMINFO-MIB vmwVmHBLost notification 1.3.6.1.4.1.6876.4.1.0.3
VMWARE-VMINFO-MIB vmwVmHBDetected notification 1.3.6.1.4.1.6876.4.1.0.4
  1. Log in to the ESXi host through SSH.
  2. Run the below command:
esxcli system snmp set --notraps <MIB ID>
 
Note :where <MIB ID> is replaced with the ID of the MIB (e.g., 1.3.6.1.4.1.6876.4.1.0.3)
  1. Run the command to list No Traps
esxcli system snmp get

For more information also refer to VMware KB - SNMP Trap is repeated every 5 minutes


Additional Information

Impact/Risks:
None.