Getting started with Infrastructure Monitoring
Note:
The following three steps are valid only for Provisioning Service and StoreFront components monitoring.
Step 1: Installation of Citrix Infrastructure Monitor
Perform the following steps to complete the installation on the target component to establish connection for secure data collection.
Step 1.1: Identify the target components
Identify the target components such as Provisioning Service or StoreFront servers which need to be monitored.
Step 1.2 Download Citrix Infrastructure Monitor
You can download CitrixInfraMonitor.msi
from the Citrix downloads page on the target server identified in Step 1.1.
Step 1.3: Run the Citrix Infrastructure Monitor
Run the CitrixInfraMonitor.msi
installer on the target component by following the instructions in the installation wizard.
Note:
Users with administrative privileges can install and configure Citrix Infrastructure Monitor on the target component.
Once the installation is successful, you can view the Citrix Infrastructure Monitor Service in the Services section:
Step 1.4: Get the registration token
Get the token provided in the RegistrationToken.txt
file at C:\ProgramData\Citrix\InfraMonitor\RegistrationToken.txt
in the system where Citrix Infrastructure Monitor is installed and keep it ready for use in Step 3: Register Citrix Infrastructure Monitor.
Note:
Once you successfully install
CitrixInfraMonitor.msi
, the installer creates an exception for the 9595 port. If you are using any third-party firewall, you might have to allow TCP communication for this port manually for using the Citrix Infrastructure Monitoring service.
[Optional] Step 2: Configure HTTPS for Citrix Infrastructure Monitor
Note:
Citrix Infrastructure Monitor service works in HTTP mode as well and in this case, the following configuration isn’t required. However, we recommend you to use in https mode. Perform the following steps only if you need to configure https for Citrix Infrastructure Monitor.
Step 2.1: Upload the certificate to the machine
-
Get a
PFX
certificate for your machine where Citrix Infrastructure Monitor is installed. For more information on PFX file generation, see How to create a PFX file.Note:
You can use password protected PFX files also.
-
Upload the certificate to the machine to any location.
Step 2.2: Import the certificate to computer certificates
- Click Start > Run > type
mmc
, and then click OK. The Console 1 - [Console Root] window appears. -
On the File menu, click Add/Remove Snap-in. The Add or Remove Snap-ins window appears.
-
Under Snap-in, double-click Certificates. The Certificates snap-in window appears.
-
Select Computer account, and then click Next. The Select Computer window appears.
- Select Local computer.
- Click Finish. The Certificates (Local Computer) section appears on the list of selected snap-ins for the new console.
- Click OK.
-
Expand Certificates, right-click Personal > All Tasks > Import. The Welcome to the Certificate Import Wizard appears.
-
Select Next > Browse Files. Navigate to the location where you uploaded the PFX file, change the file type to All files and then select the respective PFX certificate.
- Enter the PFX Password. You can leave it blank if there is no password.
- Click Next.
-
For the Certificate Store, make sure that the Place all certificates in the following store option is selected and the Certificate store is selected as Personal.
- Click Next.
- Review the details and click Finish.
- Wait for confirmation. The The import was successful message appears.
- Navigate to Certificates > Personal and ensure that the certificate is present.
- Delete the PFX certificate file from the machine.
Step 2.3: Provide read access to certificate
- Right-click on the imported certificate > All Tasks > Manage Private Keys.
- In the dialog that opens, select Add, and then search for Network Service. Click OK.
- Select NETWORK SERVICE under Group or user names.
- Allow Read access under Permissions for NETWORK SERVICE.
- Click OK.
Step 2.4: Obtain the Thumbprint
- Double-click on the imported certificate.
- In the dialog that opens, navigate to the Details tab and scroll to the bottom.
-
Click Thumbprint.
- Copy the value and keep it ready for the next step.
Step 2.5: Setting the environment variable
- Open Control Panel.
- Search for environment and select Edit the system environment variables.
-
Under System Variables (for all users), click New.
- Specify the Variable name as DIRECTOR_AGENT_HTTPS_CERTIFICATE_THUMBPRINT.
- Specify the thumbprint from the previous step under Variable value.
- Click OK.
Step 2.6: Restart CitrixInfraMonitorService
-
Open PowerShell and run the following command:
Restart-Service CitrixInfraMonitorService <!--NeedCopy-->
-
Ensure that the HTTPS is enabled by capturing the CitrixInfraMonitorService module and looking for the log line Start to listen on HTTPS….
Step 2.7: Enable HTTPs in Monitor configuration
Run the following command on a Delivery Controller machine:
Set-MonitorConfiguration -DirectorAgentEnableHttps $true
<!--NeedCopy-->
Step 3: Register Citrix Infrastructure Monitor
You can register Citrix Infrastructure Monitor using the following:
- Director UI
- PowerShell SDK
From Director UI
Complete the registration on the Director UI using the following steps:
Step 3.1: Navigate to the Connect Citrix Components page
Click Settings > Connect Citrix Components > Manage.
Or,
Click Infrastructure > Manage.
Step 3.2: Enter component details
On the Connect Citrix Components screen, click Create connection. The Create a connection window appears.
Ensure the CitrixInfraMonitor.msi
is downloaded and installed on the target. For more information, see Step 1 in this document. Follow the instructions on the screen, and populate the component details required to establish a secure connection.
- Select a component type from the drop-down list. The component can be Provisioning Service or StoreFront.
- Enter the host name.
- Enter the domain name.
- Enter the user name of the Provisioning Service or StoreFront machine.
- Enter the password of the Provisioning Service or StoreFront machine.
Step 3.3: Authorize the connection
Get the Citrix Infrastructure Monitor token from the RegistrationToken.txt
file at C:\ProgramData\Citrix\InfraMonitor\RegistrationToken.txt
in the system where the Citrix Infrastructure Monitor is installed.
Enter the fetched token details in the Director UI. This token authorizes the connection between the site and component.
The token text present in the RegistrationToken.txt
file is regenerated when you restart the Citrix Infrastructure Monitor service. After the registration is successful, the token file is deleted from the machine. If you need to recreate a fresh token file for any reason, restart the Citrix Infrastructure Monitor service. For security reasons, the token file is removed after three failed registration attempts with an invalid token.
Step 3.4: Create a connection
Once the details are populated, click Create. The created connection is available under the list of connections on the Connect Citrix Components page.
Using remote PowerShell SDK
Prerequisite:
- Ensure that the Citrix Infrastructure Monitor is installed on the StoreFront or PVS machine.
Register the Citrix Infrastructure Monitor in DDC to communicate with the PVS or StoreFront machine. This registration is to send the infrastructure health metrics collected at the PVS or StoreFront machine to the DDC.
Run the following PowerShell command on the Delivery Controller to register for the Citrix Infrastructure Monitor:
Add-MonitorDirectorAgent -Fqdn <FQDN of component> -Component <component> -Domain <domain> -Username <username> -Password <password> -Token <token>
<!--NeedCopy-->
Note:
The user name and password are optional parameters. However, if you don’t provide these parameters, some of the metrics won’t be available for you.
The parameters of the preceding command are as follows:
Parameter | Description |
---|---|
Fqdn |
FQDN of the PVS or StoreFront server. |
Component |
The component that you’re onboarding. For example: PVS or SF. PVS stands for Citrix Provisioning and SF stands for StoreFront. |
Domain |
The domain in which all components are a part of. |
Username |
User name of the admin user. |
Password |
Password of the admin user. |
Token |
Get the Citrix Infrastructure Monitor token from the RegistrationToken.txt file at C:\ProgramData\Citrix\InfraMonitor\RegistrationToken.txt in the system where the Citrix Infrastructure Monitor is installed. |
Note:
The token text present at the
RegistrationToken.txt
file is regenerated when you restart the Citrix Infrastructure Monitor service. After the registration is successful, the token file is deleted from the machine. If you need to re-register, restart the Citrix Infrastructure Monitor service.For security reasons, the token file is removed after three failed registration attempts with an invalid token.
Once you successfully register the PVS or StoreFront machine, the machine name details appear on the Director > Infrastructure tab.
A sample command to register for the Citrix Infrastructure Monitor is as follows:
In this article
- Step 1: Installation of Citrix Infrastructure Monitor
-
[Optional] Step 2: Configure HTTPS for Citrix Infrastructure Monitor
- Step 2.1: Upload the certificate to the machine
- Step 2.2: Import the certificate to computer certificates
- Step 2.3: Provide read access to certificate
- Step 2.4: Obtain the Thumbprint
- Step 2.5: Setting the environment variable
- Step 2.6: Restart CitrixInfraMonitorService
- Step 2.7: Enable HTTPs in Monitor configuration
- Step 3: Register Citrix Infrastructure Monitor