Citrix Director Infrastructure Monitoring - missing metrics from delivery controller

book

Article ID: CTX696175

calendar_today

Updated On:

Description

There are no metrics available when you navigate to: Director > Infrastructure Monitoring > Delivery Controller.

Director > Settings > Connect Citrix components > Manage shows DDC State: Disconnected

image.png

CDF Controller captured on the affected delivery controller using module MonitorStackMonitoring shows multiple failures like:

FetchMetrics: The object could not be cast to a TimeSpan[]

FetchMetrics: The object could not be cast to a String[] or the array is empty.

FetchAndPersistMetrics failed for agent "DDC_FQDN" with error: System.InvalidOperationException: Cannot load Counter Name data because an invalid index '' was read from the registry.
   at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
   at System.Diagnostics.PerformanceCounterLib.get_NameTable()
   at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
   at System.Diagnostics.PerformanceCounterLib.CounterExists(String category, String counter, Boolean& categoryExists)
   at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
   at System.Diagnostics.PerformanceCounter.InitializeImpl()
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)
   at Citrix.Monitor.Logic.SystemMetricsService..ctor()
   at Citrix.Monitor.Logic.SystemMetricsService.<>c.<.cctor>b__19_0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at Citrix.Monitor.Logic.DdcMetricsProvider.GetMetricsOutput(IFmaLog logger, MonitorVirtualSiteContextBase virtualSiteContext, DirectorAgent agent)
   at Citrix.Monitor.Logic.DdcMetricsProvider.GetUsageMetricsRequestWithResponse(IFmaLog logger, MonitorVirtualSiteContextBase virtualSiteContext, DirectorAgent agent)
   at Citrix.Monitor.Repository.StackMonitoring.Services.MetricsService.FetchAndPersistMetrics(MonitorVirtualSiteContextBase virtualSiteContext, DirectorAgent agent)
   at Citrix.Monitor.Pipeline.Providers.StackMonitoring.BaseMetricsPollWorker`1.RunStackMonitoringPoll()

Collection completed for agent "DDC_FQDN" with status Failure in 2.78 seconds

 

Attempt to query specific performance counters on the delivery controller from PowerShell fails.

Queries:

Get-Counter -Counter "\Processor(_Total)\% Processor Time"
Get-Counter -Counter "\Memory\Available MBytes"
Get-Counter -Counter "\PhysicalDisk(_Total)\Disk Transfers/sec"
Get-Counter -Counter "\PhysicalDisk(_Total)\Avg. Disk sec/Transfer"
 
Get-CimInstance -Query "SELECT TotalPhysicalMemory FROM Win32_ComputerSystem"
Get-CimInstance -Query "SELECT LastBootUpTime FROM Win32_OperatingSystem"

Results:

Get-Counter : Internal performance counter API call failed. Error: c0000bc4.
Get-Counter : The specified object was not found on the computer.

 

Performance Monitor shows a warning during the attempt to add any of the counters:

 

image.png

image.png

 

Environment

"Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items." 

Cause

Windows performance counter corruption.

Resolution

Please refer to Microsoft documentation included in this article, which describes the manual rebuild process.

Issue/Introduction

Citrix Director does not display any metrics from a specific delivery controller.

Additional Information

Microsoft documentation: https://learn.microsoft.com/en-us/troubleshoot/windows-server/performance/manually-rebuild-performance-counters

 

CDF Control: https://www.citrix.com/downloads/citrix-tools/

Lodctr: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/lodctr