Goliath Performance Monitor has the ability to alert on unregistered Citrix Virtual Desktops (VDI) out of the box. To alert on unregistered XenApp Servers, leverage the custom monitoring to execute a query on a scheduled basis to a check a registry key which includes if the VDA is registered or unregistered. See full details outlined below.
How to monitor and alert for unregistered Citrix VDI:
- Navigate to the Management - Monitors page.
- Select and edit the rule named Citrix XenDesktop - VDI Session & VDI Availability.
- Select the checkbox option for Unregistered VDI.
How to monitor and alert for unregistered Citrix XenApp Servers:
- Navigate to the Management - Monitors page.
- Click New.
- Select Type, for Advanced Watch
- In the Options tab, add the following in the Program Name field.
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Configure the Cmd-line Options field to be the following:
$reg = ((GP -Path 'HKLM:\SOFTWARE\Citrix\VirtualDesktopAgent\State' -Name Registered).Registered); exit $reg
- Configure the "exit code" to be "=2", if something other then 2 is returned it will trigger an alert
See article Configure Advanced Watch Rules for full configuration details for creating AdvancedWatch rules.