How to manage Citrix servers

Prerequisites for monitoring Citrix platforms

Warning: depending on the version of Citrix software, prerequisites and available checkpoints differ.

Citrix XenApp and XenDesktop version 7 and above

 

Citrix-XenApp-ConcurrentSessions Collecting the average number of Citrix concurrent sessions, and the number of disconnected sessions in a time interval that must match the control frequency. Notifies when a threshold is exceeded (warning and critical) on the total number of sessions and the number of disconnected sessions. Configuration: set value for the alert state, set value for critical condition, account and login password to XenDesktop and XenApp Web service OData.
Citrix-XenApp-Session-Opening-avg

 

Collects the average time taken to login to Citrix and number of logins in the time interval that must match the control frequency. Notifies when a threshold is exceeded (warning and critical) on the average duration of the login. Configuration: identifying the values between [] stated in /etc/freetds.conf on the monitoring server, a user account and password with access to the base of Citrix Director, insert values to the alert state threshold and to the critical condition.
Citrix-XenApp-Session-Opening-Max

 

Collects the maximum time taken to login to Citrix and number of logins in the time interval that must match the control frequency. Notifies when a threshold is exceeded (warning and critical) on the average duration of the login. Configuration: identifying the values between [] stated in /etc/freetds.conf on the monitoring server, a user account and password with access to the base of Citrix Director, insert values to the alert state threshold and to the critical condition.

Citrix plugins v7.x DO NOT work under the ServiceNav Box version Ubuntu 12.04 because they require installation of the Kerberos5 package.

KDC = Key distribution center => the central server authentication => Active directory.

Citrix monitoring through authentication to a Web service using an AD account and the Kerberos protocol.

The SNB (ServiceNavBox) must first obtain the permission of the KDC to authenticate to the webservice. To do this, go find a ticket on the KDC: this is automatically managed by the Citrix plugin. However a manual configuration is required on the box.

On the Citrix side, we need access to the API. You can check access with the following URL:

http://< IP >/Citrix/Monitor/OData/v1/Methods

Configuration

Login to the ServiceNav Box.

Configure the file /etc/krb5.conf:

nano /etc/krb5.conf

In the section [libdefaults]: change the default_realm:

default_realm = DOMAIN

For example: default_realm = COSERVIT

In the section [realms]: add a confuguration entry:

DOMAIN= {
Kdc = @IP_KDC(AD server)
}

For example:

COSERVIT = {
kdc = 192.168.1.250
}

Citrix XenApp and XenDesktop version 5.5, 6.0 and 6.5

Configuration :

  • Windows account – Admin: username password and domain (optional) for a user with remote WMI access
  • alert threshold
  • critical threshold
Citrix-XenApp-Counter-ApplicationEnumerationsPersec The number of non-XML-based enumerations (requests for application lists) per second. This counter is configured on the XML broker or Citrix server responsible for making requests on the Citrix farm.
Citrix-XenApp-Counter-ApplicationResolutionsPersec The number of resolutions (applicable launch requests) per second. This counter is  configured on the XML broker.
Citrix-XenApp-Counter-ApplicationResolutionTimems The time in milliseconds that a resolution took to complete. This is also the time required to determine the “least-loaded” server during an application launch.
Citrix-XenApp-Counter-AverageLicenseCheckOutResponseTimems The average license check-out response time in milliseconds.
Citrix-XenApp-Counter-DataStoreConnectionFailure The number of minutes that the XenApp server has been disconnected from the data store. Threshold should take into account events such as reboots and scheduled maintenance.
Citrix-XenApp-Counter-FilteredApplicationEnumerationsPersec The number of XML-based enumerations (requests for application lists) per second This counter is  configured on the XML broker.
Citrix-XenApp-Counter-LastRecordedLicenseCheckOutResponseTimems The last recorded license check-out response time in milliseconds. A value of more than 5000 milliseconds indicates a performance issue at the license server.
Citrix-XenApp-Counter-LicenseServerConnectionFailure The duration of disconnection from the XenApp server license server, in minutes.
Citrix-XenApp-Counter-NumberofbusyXMLthreads The number of XML threads currently being processed. There are 16 worker threads in the Citrix XML Service. A count of 16 or more shows that XML requests are not being processed in a timely manner.
Citrix-XenApp-Counter-ResolutionWorkItemQueueReadyCount The number of resolution work items (related to application launches) that are ready to be executed. A value above 0 indicates that requests are being queued while IMA handles other requests.
Citrix-XenApp-Counter-WorkItemQueueReadyCount The number of work items that are ready to be executed. A value above 0 indicates that requests are being queued while IMA handles other requests. This counter should not be over 1 for an extended period of time.

XML Broker configuration

Facebook
Google+
Google+
http://servicenav.coservit.com/documentation/manage-citrix-servers/
Youtube
Youtube
LinkedIn