In a Citrix Virtual Apps and Desktops on-premises environment using PVS Target Devices 2507 LTSR CU1, ICA RTT and Network Latency metrics are not displayed in Director.
The issue does not occur on equivalent MCS-provisioned VDAs, where ICA RTT and Network Latency metrics are reported correctly.
Symptoms
The Windows Application Event Log Event ID 1300 from MetaFrameEvents: Citrix End User Experience Monitoring Service (SemsService) has unexpected terminations:
"The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code."
Investigation identified that the LocalService temporary directory required by the EUEM service was missing:
C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp
Because the folder did not exist, the EUEM service was unable to initialize required WMI components correctly, resulting in:
Step 1
Confirm the following components are installed on the VDA:
Expected Result: CitrixICA is enabled and uses IcaPerf.dll
If returned: False or Invalid namespace or RPC server unavailable:
Step 2
Recreate the Folder or execute Powershell
Expected Result: The command returns ICA RTT sample information from the active user session.
After completing the above steps:
1. Launch a new ICA session.
2. Verify ICA RTT values are displayed in Director.
3. Verify Network Latency metrics are populated.
Confirm the following BrokerAgent error is no longer generated
MachineDataProvider: IcaRTT data collection failed,System.Management.ManagementException: Invalid Namespace
Citrix End User Experience Monitoring Service (SemsService) has NO unexpected terminations(The Windows Application Event Log Event ID 1300)
ICA RTT and Network Latency Metrics Not Available in Director