How to configure SAP Monitoring by using 'vhostmd' in RHV?

Solution Verified - Updated -

Environment

  • Red Hat Virtualization 3.x
  • Red Hat Virtualization 4.x

Issue

  • How to setup vhostmd to monitor SAP in Red Hat Virtualization?

Resolution

  • Machine monitoring for SAP applications uses the vhostmd VDSM hook, which is provided to hosts by the vdsm-hook-vhostmd package. Red Hat Virtualization Hypervisor hosts (RHVH) include the vdsm-hook-vhostmd package by default. However, you need to install vdsm-hook-vhostmd on Red Hat Enterprise Linux hosts.
  • The VM running SAP Netweaver must be subscribed to Red Hat Enterprise Linux for SAP Solutions subscription

Install the needed packages on Red Hat Enterprise Linux Hyperisor host

The following steps illustrate installing the vdsm-hook-vhostmd package on the Red Hat Enterprise Linux host, enabling SAP monitoring for a virtual machine, and verifying the monitoring.

  • As root, install the vdsm-hook-vhostmd package on the Red Hat Enterprise Linux host:

    # yum install vdsm-hook-vhostmd
    

Enable SAP Monitoring for a Virtual Machine

The following steps demonstrate how to enable SAP monitoring for a virtual machine using the Red Hat Enterprise Virtualization administration portal.

  1. Select the virtual machine to be monitored from the Virtual Machines tab.
  2. Shutdown the virtual machine.
  3. Click the Edit button to display the Edit Virtual Machine dialog.
  4. Select the Custom Properties tab.
  5. In the Custom Properties text field, select sap_agent and set this to true, then Click OK:

    Screenshot from RHV showing the Custom Properties Settings

  6. Start the virtual machine.

You have now enabled monitoring of a virtual machine for use with SAP. Repeat the procedure for each virtual machine that is part of the SAP environment. The Custom Properties tab is also available from the New Virtual Machine dialog. SAP monitoring can be enabled for new virtual machines by following this procedure at the time of the virtual machine creation.

Verify the SAP Monitoring.

The following steps can be used to verify the SAP monitoring on your virtual machines.

  1. Install the vm-dump-metrics package on the virtual machine:

    # yum install vm-dump-metrics
    
  2. Run the vm-dump-metrics command on the virtual machine to verify that the XML with the host metrics is accessible from the guest:

    # vm-dump-metrics
    

Further reference can be found in the RHV 3.0 Administration Guide Appendix

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.