How to configure SAP Monitoring by using 'vhostmd' in RHV?
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
vhostmdVDSM hook, which is provided to hosts by thevdsm-hook-vhostmdpackage. Red Hat Virtualization Hypervisor hosts (RHVH) include thevdsm-hook-vhostmdpackage by default. However, you need to installvdsm-hook-vhostmdon 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 thevdsm-hook-vhostmdpackage 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.
- Select the virtual machine to be monitored from the Virtual Machines tab.
- Shutdown the virtual machine.
- Click the Edit button to display the Edit Virtual Machine dialog.
- Select the Custom Properties tab.
-
In the Custom Properties text field, select
sap_agentand set this totrue, then Click OK:
-
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.
-
Install the
vm-dump-metricspackage on the virtual machine:# yum install vm-dump-metrics -
Run the
vm-dump-metricscommand 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
