Citrix SCOM Management Pack for XenApp and XenDesktop – Monitoring failure on connections live for more than 24 hours

Option 1: Delete cached connections

If you notice a warning in ComTrade.MP.XenDesktop.Service.log as described above, for the use of an application without a connection, force the Citrix MPXAXD Agent to monitor all active connections. To do this:

  • Stop the Citrix MPXAXD Agent Service on the MPXAXD Site Data Collector.
  • Delete the following files:
    • $DataDirconnection-event.json
    • $DataDirconnection-event-client-data.json
  • Start the Citrix MPXAXD Agent Service.

Repeat these steps every time this problem occurs.

Option 2: Increase the connection retention time

A long-lasting workaround to mitigate this problem is to increase the connection retention time on the agent (default is 24 hours). To do this, add a registry key, ConnectionEventsMaxAgeInHours on all Delivery Controllers. Set its value to the maximum number of hours you expect your connections to last. To add the new registry key:

Caution: Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Citrix recommends that you back up Windows Registry before changing it.

  1. In the Registry Editor, navigate to HKEY_LOCAL_MACHINESOFTWAREComTradeXenDesktop MP Agent
  2. Right-click and select New > D_WORD (32-bit)Value.
  3. Name the new key ConnectionEventsMaxAgeInHours and set its value to the number of hours you expect the longest connections in the monitored environment to last.
  4. Save the changes.

To apply the new setting, restart the Citrix MPXAXD Agent Service.

Note: This workaround might lead to increased memory consumption in large environments because data is stored for longer periods.

Related:

Leave a Reply