# HA/DR Monitoring

SAP Adaptive Server Enterprise (ASE) High Availability and Disaster Recovery (HADR) system involves two ASE servers, one serving as the primary for transaction processing and the other as a standby with replicated databases.

For monitoring this setup, IT-Conductor's ASE HA/DR monitoring feature provides visibility into the primary and standby servers, along with the status of the HADR system, synchronization mode, and synchronization state.

In the event of a primary server failure and the promotion of the standby server to the primary role, IT-Conductor quickly identifies the new active primary server.

The servers are visually organized in a cluster grouping, distinguishing the standby server with an inactive status symbol, typically represented by a power icon. This enables teams to promptly identify the current state of the system and take necessary actions to ensure uninterrupted service.

### Prerequisites

[Configure ASE primary and secondary databases for monitoring](https://docs.itconductor.com/user-guide/monitoring/database/sap-ase) before configuring HA/DR monitoring in IT-Conductor.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FR9M1t0Z8C1s3jhBbdPXY%2Fexisting-ase-databases.PNG?alt=media&#x26;token=e01b881a-af87-4c53-b98e-3400ce392a3c" alt=""><figcaption><p>Figure 1: Existing ASE Databases</p></figcaption></figure>

### Configure HA/DR Monitoring in IT-Conductor <a href="#configure-ha-dr-monitoring-in-it-conductor" id="configure-ha-dr-monitoring-in-it-conductor"></a>

To configure ASE HA/DR monitoring in IT-Conductor, follow the instructions below.

#### Add New HA/DR Cluster <a href="#add-a-new-ha-dr-cluster" id="add-a-new-ha-dr-cluster"></a>

1. Navigate to the desired ASE databases and select **Retrievers**.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2Fhn7mfDfsNi87O5PxxEAG%2Fase-database-menu.png?alt=media&#x26;token=70cd5048-069f-4ec7-ba27-6624868b968d" alt=""><figcaption><p>Figure 2: ASE Database Menu</p></figcaption></figure>

2. Activate the following retrievers by clicking on the retriever’s object menu, then click **Activate**.
   1. ![](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FTQMaaKxUJLr9bnrSWHjL%2Fimage.png?alt=media\&token=2ce4df7b-2642-4547-a8c3-b0c0d860bc43)HADR Path
   2. ![](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2F1fSPPaOXDPo18poOFpSp%2Fimage.png?alt=media\&token=6a95c105-0576-42f4-a525-5608bf809a18) HADR Resource Status
   3. ![](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FdftL2njZHKPIjYKul4El%2Fimage.png?alt=media\&token=62658851-e3ad-4615-8733-fe97895ba49c) HADR Status

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2Fc20xwfVq1Dq5CcXFK3sh%2Fhow-to-activate-retrievers.png?alt=media&#x26;token=eeef92c4-35f0-480a-8d12-47c8d62647c7" alt=""><figcaption><p>Figure 3: Available Retrievers</p></figcaption></figure>

4. Navigate to **Dashboards** → **Administrator**.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FHL2UmSmAF2vbA4K4gViA%2Fadministrator-menu.png?alt=media&#x26;token=b5c3be3c-4299-4695-9c8c-695bcd7d979a" alt=""><figcaption><p>Figure 4: Accessing the Administrator Menu</p></figcaption></figure>

5. In the Administrator dashboard, locate the “Clusters” panel. Then click ![](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2F45iT8SvoU9JlWAoa8I4Y%2Fimage.png?alt=media\&token=197d5151-22a5-4ab0-b5eb-b6f60d58eb3e) to create a new cluster.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FbrTHrBlReAt9HonbmdnU%2Fcreate-a-new-cluster.png?alt=media&#x26;token=d23c439d-1c26-4bad-a55b-256197284291" alt=""><figcaption><p>Figure 5: Create a New Cluster Option</p></figcaption></figure>

5. In the "New Cluster" wizard, fill out all the necessary information. Then click ![](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FYBq3OKoNDN00Rw0shZpW%2Fimage.png?alt=media\&token=ad7aafb5-4230-4b7d-bfd9-05dba206c92a) to add the cluster.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2F8Hwa56wG0lafNspSalgU%2Fnew-cluster-wizard.PNG?alt=media&#x26;token=a8d117c5-dd8a-4859-95ec-8767445b7893" alt=""><figcaption><p>Figure 6a: New Cluster Wizard</p></figcaption></figure>

* **Name** - refers to the name of the cluster being added.
* **Description** - refers to any relevant information about the cluster being added.
* **Role** - refers to the specific function or responsibility assigned within the database system.
* **Member Class** - refers to the classification or category of a database user or group. Select **ASE** from the dropdown menu.
* **Controller Class** - refers to the type or level of control associated with a particular user or group. Select **ASEServerService** from the drop-down menu.
* **Active Condition** - refers to the current operational status or state of a specific aspect or component. Click ![](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FDC6lHbUAfQF9Fs7aYY7c%2Fimage.png?alt=media\&token=d1082c60-7cca-4421-8dc7-3656d0c70a6a) to open the pop-up window and fill out the following fields:
  1. **Name**: Select **ASEServerService.ScriptVersion.HADRState** from the menu.
  2. **Operator**: Select **“=”.**
  3. **Value**: Type “Active”**.**
  4. Then click ![](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FmfMrVd73V4symI2I56vJ%2Fimage.png?alt=media\&token=7ebb0901-51e6-48d0-9b0b-a87b82ddc8c5) to close and save.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FYAV7SHxNNENYTLEMUTQV%2Fnew-cluster-wizard-add-active-condition.png?alt=media&#x26;token=49c74bea-46dd-44da-812f-54b5ea3a54cc" alt=""><figcaption><p>Figure 6b: New Cluster Wizard (Adding Active Condition)</p></figcaption></figure>

8. On the following screen, select the databases that you would like to configure for HA/DR monitoring. Then click ![](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FYbyPNSPk369OBfZZkZJs%2Fimage.png?alt=media\&token=159a1a20-f69a-4b82-b51b-04c5adfaedb8) to save.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FZl1lcPp1VYTXS3RhGgWN%2Fselect-ase-databases.png?alt=media&#x26;token=02c28a5c-7810-448b-b304-764d43828e2a" alt=""><figcaption><p>Figure 7: Selecting ASE Databases for HA/DR Monitoring</p></figcaption></figure>

After saving, please allow a few minutes for the clusters to appear in the IT-Conductor Service Grid.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FOHeNXSQ2f40aSzarVtsQ%2Fmonitored-clusters.png?alt=media&#x26;token=6421e97c-9508-4714-ad44-35d82320be0d" alt=""><figcaption><p>Figure 8: Monitored Clusters</p></figcaption></figure>
