Host profile alert does not cleared automatically even real issue was gone.
'Reset to Green' button in Monitor -> All Issues tab is grayed out so you cannot clear it manually.
vCenter 8.x
The issue lies with the host object directly, not with the host profile object.
There are two options as a workaround so we can choose one of these action items below.
Option 1. Remove problematic host from vCenter inventory and re-add it again.
Option 2. Delete alert from VPX_CONFIG_ISSUE table in VCDB by following the process below.
Note: It is advisable to perform either a file-based backup or an offline snapshot of the vCenter
1) ssh to vCenter and connect VCDB
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
2) Check the event_id for removing.
select * from VPX_CONFIG_ISSUE;
Example:
VCDB=# select * from VPX_CONFIG_ISSUE; entity_id | event_id | cfg_issue_type-----------+----------+---------------- 12034 | 720164 | 1 12016 | 720165 | 1
3) We don't know which item is correct one if there are many entities so we checked it from Event table.
Replace 'EVENT_ID' value using above result.
Check which event is related with the issue.
select event_type,host_name from VPXV_EVENT_ALL where event_id=EVENT_ID;
Example:
VCDB=# select event_type,host_name from VPXV_EVENT_ALL where event_id=720164;event_type | host_name--------------------------------------------------+-------------------- com.vmware.vc.HA.HeartbeatDatastoreNotSufficient | esxi02DELETE FROM VPX_CONFIG_ISSUE where event_id = 'EVENT_ID' ;VCDB=# DELETE FROM VPX_CONFIG_ISSUE where event_id = '720164' ;DELETE 1select * from VPX_CONFIG_ISSUE;service-control --restart vpxd