When ESXi scratch partition was full, a event was reported on the vobd.log file.
Example:
--/var/run/log/vobd.logYYYY-MM-DDTHH:MM:SSZ In(14) vobd[#######]: [OserLevelCorrelator] 10591742736793us: [esx.problem.scratch.partition.full] Scratch is low on available space (XXX MiB free). This may result in system failure Please refer to Knowledge Base article: KB 87212
VMware vSphere 8.x
If it's plan to trigger the vCenter alarm for this event, it could be added by manually.
Follow the steps mentioned below to register the alarm manually:
Navigate to vCenter Server -> Configure -> Alarm Definitions
Click Add
Input alarm name "Host scratch partition full".
Choose the "Target type" as Hosts and click Next
In the "Alarm Rule1" page, Input "esx.problem.scratch.partition.full" as the trigger condition.
Select severity as "Show as Warning"
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.
System storage VOBs introduced in vSphere 8.0
https://knowledge.broadcom.com/external/article/313162/