You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sap/monitor/provider-ha-pacemaker-cluster.md
+86-83Lines changed: 86 additions & 83 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,21 @@
1
1
---
2
-
title: Create a High Availability Pacemaker cluster provider for Azure Monitor for SAP solutions
3
-
description: Learn how to configure high-availability (HA) Pacemaker cluster providers for Azure Monitor for SAP solutions.
2
+
title: Create a high-availability Pacemaker cluster provider for Azure Monitor for SAP solutions
3
+
description: Learn how to configure a high-availability (HA) Pacemaker cluster provider for Azure Monitor for SAP solutions.
4
4
author: MightySuz
5
5
ms.service: sap-on-azure
6
6
ms.subservice: sap-monitor
7
7
ms.topic: how-to
8
-
ms.date: 08/21/2024
8
+
ms.date: 03/18/2026
9
9
ms.author: jacobjaygbay
10
10
ms.custom: sfi-image-nochange
11
-
#Customer intent: As a developer, I want to create a high-availability Pacemaker cluster so that I can use the resource with Azure Monitor for SAP solutions.
12
11
# Customer intent: As a system administrator, I want to configure a high-availability Pacemaker cluster for Azure Monitor for SAP solutions, so that I can ensure reliable and continuous monitoring of my SAP systems.
13
12
---
14
13
15
-
# Create high-availability cluster provider for Azure Monitor for SAP solutions
14
+
# Create a high-availability cluster provider for Azure Monitor for SAP solutions
16
15
17
-
In this how-to guide, you learn how to create a high-availability (HA) Pacemaker cluster provider for Azure Monitor for SAP solutions. You install the HA agent and then create the provider for Azure Monitor for SAP solutions.
16
+
[Azure Monitor for SAP solutions](about-azure-monitor-sap-solutions.md) lets you monitor SAP landscapes running on Azure. A high-availability (HA) Pacemaker cluster provider collects metrics from your cluster nodes so you can track cluster health and resource status.
17
+
18
+
In this article, you install the HA agent on each cluster node and then create the provider in Azure Monitor for SAP solutions.
18
19
19
20
## Prerequisites
20
21
@@ -23,141 +24,143 @@ In this how-to guide, you learn how to create a high-availability (HA) Pacemaker
23
24
24
25
## Install an HA agent
25
26
26
-
Before you add providers for HA (Pacemaker) clusters, install the appropriate agent for RHEL/SUSE in your environment in each of the cluster node.
27
-
28
-
For SUSE-based clusters, install **ha_cluster_provider** in each node. For more information, see the [HA cluster exporter installation guide](https://github.com/ClusterLabs/ha_cluster_exporter#installation). Supported SUSE versions include SLES for SAP 12 SP3 and later versions.
27
+
Before you add providers for HA (Pacemaker) clusters, install the appropriate agent for RHEL or SUSE in each cluster node.
29
28
30
-
For SUSE-based Pacemaker clusters, Please follow below steps to install in each of the cluster node
29
+
For SUSE-based clusters, install `ha_cluster_provider` in each node. For more information, see the [HA cluster exporter installation guide](https://github.com/ClusterLabs/ha_cluster_exporter#installation). Supported SUSE versions include SLES for SAP 12 SP3 and later versions.
31
30
32
-
### Install an HA cluster exporter on SUSE
31
+
For RHEL-based clusters, install Performance Co-Pilot (PCP) and the `pcp-pmda-hacluster` subpackage in each node. For more information, see the [PCP HACLUSTER agent installation guide](https://access.redhat.com/articles/6139852). Supported RHEL versions include 8.2, 8.4, and later versions.
33
32
34
-
1. Install the required packages for Prometheus cluster exporter on the system.
For RHEL-based clusters, install **performance co-pilot (PCP)** and the **pcp-pmda-hacluster** subpackage in each node. For more information, see the [PCP HACLUSTER agent installation guide](https://access.redhat.com/articles/6139852). Supported RHEL versions include 8.2, 8.4, and later versions.
53
+
1. The `ha_cluster_exporter` collects data. Export the data by using the URL `http://<ip-address>:9664/metrics`. To check that the metrics are accessible on the server where `ha_cluster_exporter` is installed, run the following command:
58
54
59
-
For RHEL-based Pacemaker clusters, Please follow below steps to install in each of the cluster node
55
+
```bash
56
+
curl http://localhost:9664/metrics
57
+
```
60
58
61
-
### Install an HA cluster exporter on RHEL
59
+
#[RHEL](#tab/rhel)
62
60
63
-
1. Install the required packages for PCP on the system.
61
+
1. Install the required packages for PCP.
64
62
65
-
```bash
66
-
sudo yum install pcp pcp-pmda-hacluster
67
-
```
63
+
```bash
64
+
sudo yum install pcp pcp-pmda-hacluster
65
+
```
68
66
69
-
1. Enable and start the required PCP Collector Services.
67
+
1. Enable and start the required PCP collector services.
70
68
71
-
```bash
72
-
sudo systemctl start pmcd
73
-
```
69
+
```bash
70
+
sudo systemctl start pmcd
71
+
```
74
72
75
-
```bash
76
-
sudo systemctl enable pmcd
77
-
```
73
+
```bash
74
+
sudo systemctl enable pmcd
75
+
```
78
76
79
-
1. Install and enable the HA cluster PMDA. Replace `$PCP_PMDAS_DIR` with the path where `hacluster` is installed. Use the `find`commandin Linux to find the path of "hacluster" bits. Usually hacluster is in path "/var/lib/pcp/pmdas".
80
-
Example: cd /var/lib/pcp/pmdas/hacluster
77
+
1. Install and enable the HA cluster PMDA. Replace `$PCP_PMDAS_DIR` with the path where `hacluster` is installed. Use the `find` command in Linux to find the path. The path is usually `/var/lib/pcp/pmdas`.
81
78
82
-
```bash
83
-
cd$PCP_PMDAS_DIR/hacluster
84
-
```
79
+
```bash
80
+
cd$PCP_PMDAS_DIR/hacluster
81
+
```
85
82
86
-
```bash
87
-
sudo ./Install
88
-
```
83
+
```bash
84
+
sudo ./Install
85
+
```
89
86
90
87
1. Enable and start the `pmproxy` service.
91
88
92
-
```bash
93
-
sudo systemctl start pmproxy
94
-
```
89
+
```bash
90
+
sudo systemctl start pmproxy
91
+
```
95
92
96
-
```bash
97
-
sudo systemctl enable pmproxy
98
-
```
93
+
```bash
94
+
sudo systemctl enable pmproxy
95
+
```
99
96
100
-
1. Data gets collected in the system by PCP. You can export the data by using `pmproxy` via URL `http://<ipaddress of the server>:44322/metrics?names=ha_cluster`.
101
-
To check if the metrics are fetched via URL on the server where the hacluster is installed, Run the following command on the server.
1. PCP collects data. Export the data by using `pmproxy` at the URL `http://<ip-address>:44322/metrics?names=ha_cluster`. To check that the metrics are accessible on the server where `hacluster` is installed, run the following command:
To [enable TLS 1.2 or higher](enable-tls-azure-monitor-sap-solutions.md), follow the steps in [this article](https://github.com/ClusterLabs/ha_cluster_exporter#tls-and-basic-authentication).
105
+
## Enable secure communication (optional)
106
+
107
+
To [enable TLS 1.2 or higher](enable-tls-azure-monitor-sap-solutions.md), follow the steps described in the [HA cluster exporter TLS and basic authentication guide](https://github.com/ClusterLabs/ha_cluster_exporter#tls-and-basic-authentication).
110
108
111
109
## Create a provider for Azure Monitor for SAP solutions
112
110
111
+
After you install the HA agent on each cluster node, create a provider in Azure Monitor for SAP solutions to start collecting cluster metrics.
112
+
113
113
1. Sign in to the [Azure portal](https://portal.azure.com).
114
114
1. Go to the Azure Monitor for SAP solutions service.
115
115
1. Open your Azure Monitor for SAP solutions resource.
116
116
1. On the resource menu, under **Settings**, select **Providers**.
117
117
1. Select **Add** to add a new provider.
118
118
119
-

119
+

120
120
121
121
1. For **Type**, select **High-availability cluster (Pacemaker)**.
122
122
1. (Optional) Select **Enable secure communication** and choose a certificate type.
123
123
1. Configure providers for each node of the cluster by entering the endpoint URL for **HA Cluster Exporter Endpoint**.
124
124
125
-
1. For SUSE-based clusters, enter `http://<IP-address>:9664/metrics`.
126
-
127
-

125
+
1. For SUSE-based clusters, enter `http://<IP-address>:9664/metrics`.
126
+
127
+

128
128
129
-
1. For RHEL-based clusters, enter `http://<'IP address'>:44322/metrics?names=ha_cluster`.
129
+
1. For RHEL-based clusters, enter `http://<IP-address>:44322/metrics?names=ha_cluster`.
130
130
131
-

131
+

132
132
133
-
1. Enter the SID - SAP system ID, Hostname - SAP hostname of the Virtual machine (Command `hostname -s`forSUSE and RHEL based servers provide hostname detail), and Cluster - Provide any custom name that is easy to identify the SAP system cluster - this Name is visiblein the workbook for metrics (need not have to be the cluster name configured on the server).
133
+
1. Enter the following values:
134
134
135
-
1. Select "Start test" under "Prerequisite check (Preview) - highly recommended" - This test helps validate the connectivity from AMS subnet to the SAP source system and list out if any errors are found - which need to be addressed before provider creation otherwise the provider creation will fail with error.
136
-
1. Select **Create** to finish creating the Provider.
135
+
-**SID**: The SAP system ID.
136
+
-**Hostname**: The SAP hostname of the virtual machine. Run `hostname -s` on SUSE or RHEL servers to get the hostname.
137
+
-**Cluster**: A custom name that identifies the SAP system cluster. This name appears in the workbook for metrics and doesn't need to match the cluster name configured on the server.
137
138
138
-
1. Create provider foreach of the serversin the cluster to be able to see the metrics in the workbook. For example, if the Cluster has three servers configured, Create three providers for each of the three servers with all of the above steps followed.
139
+
1. Under **Prerequisite check (Preview) - highly recommended**, select **Start test**. This test validates connectivity from the Azure Monitor for SAP solutions subnet to the SAP source system and identifies any errors that you must address before you create the provider.
140
+
1. Select **Create** to finish creating the provider.
141
+
1. Repeat these steps for each server in the cluster. Create a provider for each server to see all metrics in the workbook.
139
142
140
-
## Troubleshooting
143
+
## Troubleshoot common errors
141
144
142
-
Use the following troubleshooting steps for common errors.
145
+
Use the following steps to resolve common errors.
143
146
144
147
### Unable to reach the Prometheus endpoint
145
148
146
149
When the provider settings validation operation fails with the code `PrometheusURLConnectionFailure`:
147
150
148
151
1. Restart the HA cluster exporter agent.
149
152
150
-
```bash
151
-
sudo systemctl start pmproxy
152
-
```
153
+
```bash
154
+
sudo systemctl start pmproxy
155
+
```
153
156
154
-
1. Reenable the HA cluster exporter agent.
157
+
1.Re-enable the HA cluster exporter agent.
155
158
156
-
```bash
157
-
sudo systemctl enable pmproxy
158
-
```
159
+
```bash
160
+
sudo systemctl enable pmproxy
161
+
```
159
162
160
-
1. Verify that the Prometheus endpoint is reachable from the subnet that you provided when you created the Azure Monitor for SAP solutions resource.
163
+
1.Check that the Prometheus endpoint is reachable from the subnet that you provided when you created the Azure Monitor for SAP solutions resource.
0 commit comments