Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Omnissa Horizon connector

The Nexthink Connector for Omnissa Horizon retrieves the desktop pool of each Horizon virtual machine and Remote Desktop Services (RDS) server, with its pool type, virtualization host name and disk image, and adds them to the matching devices in Nexthink.

This installation guide helps you install the connector securely. Your security team should review the installation steps described in this document and adjust them to meet your organization’s security policy.

Data imported into Nexthink

The connector populates the following fields of the virtualization grouping in the devices table.

Nexthink field
Type
Description

virtualization.desktop_pool

string

The name of the Horizon desktop pool the virtual machine belongs to.

virtualization.type

enumeration

The type of the desktop pool. Possible values are:

  • shared: several users work on the same virtual machine at the same time

  • personal: the virtual machine is used by one user at a time and all changes to the system persist

  • pooled: the device is used by one user at a time and during the logoff all changes including documents and data are erased.

virtualization.hostname

string

The name of the virtualization host where the virtual machine was last observed running.

virtualization.environment_name

string

The name of the connector used to retrieve the virtualization details: the Name of the Horizon environment in the configuration file.

virtualization.desktop_broker

enumeration

The VDI broker platform of the virtual machine, horizon_on_prem for this connector.

virtualization.disk_image

string

The disk image last observed in use by the virtual machine.

Nexthink connector server

Nexthink recommends installing the Nexthink Connector for Omnissa Horizon on a separate Windows server, not on a Horizon Connection Server, so that it never disrupts the Horizon infrastructure it reads from.

Prerequisites

Hardware requirements

Component
Minimum
Recommended

CPU

2-core x64

4-core x64

RAM

2 GB

4—8 GB

Free disk space

2 GB

5 GB

Operating system

Windows 10 / Server 2016

Windows 11 / Server 2022

Networking

The Nexthink Connector for Omnissa Horizon connects to the Omnissa Horizon Connection Server and to your Nexthink instance.

  • The connector communicates with your Nexthink instance over TCP port 443.

  • The connector connects to the Horizon Connection Server REST API at the Host address of each environment in config.json, over HTTPS on TCP port 443 unless the address names another port.

URLs to allow through the firewall or proxy for PowerShell Install-Module

Purpose
URL

PowerShell Gallery

https://www.powershellgallery.com

CDN for packages

https://www.powershellgallery.com/api/v2/

NuGet provider

https://www.nuget.org

NuGet API

https://api.nuget.org

Alternate NuGet V2 API

https://www.nuget.org/api/v2/

Certificate revocation (normally optional; sometimes necessary)

http://crl.microsoft.com

Additional considerations

  • If SSL inspection is enabled on your proxy, ensure it does not break the TLS handshake.

  • If you're behind a proxy, ensure PowerShell is configured to use it by running the following command:

Test connectivity

You can test access using a PowerShell terminal by running the following command:

Local user account for scheduled tasks

The Nexthink Connector for Omnissa Horizon runs as scheduled tasks, one Runner task per Omnissa Horizon environment and one Auto-Updater task, and needs to access the Omnissa Horizon APIs. To limit security concerns, Nexthink recommends using a local user account on the server where you install the connector or a regular domain user account without any special privileges at the domain level.

The following guide uses a local account on the Nexthink connector server.

1

Log on as an administrator to the server that will run the Nexthink Connector for Omnissa Horizon.

2

Launch the local users and groups console by running the following command from the Start Menu:

Run the lusrmgr.msc command
3

Right-click on the Users folder in the Local Users and Groups (Local) directory and select New user…

4

Create a user account according to your organization's naming conventions, for example nxt-omnissa. This guide uses nxt-omnissa in later commands. Replace it with your account name. Make a note of the User name and Password: you need them to store credentials, to test the connector and to create the scheduled tasks.

To keep the connector running, select the following options:

  • User cannot change password

  • Password never expires

New user options
5

Select Create.

6

Open the local group policy editor by running the following command from the Start Menu:

7

Navigate to Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment and open the Log on as a batch job policy.

8

Open the policy and select Add User or Group to add the previously created user to the list.

Add user or group

Installing the connector

2

Extract the zip file and copy the contents of its OmnissaConnector-<version> folder to a folder on your system. Nexthink recommends the following folder:

C:\Program Files\Nexthink\Connectors\Omnissa

3

Apply Modify permissions on the connector folder, for example C:\Program Files\Nexthink\Connectors\Omnissa, for the local user account you created earlier, applied to This folder, subfolders and files. The connector can then create and write its Logs and Storage folders inside it.

Folder properties, Security tab, with Modify permission granted to the local user account

Nexthink API credentials

The Nexthink Connector for Omnissa Horizon needs appropriate credentials to connect to the Nexthink Enrichment API. Nexthink stores the credentials safely in the credential store of the local user account you created earlier.

1

Create API credentials with the Enrichment API permission. Refer to the API credentials documentation for step-by-step guidance.

When you save the API credentials, a new window containing the Client ID and the Secret key appears. Make a note of both: they are not shown again once you close the window.

OAuth client credentials
2

On the server that will be running the Nexthink Connector for Omnissa Horizon, open PowerShell under the credentials of the local user you created earlier by running runas in the command line:

runas CLI
3

In the new PowerShell window, store the API credentials by running the following command:

Replace <Client ID> and <Secret key> with the values you noted down. Make a note of the TargetName you used with -Target: you need it for the configuration file.

PowerShell window

In the config.json configuration file, these credentials are stored in "NexthinkAPI".

The TargetName used with -Target is stored in "WindowsCredentialEntry".

Updating the configuration file

For the configuration file update, you need the API address of your Nexthink instance, <instance>.api.<region>.nexthink.cloud.

If you do not know your region, reach out to your Nexthink representative to obtain this information.

1

Locate the folder where you unzipped the Nexthink Connector for Omnissa Horizon.

2

Navigate to the Config folder and open the config.json file using a text editor.

3

The file has the following structure. In this procedure, you edit the "NexthinkAPI" section. You edit the "OmnissaEnvironments" section later, in Setting up a connection to an Omnissa Horizon environment, after you store the Omnissa Horizon credentials.

4

Change the following values under the "NexthinkAPI" section:

  • Replace the "HostFQDN" value with the URL of your Nexthink cloud API instance using the format <instance>.api.<region>.nexthink.cloud where <instance> and <region> are placeholders.

    • Replace <instance> with the name of the instance

    • Replace <region> with the name of one of the following regions:

      • us for the United States

      • eu for the European Union

      • pac for Asia-Pacific

      • meta for the Middle East, Turkey, and Africa

    • If needed, refer to the following URL example: gwy-eu-west-3-fuji-rest.api.eu.nexthink.cloud

  • Replace the placeholder in "WindowsCredentialEntry" with the TargetName of the API credentials you stored earlier, for example: "WindowsCredentialEntry": "nxt-omnissa-credentials",

Setting up a connection to an Omnissa Horizon environment

The previous section described the basic configuration of the Nexthink Connector for Omnissa Horizon. This section helps you set up a connection to an Omnissa Horizon environment. Repeat the procedures in this section for every Omnissa Horizon environment you connect to.

The connector reads the desktop pools, machines, RDS servers and farms from the REST API of the Horizon Connection Server. It also reads the base VMs, snapshots and VM templates that Horizon reads from vCenter Server. It signs in with a domain user account.

Creating an administrator account

The Nexthink Connector for Omnissa Horizon needs read-only access to the Horizon REST API. Create a domain user account without any special privileges and make a note of the username and password: you need them to store the Horizon credentials.

1

Log in to the Horizon Console.

2

Go to Settings > Administrators and select Add.

3

Search for the domain user account you created and select it.

4

Assign the user a read-only role on the root access group. The connector only signs in and reads desktop pools, machines, RDS servers and farms, and the base VMs, snapshots and VM templates from vCenter Server. If no predefined role grants this read access, create a custom role with these read privileges.

Setting up stored credentials

1

On the server that will be running the Nexthink Connector for Omnissa Horizon, open PowerShell under the credentials of the local user you created earlier by running runas in the command line:

runas CLI
2

In the new PowerShell window, store the credentials of the domain user account with the read-only Omnissa Horizon administrator role by running the following command:

Replace <domain\username> with the domain and user name of the domain user account, in the DOMAIN\username form, for example DOMAIN\svc_horizon_api. Replace <password> with its password.

Make a note of the TargetName you used: you need it for the configuration file.

PowerShell window

Updating the configuration file

Each Omnissa Horizon environment has its own section in the configuration file. The configuration file that comes with the connector contains an example of how to configure multiple environments. If needed, create a copy of the original config.json file for future reference.

1

Locate the folder where you unzipped the connector.

2

Navigate to the Config folder and open the config.json file using a text editor.

3

Scroll to the "OmnissaEnvironments" section. Keep one entry for each Omnissa Horizon environment you connect to. If you connect to a single environment, remove the second entry. Each entry looks similar to the following:

4

Change the following values in the entry:

  • Replace <environment-name-1> with a name for this Omnissa Horizon environment, for example Horizon Prod. You pass this name, in quotes, to the connector with -OmnissaEnvironment. Nexthink shows it in the virtualization.environment_name field.

  • Replace <host> with the address of the Horizon Connection Server, including https://, for example https://horizon.example.com.

  • Replace <omnissa-user-credentials-1> with the TargetName of the stored credentials you created earlier in PowerShell, for example nxt-omnissa-prod.

Testing the connector

The test is a real run: it reads the Omnissa Horizon environment and sends its data to Nexthink.

1

On the server that will be running the Nexthink Connector for Omnissa Horizon, open PowerShell under the credentials of the local user you created earlier using the runas command on the command line:

2

Change to the directory where you installed the connector, for example:

3

Run the Auto-Updater, which installs the connector module for the local user account:

4

Run the Runner for the environment:

Replace <environment name> with the Name of the environment in config.json, for example Horizon Prod.

5

Open the log file of the run, Logs\<environment name>\OmnissaConnector-<yyyyMMdd>.log in the connector folder, and review it for errors. A successful run ends with Stopping Omnissa connector <version> with exit code 0.

Setting up the scheduled tasks

Create one scheduled task for the Runner of each Omnissa Horizon environment, and one for the Auto-Updater.

1

Open the task scheduler and select Create task…

Create a task
2

In the General tab, name the task, for example Nexthink Horizon connector - Horizon Prod, and change the user to the local user account you created earlier, for example nxt-omnissa. Select Run whether user is logged on or not.

Task properties, General tab
3

In the Triggers tab, click New…. Under Advanced settings > Repeat task every, select 15 minutes and set for a duration of to Indefinitely. Click OK. Each run sends only the devices that changed since the previous run, so a short interval costs little.

New trigger, repeating the task every 15 minutes
4

In the Actions tab, click New… and enter the following values. Click OK.

  • Program/script: powershell.exe

  • Add arguments (optional): -ExecutionPolicy Bypass -File "C:\Program Files\Nexthink\Connectors\Omnissa\Omnissa-Connector-Runner.ps1" -OmnissaEnvironment "Horizon Prod", with the environment name from config.json

  • Start in (optional): the connector folder, for example C:\Program Files\Nexthink\Connectors\Omnissa

Edit action
5

Click OK to save the task. When prompted, enter the password of the local user account and click OK.

Confirm credentials
6

Repeat these steps for each other Omnissa Horizon environment, changing only the task name and the -OmnissaEnvironment value.

7

Repeat these steps once for the Auto-Updater, which installs the connector module for the local user account, with these differences:

  • Task name: for example Nexthink Horizon connector - Auto-Updater

  • Trigger: the same as the Runner, repeated every 15 minutes, so a new connector version is in use within 15 minutes.

  • Add arguments (optional): -ExecutionPolicy Bypass -File "C:\Program Files\Nexthink\Connectors\Omnissa\Omnissa-Connector-Auto-Updater.ps1"

Verifying the data in Nexthink

After the first run of the Runner scheduled task, open Investigations in Nexthink and run the following query:

Each row is a virtual machine the connector enriched, and the environment name shows which connection delivered it.

Where to go next

  • VDI Experience: the module Nexthink monitors virtual desktops with. The library pack below requires it.

  • Omnissa Horizon on-premises essentials: a library pack to install from the Nexthink Library. Its dashboards show the online and offline distribution of the virtual machines, their reboot health and registration, and their CPU, GPU, memory, storage and network load.


RELATED TOPIC

Last updated

Was this helpful?