This article has been updated to reference Goliath Agent version 12.0 and newer.
Goliath Performance Monitor has the ability to alert on unregistered Citrix Virtual Desktops (VDI) out of the box (see screenshot below). However, many would like to alert on unregistered XenApp Servers. To do so, we can leverage our 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 Configure - Monitoring Rules page
- Select and edit the rule named Citrix XenDesktop - VDI Session & VDI Availability
- Enable the checkbox option for Unregistered VDI
How to monitor and alert for unregistered Citrix XenApp Servers:
- Navigate to the Configure - Monitoring Rules page
- Click the New button
- Chose the option for Advanced Watch
- Configure the Program Name field to be the following:
-
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