VMware – VMware HealthAnalyzer vha.properties

I was using VMware’s HealthAnalyzer tool (version 5.2.0) recently to perform a vSphere health check for a customer and encountered the following error when using a read-only account.

A service error during during collection” (you might also see “A runtime error occurred during collection” pop up).

In addition to the Read-Only permissions to the vCenter user account, you need to assign “Profile-driven storage > Profile-driven storage view” privileges to the user account in order to collect Storage Policy data. If, for some reason, you can’t do that (I was working with a third-party in this case), you need to edit the vha.properties file. This is located at:

<VHA_Instance>/usr/share/vha/tomcat/webapps/vha/WEB-INF/classes/vha.properties

You’ll need to use vi to set the following properties to false:

collection.storagepolicies.enabled
collection.iscsiport.enabled

Note that by doing so some things won’t be scanned and some recommendations won’t be made.