Tabbed Interface with Table

Prerequisites

On Gateway

  • OpsRamp Classic Gateway (Linux) version 15.0.0 or later.
  • OpsRamp NextGen Gateway version 15.0.0 or later.


  • Ensure the cluster, standalone target, and all applicable nodes are accessible from the Gateway.
  • Open TCP port 22 for PowerShell over SSH.
  • For legacy PowerShell Remoting, open TCP ports 5985 and/or 5986.
    Note : By default, WS-Man and PowerShell remoting use port 5985 and 5986 for connections over HTTP and HTTPS, users should be present in nodes and cluster.

Non-Admin User 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 "<domain\user>"

2. Grant Remote WMI and Performance Monitor Access

Perform these steps on each monitored Windows system using an account with administrator rights.

  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. Open the Security tab and expand Root.
  4. Select the namespace required by your monitoring product—such as CIMV2 or WMI—then click Security. These are different namespaces; do not treat them as interchangeable.
  5. Click Add, enter the non-administrator user account (for example, DOMAIN\username), and click OK.
  6. Select the account and allow:
    • Enable Account
    • Remote Enable
    • Execute Methods and Read Security only if the product requires them.
  7. To apply the permissions to child namespaces, click Advanced, select the account, click Edit, and set Applies to to This namespace and subnamespaces.
  8. Click OK, then Apply, and close the WMI management windows.

3. 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 the Win32_Service class for fetching the details. Refer to Get-CimInstance.

Enable Windows Service Monitoring Permissions

If the non-administrator monitoring account cannot retrieve Windows service information because of insufficient permissions, follow these steps to grant service access without adding the account to the local Administrators group.

  1. Retrieve the user SID of the user account from the monitored device.
  2. Open Command Prompt in Administrator mode.
  3. Run the following command to retrieve the user SID. Replace UserName with the user name for the user account:
    wmic useraccount where name="UserName" get name,sid

Example:

    wmic useraccount where name="apiuser" get name,sid
  1. Note down the SID (for example, S-1-0-10-200000-30000000000-4000000000-500).
  2. Retrieve the current SDDL for the SC Manager.
  3. Run the following command to save the current SDDL for the SC Manager to CurrentSDDL.txt:
    sc sdshow clussvc > CurrentSDDL.txt
  1. Edit CurrentSDDL.txt and copy the entire content. The SDDL will look like this:
    D:(A;;CC;;;AU)(A;;CCLCRPRC;;;IU)(A;;CCLCRPRC;;;SU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)(A;;CC;;;AC)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)
  1. Update the SDDL by creating a new snippet for the SID:
    (A;;CCLCRPWPRC;;;<SID of User>)
Example:
    (A;;CCLCRPWPRC;;;S-1-0-10-200000-30000000000-4000000000-500)
  1. Place this snippet before S: in the original SDDL. The updated SDDL will look like this:
    D:(A;;CC;;;AU)(A;;CCLCRPRC;;;IU)(A;;CCLCRPRC;;;SU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)(A;;CC;;;AC)(A;;CCLCRPWPRC;;;S-1-0-10-200000-30000000000-4000000000-500)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)
  1. Execute the following command with the updated SDDL, replacing the example SID with the actual user SID:
    sc sdset clussvc D:(A;;CC;;;AU)(A;;CCLCRPRC;;;IU)(A;;CCLCRPRC;;;SU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)(A;;CC;;;AC)(A;;CCLCRPWPRC;;;S-1-0-10-200000-30000000000-4000000000-500)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)

Connection Modes

Starting from Windows Fail-over Cluster version 10.1.0, the option to select the connectionMode is available. The supported options are:

  • PowerShell (existing)
  • OpenSSH (new)

PowerShell Remoting over WinRM

Configuration steps

  • Enable PowerShell Remoting on every applicable target:
    Enable-PSRemoting -Force
  • Add the user to Remote Management Users:
    net localgroup "Remote Management Users" /add "<user>"
  • Add the OpsRamp Gateway IP to TrustedHosts:
    Set-Item WSMan:\localhost\Client\TrustedHosts -Force -Concatenate -Value "<OpsRampGatewayIP>"
To allow any host, when explicitly required:
    Set-Item WSMan:\localhost\Client\TrustedHosts -Force -Value "*"
  • Configure and restart WinRM:
    Set-Service WinRM -StartupType Automatic
    Restart-Service WinRM -Force
  • Open WinRM ports on every applicable target:
    • TCP 5985 for WinRM over HTTP.
    • TCP 5986 for WinRM over HTTPS.

PowerShell pre-checks

Verify network connectivity from the Gateway:

ping <IP-address-or-hostname>
telnet <IP-address-or-hostname> 5985
telnet <IP-address-or-hostname> 5986
  • For a Classic Gateway, launch PowerShell directly with pwsh.
  • For a NextGen Gateway, enter the NativeBridge container and launch PowerShell:
    kubectl exec -it nextgen-gw-0 -c nativebridge -- /bin/bash
    pwsh

Test PowerShell Remoting using the integration credential:

$password = ConvertTo-SecureString -AsPlainText -Force -String "<password>"
$credential = New-Object `
        -TypeName System.Management.Automation.PSCredential `
        -ArgumentList "<username>", $password
$session = New-PSSession `
        -ComputerName "<IP-address-or-hostname>" `
        -Credential $credential `
        -Authentication Negotiate `
        -ErrorAction Stop
$session.State

The session state must be Open. Close the test session:

Remove-PSSession $session

A successful PowerShell session confirms connectivity and authentication only. The user must also have the application-specific permissions required to execute discovery and monitoring commands.

PowerShell over SSH using OpenSSH

If the user is non-administrator then must have the following privileges:

  • Membership in the Performance Monitor Users group.
  • Remote WMI read-only access to the Root\CIMV2 namespace and subnamespaces.
  • Read-only access to the failover cluster.

The user should be added to all target nodes and the cluster:

  1. Create the same non-admin user account (local or domain) on all cluster nodes.
  2. Add the user to the AllowUsers directive in sshd_config on each node.
  3. Add the user to the local Hyper-V Administrators group on every node.
  4. Grant the user Read-Only permissions in the Failover Cluster configuration.

Pre-checks

Check whether OpenSSH Server is installed:

Get-WindowsCapability -Online -Name OpenSSH.Server*

Check the SSH service:

Get-Service sshd

Configuration steps

  • Install OpenSSH Server if it is not already installed:
    Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
  • Start sshd and configure automatic startup:
    Start-Service sshd
    Set-Service sshd -StartupType Automatic
  • Open inbound 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
  • Open C:\ProgramData\ssh\sshd_config as an administrator:
    notepad C:\ProgramData\ssh\sshd_config
  • Configure password authentication and the permitted user:
    PasswordAuthentication yes
    AllowUsers <ssh-username>
  • Set Windows PowerShell as the OpenSSH default shell:
    Set-ItemProperty `
            -Path "HKLM:\SOFTWARE\OpenSSH" `
            -Name DefaultShell `
            -Value "$PSHOME\powershell.exe"
  • Restart sshd and confirm that it is running:
    Restart-Service sshd
    Get-Service sshd

Validate connectivity from the Gateway

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

The SSH connection must be established successfully, and PowerShell must be configured as the default shell. After connecting, run the following command to verify the installed PowerShell version and confirm that the active shell is PowerShell:

$PSVersionTable.PSVersion

Configure Windows failover cluster monitoring

Click here to Configure and Install the Windows failover cluster monitoring Integration
  1. To select your client, navigate to All Clients, and click the Client/Partner dropdown menu.
    Note: You may either type your client’s name in the search bar or select your client from the list.
  2. Navigate to Setup > Account. The Account Details screen is displayed.
  3. Click Integrations. The Installed Integrations screen is displayed with all the installed applications.
    Note: If you do not have any installed applications, you will be navigated to the Available Integrations and Apps page with all the available applications along with the newly created application with the version.
  4. Click + ADD on the Installed Integrations page.
    Note: Search for the integration either by entering the name of the integration in the search bar or by selecting the category of the integration from the All Categories dropdown list.
  5. Click ADD in the Windows Fail-over Cluster application.
  6. In the Configuration screen, click + ADD. The Add Configuration screen appears.
  7. Enter the following BASIC INFORMATION:


Field NameDescriptionField Type
NameEnter the name for the configuration.String
Windows TypeSelect the type of Windows Server instance you are integrating:
Available Options
  • Standalone – A single Windows node that operates independently without any clustering configuration.
  • Cluster – A Windows Failover Cluster instance that spans multiple nodes
Dropdown
IP Address/Host NameEnter the IP Address/Host Name of the Windows failover cluster monitoring. It should be accessible from Gateway.String
CredentialsSelect the credential associated with your Windows failover cluster monitoring account. If you want to use the existing credentials, select them from the Select Credentials dropdown. Else, click + Add to create credentials. 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.
Note: The PowerShell connection model was removed for security reasons. It is recommended to migrate to OpenSSH for continued support and enhanced compatibility.
For more information, see Deprecation notice for PowerShell Communication.
Dropdown
App Failure NotificationsWhen selected, you will be notified in case of an application failure such as Connectivity Exception, Authentication Exception.Checkbox
Connection TimeOut In MinsAdds the feasibility to input nativebridge script execution time out in minutes. The default selection is 5 mins and the other available dropdown values are 10, 15, 20, 25, and 30.Dropdown
Log File MonitoringWhen selected (checked), log file monitoring is activated, allowing the system to track specific log files for changes, errors, or specific expressions.Checkbox
Log File ConfigurationSpecifies the configuration details for the log file to be monitored. Default value:{"Name":"","Folder Path":"","File Name":"","Rotated Folder Path":"","Rotated File Name":"","Notify":[{"Monitor Type":"","Expression":"","Operator":"","Threshold":"","Severity":""}]}String
Request TimeoutsSelecting this checkbox enables you to configure the timeout settings for NativeBridge 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 a connection with the nativeBridge.

Default value: 10 minutes.

Dropdown
Connection Request Timeout In MinsSelect the maximum time, in minutes, required to process a NativeBridge HTTP call, from sending the request to receiving the response.

Default value: 10 minutes.

Dropdown
Socket Timeout In MinsSelect the maximum allowable time of inactivity between two data packets during data exchange with the server.

Default value: 10 minutes.

Dropdown
Script Execution TimeOut In MinsSelect the maximum execution time, in minutes, to be considered by the script. The default option is 5 minutes, with other available options being 10, 15, 20, 25, and 30 minutes.Dropdown
  1. CUSTOM ATTRIBUTES: Custom attributes are the user-defined data fields or properties that can be added to the preexisting attributes to configure the integration.
Field NameDescriptionField Type
Custom AttributeSelect the custom attribute from the dropdown. You can add attributes by clicking the Add icon (+).Dropdown
ValueSelect the value from the dropdown.Dropdown

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.

Windows type is available in two types - Standalone and Cluster.

Connection Mode is available in two modes - Powershell and Open SSH.

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.
12. Under the ADVANCED SETTINGS, Select the Bypass Resource Reconciliation option, if you wish to bypass resource reconciliation when encountering the same resources discovered by multiple applications.
Note: If two different applications provide identical discovery attributes, two separate resources will be generated with those respective attributes from the individual discoveries.
13. Click NEXT.
14. (Optional) Click +ADD to create a new collector. You can either use the pre-populated name or give the name to your collector.
15. Select an existing registered profile.

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

Modify Windows failover cluster

Click here to Modify the Configuration

Discover Resources in Windows failover cluster

Click here to View the Windows failover cluster Details

The discovered resource(s) are displayed in the Infrastructure page under Infrastructure > Search > OS-High Availability > Windows Fail-over Cluster, with Native Resource Type as Windows Failover Cluster. You can navigate to the Attributes tab to view the discovery details, and Metrics tab to view the metric details for Windows Failover Cluster.

The cluster nodes are displayed under Components.