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.

VMware – VMware Health Analyzer

I was using VMware Health Analyzer the other day to perform a health check at a customer site and needed to change the web port on the Thinapp version I was using. If you’re a VMware person or partner engaged in delivering these kinds of services, vHA is an excellent starting point for delivering health check services. Samir has a great write-up on it here and here.

In any case, I found the instructions for changing the port on the Virtual Potholes blog. Here’s what you need to do.

1. Start the ThinApp and let it fail. This creates a folder structure for the Tomcat instance.

2. Go to C:\users\*the user you ran the ThinApp under*\AppData\Roaming\Thinstall\*random identification string*\%drive_c%\usr\share\vha\tomcat\conf

3. Edit server.xml

4. Find ConnectorPort=”80″

5. Change 80 to whatever port number you know is free.

6. Save the changes and start the ThinApp.

7. You should see Initializing Coyote HTTP/1.1 on http-(port number you chose)

8. Access the interface from http://localhost:port

And you’re good to go.