How to silence VSAN health checks

Posted on April 25, 2018

The VSAN health checks are great in vCenter to quickly notice when something wrong is going on. However there may be some of the health checks that you don’t want to come up as warning. As an example, lots of vCenter implementations don’t have access to internet by design and when it is the case the Health check “VSAN Build Recommendation Engine Health” will be in a warning state even though you don’t care about it.

As of vCenter 6.5U1 it is currently not possible to silence a check from the web client, the only way to do it is via the VsanHealthSetVsanClusterSilentChecks method in the API. Note that the VSAN API was made available in PowerCLI 6.5.1 and above so if you are still running an older version you will have to upgrade by uninstalling PowerCLI and downloading the module, more info here.

I used this use case as an opportunity to play a little bit with the API so I wrote a short 4 functions module. I will probably expand it as I get the need for new cmdlets.

Get-VsanHealthChecks : Display VSAN health checks with their current health.

Get-VsanHealthGroups : Display VSAN health groups with their current health.

Silence a VSAN health Check

Find the Id of the check you want to silence. Mine is in Yellow state so I filter using it.

Get-VsanHealthChecks -Cluster (get-cluster) -Health Yellow | ft

Pick the one you want to silence and use the TestId property to silence it. The output should be the updated list of silenced checks including the one specified above (Same output as Get-VsanHealthSilentCheck).