WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • Apple
You are here: Home / Automation / Quick Tip - How to monitor when ESXi filesystem and partitions are filling up?

Quick Tip - How to monitor when ESXi filesystem and partitions are filling up?

05.30.2023 by William Lam // 3 Comments

Here is another tidbit on how you can leverage the power of vSphere Events, which now includes over 2K+ as of vSphere 8.0 Update 1 to help monitor when an ESXi filesystem and/or partition is low on disk space.

With vSphere 6.7 or later, we have two events that you can use to help alert when either an ESXi ramdisk (e.g. /var) or VFAT partition (e.g. bootbanks) has filled up.

  • Ramdisk: esx.problem.visorfs.ramdisk.full
  • VFAT: esx.problem.vfat.filesystem.full.other

When either of these occur, you can easily find them under the Monitor->Events section for an ESXi host as shown in the screenshot below.

While there is not a default vCenter Server Alarm configured for these specific events, you can easily create a custom alarm by using these event IDs as the alarm trigger and you will now be able to see these alerts in the vSphere UI when this event occurs.


Of course, vCenter Server Alarms is just one way to consume vCenter Server Events, you can also use the popular  VMware Event Broker Appliance (VEBA) solution to build powerful event-driven automation that can take these events and forward them to Slack, Teams or even send you a text message!

With vSphere 8.0 and later, there two additional vCenter Server Events have been introduced to alert when either the ESXi scratch or ESX-OSData partitions are filling up that you can also utilize.

  • Scratch: esx.problem.scratch.partition.full
  • ESX-OSData: esx.problem.osdata.partition.full

Finally, if you need to alert on inode tables filling up, the following two events can help which is available in vSphere 6.7 and later:

  • ESXi root filesystem inodes: esx.problem.visorfs.inodetable.full
  • ESXi ramdisk inodes: esx.problem.visorfs.ramdisk.inodetable.full

More from my site

  • Considerations for future vSphere Homelabs due to upcoming removal of SD card/USB support for ESXi
  • Other handy vSphere VOBs for creating vCenter Alarms
  • How to Send vCenter Alarm Notifications to SMS & Other Online Services Using IFTTT
  • Detecting A Duplicate IP Address For Your ESXi Hosts Using a vCenter Alarm
  • How to check the number of days before ESXi password expires?

Categories // Automation, ESXi, vSphere, vSphere 6.7, vSphere 7.0, vSphere 8.0 Tags // alarm, ESX-OSData, ESXi, inode, partition, ramdisk, scratch, vfat

Comments

  1. Krishnaprasad K says

    05/30/2023 at 9:18 pm

    Thanks for this tip William. Is there a way to connect to this events via an API. Meaning can a userspace daemon/application monitor these events say via vob ?

    Reply
    • Krishnaprasad K says

      05/30/2023 at 9:19 pm

      Meaning I look for subscribing to these events from a userspace daemon running on ESXi.

      Reply
    • William Lam says

      05/31/2023 at 11:05 am

      Yes, there's a vSphere API https://vdc-repo.vmware.com/vmwb-repository/dcr-public/d1902b0e-d479-46bf-8ac9-cee0e31e8ec0/07ce8dbd-db48-4261-9b8f-c6d3ad8ba472/vim.event.EventManager.html for interacting with vCenter Server Events, you would typically connect externally from the system, not sure what you're trying to do by running it as a userspace application on ESXi? Remember, ESXi isn't a general purpose OS ... If you're building some monitoring tool/system, you'll connect using public vSphere API just like all of our 2nd/3rd party solutions

      Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC) across Private, Hybrid and Public Cloud

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Recent

  • ESXi on Lenovo ThinkStation P3 Ultra 09/29/2023
  • Quick Tip - vSphere 7.0 Update 3o also supports disabling/enabling vSphere Cluster Services (vCLS) in vSphere UI 09/29/2023
  • Heads Up - New image identifier required by VM Service in vSphere 8.0 Update 2 09/27/2023
  • How to setup private GitLab on a Synology for Project Keswick? 09/26/2023
  • ESXi on SimplyNUC Moonstone 09/25/2023

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2023

 

Loading Comments...