Latest Articles

How To Install and Configure vSphere App HA – Part 2

In the previous part, we have deployed a vSphere App HA virtual machine and we also configured the connection for the vCenter Hyperic server that the vSphere App HA will use. In this part we will continue with the remaining vSphere App HA configuration settings.

vCenter Hyperic Agent Properties File Configuration

To enable vSphere App HA alarms on the vCenter Server, you must configure certain values in the vCenter Hyperic agent.properties file. Before you can edit the Hyperic agent file, you must install the agent first. In my case, I will install the Windows based version of the client. You can download this agent from VMware. Agents for other OS types can also be downloaded there.

  1. Run the installer on the vCenter Server.
  2. Provide the vCenter Hyperic server IP address and lease the ports as default.AppHA_P2_S1
  3. Next, enter the username and password for the vCenter Hyperic server and click Next.
  4. Select No when asked if the communication with the server should be unidirectional and click Next.
  5. Select Yes when asked if the communication with the server should be secured and click Next.
  6. Select a folder where the vCenter Hyperic Agent should be installed or leave it to default.
  7. Click Next to start the installation process.
  8. Click Finish to end the installation process.
  9. Stop the Hyperic HQ Agent service.
  10. Open the folder where the agent has been installed, for example: C:\Hyperic-Agent\hyperic-hqee-agent-5.8.1\ and delete the data folder.
  11. Next, open the conf folder and edit the agent.properties file with notepad.
  12. Verify the following settings:
    • agent.setup.camLogin = hqadmin
    • agent.setup.camPword = <your_hqadmin_password>
    • agent.setup.acceptUnverifiedCertificate = yes
    • accept.unverified.certificates = true
  13. Save and close the file.
  14. Start the vCenter Hyperic agent on the vCenter Server.
  15. Open the command prompt and navigate to the bin directory where the vCenter Hyperic agent is installed. See picture below for an example.AppHA_P2_S2
  16. Execute the hq-agent.bat start command. If the registration is unsuccessful due to connection time out, then you probably need to open TCP port 2144 on the Windows Firewall.
  17. When the hq-agent.bat start command completes successfully you should see something similar as depicted below.AppHA_P2_S3
  18. Close the command prompt.

Create vCenter App HA Plug-in

If you want to enable alarms to be sent from the vCenter Server in the event of a remediation action, you must create a new service in vCenter Hyperic.

  1. Open your browser, navigate to the vCenter Hyperic server and log in.
  2. On the Dashboard tab add the vCenter Server to the inventory by clicking Add to Inventory button or if it is already added, click its link under the Recently Added pane.AppHA_P2_S4
  3. From the Tools Menu select New Server.AppHA_P2_S5
  4. Enter a name, description (optional), select the server type as VMware vCenter AppHA and enter a * (asterisk) as the install path. Click OK.AppHA_P2_S6
  5. The object will be created but you will see a warning stating that the resource has not been configured yet. Click the Configuration Properties link to continue.AppHA_P2_S7
  6. In the URL field, replace the localhost value with the IP address of your vCenter Server.
  7. Provide the username and password used to log in to the vSphere Web Client.
  8. Leave the process query settings to its default.
  9. Make sure that the Auto-Discover services option is not checked.
  10. Click OK.

This concludes part 2 of the vSphere App HA install and configure series. Continue to part 3 (coming soon) where we will put the vSphere App HA to a test!

Cheers!

– Marek.Z

  • How To Install and Configure vSphere App HA – Part 1
About Marek (288 Articles)
Marek is an IT professional with 15+ years of experience in the IT industry and is currently working as PSO Senior Consultant SDDC at VMware for the NEMEA region.

Leave a reply...