After ESXi's battery replacement, detect alarms or SNMP events related to the health of Hardware Sensor Group, including the battery and processor and so on.
You can see similar to the following log when you run journalctl command in vCSA CLI.
MMM DD hh:mm:ss <vcsa> vpxd[25628]: Event [569533473] [1-1] [YYYY-MM-DDThh:mm:ss.ffffffZ] [vim.event.AlarmStatusChangedEvent] [info] [] [Oita_DC01] [569533473] [Alarm 'Host battery status' on <esxi> changed from Red to Green]
Also, you can see similar to the following log showing the battery status as Green at the time the alarm was triggered at /var/run/log/hostd.log in ESXi.
YYYY-MM-DDThh:mm:ss.fffZ info hostd[2102417] [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 1563 : Hardware Sensor Status: Processor Green, Memory Green, Fan Green, Voltage Green, Temperature Green, Power Green, System Board Green, Battery Green, Storage Green, Other Green
VMware vCenter Server 7.0.x
VMware ESXi 7.0.x
An alarm has been triggered because the battery status changed Red to Green following actions such as replacing the hardware battery of ESXi.
No action is required for this alarm, as it indicates that the battery health status has changed Red to Green.
Japanese Version:
ESXi のバッテリを交換後にハードウェアセンサステータスに関するアラームがトリガされる