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.
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
Nexthink Collector installed on the virtual machines of every Omnissa Horizon environment, as described in Configuring and deploying Collector for VMs.
Installed Windows PowerShell 5.1.
Execution policy set to Bypass.
The following PowerShell modules, installed for the local user account that runs the connector:
The lowest compatible version of Omnissa Horizon is 8 2309.
Hardware requirements
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
Hostaddress of each environment inconfig.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
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
PowerShellis 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.
Log on as an administrator to the server that will run the Nexthink Connector for Omnissa Horizon.
Launch the local users and groups console by running the following command from the Start Menu:

Right-click on the Users folder in the Local Users and Groups (Local) directory and select New user…
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

Select Create.
Open the local group policy editor by running the following command from the Start Menu:
Navigate to Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment and open the Log on as a batch job policy.
Open the policy and select Add User or Group to add the previously created user to the list.

Installing the connector
Download the Nexthink Connector for Omnissa Horizon.
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
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.

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.
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.

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:

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.

Updating the configuration file
For the configuration file update, you need the API address of your Nexthink instance, <instance>.api.<region>.nexthink.cloud.
Locate the folder where you unzipped the Nexthink Connector for Omnissa Horizon.
Navigate to the Config folder and open the config.json file using a text editor.
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.
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.cloudwhere<instance>and<region>are placeholders.Replace
<instance>with the name of the instanceReplace
<region>with the name of one of the following regions:usfor the United Stateseufor the European Unionpacfor Asia-Pacificmetafor 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 theTargetNameof 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.
Log in to the Horizon Console.
Go to Settings > Administrators and select Add.
Search for the domain user account you created and select it.
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
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:

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.

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.
Locate the folder where you unzipped the connector.
Navigate to the Config folder and open the config.json file using a text editor.
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:
Change the following values in the entry:
Replace
<environment-name-1>with a name for this Omnissa Horizon environment, for exampleHorizon Prod. You pass this name, in quotes, to the connector with-OmnissaEnvironment. Nexthink shows it in thevirtualization.environment_namefield.Replace
<host>with the address of the Horizon Connection Server, includinghttps://, for examplehttps://horizon.example.com.Replace
<omnissa-user-credentials-1>with theTargetNameof the stored credentials you created earlier in PowerShell, for examplenxt-omnissa-prod.
Testing the connector
The test is a real run: it reads the Omnissa Horizon environment and sends its data to Nexthink.
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:
Change to the directory where you installed the connector, for example:
Run the Auto-Updater, which installs the connector module for the local user account:
Run the Runner for the environment:
Replace <environment name> with the Name of the environment in config.json, for example Horizon Prod.
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.
Open the task scheduler and select Create task…

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.

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.

In the Actions tab, click New… and enter the following values. Click OK.
Program/script:
powershell.exeAdd arguments (optional):
-ExecutionPolicy Bypass -File "C:\Program Files\Nexthink\Connectors\Omnissa\Omnissa-Connector-Runner.ps1" -OmnissaEnvironment "Horizon Prod", with the environment name fromconfig.jsonStart in (optional): the connector folder, for example
C:\Program Files\Nexthink\Connectors\Omnissa

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

Repeat these steps for each other Omnissa Horizon environment, changing only the task name and the -OmnissaEnvironment value.
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-UpdaterTrigger: 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?

