This section guides you through setting up, configuring, and managing the Azure Stack HCI integration in OpsRamp.

Prerequisites

  • OpsRamp Classic Gateway (Linux) version 15.0.0 or later.
  • OpsRamp NextGen Gateway version 15.0.0 or later.
  • The Gateway must resolve and reach the HCI cluster and every cluster node.
  • Open TCP port 22 for PowerShell over SSH.

Configure OpenSSH

OpenSSH is the only supported connection method for Windows Failover Cluster monitoring. Run the following commands in an elevated Windows PowerShell session.

Pre-checks

Check whether OpenSSH Server is installed:

Get-WindowsCapability -Online -Name OpenSSH.Server*

Check the SSH service:

Get-Service sshd

Install OpenSSH Server

Install OpenSSH Server if it is not already installed:

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Start the SSH service

Start-Service sshd
Set-Service sshd -StartupType Automatic

Open TCP port 22

New-NetFirewallRule `
    -Name "Allow-SSH-Port-22" `
    -DisplayName "Allow SSH Port 22" `
    -Protocol TCP `
    -Direction Inbound `
    -LocalPort 22 `
    -Action Allow `
    -Profile Domain,Private,Public

Configure SSH access

Open the SSH configuration file as an administrator:

notepad C:\ProgramData\ssh\sshd_config

Configure password authentication and permit the monitoring user:

PasswordAuthentication yes
AllowUsers <ssh-username>

Set Windows PowerShell as the default SSH shell:

Set-ItemProperty `
    -Path "HKLM:\SOFTWARE\OpenSSH" `
    -Name DefaultShell `
    -Value "$PSHOME\powershell.exe"

Restart the SSH service:

Restart-Service sshd

Confirm that the service is running:

Get-Service sshd

Validate SSH connectivity

From the OpsRamp Gateway, run:

ping <IP-address-or-hostname>
telnet <IP-address-or-hostname> 22
ssh <username>@<IP-address-or-hostname>

After connecting, verify the active shell:

$PSVersionTable.PSVersion

The SSH connection must succeed, and PowerShell must be configured as the default shell.

Required Account Privileges

  The following permissions are required regardless of the selected connection option:  

  • Configure the non-administrator user on the target cluster and all applicable nodes.   

1. Add User to the Performance Monitor Users Group

The user must be a member of the Performance Monitor Users group to collect performance counter metrics.

net localgroup "Performance Monitor Users" /add "<user>"

2. Add User to the Hyper-V Administrators Group

The user must be added to the Hyper-V Administrators local group on every Hyper-V node.


Add a Domain User

Add-LocalGroupMember -Group "Hyper-V Administrators" -Member "<domain\user>"`

Add a Local User

Add-LocalGroupMember -Group "Hyper-V Administrators" -Member "<domain\user>"`

Verify Group Membership

net localgroup "Hyper-V Administrators" | Select-String "<domain\user>"`
Option 2: Using Computer Management (GUI)
  1. Click Start → Run, type lusrmgr.msc, and click OK.
  2. Navigate to Local Users and Groups → Groups.
  3. Open the Hyper-V Administrators group.
  4. Right-click Hyper-V Administrators and select Properties.
  5. Click Add.
  6. Enter the user account name and click Check Names.
  7. Click OK.
  8. Click Apply, then OK.
  9. Close the Properties window.
  10. Restart Windows to ensure the changes take effect. Important: If the non-administrator user is not a member of the Hyper-V Administrators group, virtual machine discovery, virtual switch discovery, and monitoring operations will not function correctly in OpsRamp.

3. Grant Remote WMI Read-Only Permissions

To grant remote WMI read-only access, perform the following steps on each monitored system:

  1. Press Windows Key + R, type wmimgmt.msc, and press Enter.
  2. In the left pane, right-click WMI Control (Local) and select Properties.
  3. Navigate to the Security tab.
  4. Expand Root and select CIMV2.
  5. Click Security.
  6. Click Add, enter the non-administrator user account, and click OK.
  7. Select the user and grant only the following permissions:
    • Enable Account (allows local read access)
    • Remote Enable (allows remote read access)
    • Execute Methods and Read Security only if the product requires them.
  8. To apply the permissions to child namespaces, click Advanced, select the account, click Edit, and set Applies to to This namespace and subnamespaces.
  9. Click OK, then Apply, and close all WMI management windows.

4. Grant Remote WMI Read-Only Permissions for Storage

To grant remote WMI read-only access, perform the following steps on each monitored system:

  1. Press Windows Key + R, type wmimgmt.msc, and press Enter.
  2. In the left pane, right-click WMI Control (Local) and select Properties.
  3. Navigate to the Security tab.
  4. Expand Root → Microsoft → Windows and select Storage.
  5. Click Security.
  6. Click Add, enter the non-administrator user account, and click OK.
  7. Select the user and grant only the following permissions:
    • Enable Account (allows local read access)
    • Remote Enable (allows remote read access)
    • Execute Methods and Read Security only if the product requires them.
  8. To apply the permissions to child namespaces, click Advanced, select the account, click Edit, and set Applies to to This namespace and subnamespaces.
  9. Click OK, then Apply, and close all WMI management windows.

Execute Methods allows method execution, so the permissions aren’t strictly read-only if that permission is granted. Enable Account and Remote Enable are the core permissions for remote WMI access; follow the product’s requirements for any additional permissions.

5. Grant Read-Only Failover Cluster Access

The domain user must be granted read-only access to the failover cluster.

Grant-ClusterAccess -User "<domain\user>" -ReadOnly

For monitoring services like Windows Cluster Service, Windows domain users must be a part of the Local Administrators group as the integration uses win32_Service class for fetching the details. Refer to Get-CimInstance.
If the non-administrator monitoring account cannot retrieve Windows service information because of insufficient permissions, follow these steps to grant read/query access without adding the account to the local Administrators group.

Refer to Enable Windows Service Monitoring Permissions

Summary of Required Permissions

If the user is a non-administrator, they must have the following privileges:

  • Membership in the Performance Monitor Users group.
  • Membership in the Hyper-V Administrators group on all Hyper-V nodes.
  • Remote WMI read-only access to the Root\CIMV2 and Root\Microsoft\Windows\Storage namespaces and their subnamespaces.
  • Read-only access to the failover cluster.

Configure and Install the AzureStack HCI Integration

  1. From All Clients, select a client.
  2. Navigate to Setup > Account.
  3. Select the Integrations and Apps tab.
  4. The Installed Integrations page, where all the installed applications are displayed. If there are no installed applications, it will navigate to the Available Integrations and Apps page.
  5. Click + ADD on the Installed Integrations page. The Available Integrations and Apps page displays all the available applications along with the newly created application with the version.
    Note: Search for the application using the search option available. Also you can use the All Categories option to search.
  6. Click ADD in the Azure Stack HCI Cluster application.
  7. In the Configurations page, click + ADD. The Add Configuration page appears.
  8. Enter the below mentioned BASIC INFORMATION:
FuntionalityDescriptionType
NameEnter the name for the configuration.String
IP Address/Host Name of Azure Stack HCI ClusterIP address/host name of Azure Stack HCI ClusterInteger
Azurestack HCI Cluster CredentialSelect the Credential from the drop-down list.

Notes:
  • Click + Add to create a credential. The ADD CREDENTIAL window is displayed. Enter the following information.
    • Name: Credential name.
    • Description: Brief description of the credential.
    • User Name: User name.
    • Password: Password.
    • Confirm Password: Confirm password
Dropdown
Connection ModeOpen SSH is the only supported option.Dropdown
SSH TimeoutsSelect the checkbox to configure timeout settings for OpenSSH connections and script execution requests made by the integration to the end device.Checkbox
Connection Timeout In MinsSelect the maximum time, in minutes, that the integration should wait while establishing an OpenSSH connection.

Default value: 1 minute
Dropdown
Script Execution Timeout In MinsSelect the maximum time, in minutes, that the integration should wait for script execution to complete.

Default value: 2 minutes
Dropdown
Network Management NameProvide the Cluster Network Management Name.String

Notes:

  • Access IP Address/Host Name from Gateway.
  • If the App Failure Notifications is enabled, you will be notified in case of an application failure i.e., Connectivity Exception and Authentication Exception.
  • Azure Stack HCI Server IP Discovery – Network Management Name Requirement. At present, Azure Stack HCI server IP addresses are discovered by default by filtering network management names containing ‘vManagement’ and ‘vEthernet’.
    If the cluster uses network management names other than these defaults names, you must provide the appropriate names manually.
    To retrieve the network management names, you can use the following PowerShell command:
    Get-ClusterNetwork | Where-Object {$_.Role -eq “ClusterAndClient”} | Get-ClusterNetworkInterface | Select-Object Address, State, Name
    This command returns output including the Name field, which should be used for discovery.
    Example Output:
    Address: 1.1.1.1
    Node: virtualbox
    State: Up

Name: virtualbox - Team

PSComputerName: 1.1.1.1
RunspaceId: 12345

In this case, the value to be provided is: Team

  1. Select the below mentioned Custom Attribute:
FunctionalityDescription
Custom AttributeSelect the custom attribute from the drop down list box.
ValueSelect the value from the drop down list box.

Note: The custom attribute that you add here will be assigned to all the resources that are created by the integration. You can add a maximum of five custom attributes (key and value pair).

  1. In the Native Types section, select the native types to be discovered.
  2. In the DISCOVERY SCHEDULE section, select Recurrence Pattern to add one of the following patterns:
    • Minutes
    • Hourly
    • Daily
    • Weekly
    • Monthly
  3. Click ADD.

Now the configuration is saved and displayed on the configurations page after you save it.
Note: From the same page, you may Edit and Remove the created configuration.

  1. Click NEXT
  2. Below are the optional steps you can perform on the Installation page.
  • Under the ADVANCED SETTINGS, select Bypass Resource Reconciliation option to skip reconciliation when two apps report identical discovery attributes. The system then creates two separate resources from each discovery.
  • Click +ADD to create a new collector by providing a name or use the pre-populated name.
  1. Select an existing registered profile.
  2. Click FINISH.

The integration is installed and displayed on the INSTALLED INTEGRATION page. Use the search field to find the installed integration.

Modify the Configuration

View the Azure Stack HCI Cluster Details

The Azure Stack HCI Cluster integration is displayed in the Infrastructure > Search > Hyperconverged Infrastructure > Azure Stack HCI Cluster. You can navigate to the Attributes tab to view the discovery details and Metrics tab to view the metric details for Azure Stack HCI.

View resource metrics

To confirm Azure Stack HCI Cluster monitoring, review the following:

  • Metric graphs: A graph is plotted for each metric that is enabled in the configuration.
  • Alerts: Alerts are generated for metrics that are configured as defined for integration.