Hi All,
We are trying to monitor SolarWinds APE servicers via a Component monitor - Windows Service Monitor.
But for some APEs status shows Unknown status. While testing gives the following test result "Test failed with "Unknown" status on Invalid query."


Debug logs show the following ERROR
2023-08-13 20:25:36,622 [8] [C1109556] [WU:(null)] ERROR SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader - Exception caught.
SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiMappingException: Unable to collect WMI mapping information for given category value: Solarwinds: Job Engine v2 and counter: Jobs Lost for target: X.X.X.X
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.CounterService.<FetchCounterInfo>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<RetrieveQueryInfoFromNode>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<RetrieveQueryInfo>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<Read>d__18.MoveNext()
2023-08-13 20:25:36,638 [8] [C1109556] [WU:(null)] WARN SolarWinds.APM.Probes.PerformanceCounters.Fetching.Handlers.CounterReaderProcessor - Counter failed. Target:X.X.X.X, Instance:, Category:Solarwinds: Job Engine v2, Counter:Jobs Lost, ErrorCode:Unhandled, OSError:0x80131500. Message: Unable to collect WMI mapping information for given category value: Solarwinds: Job Engine v2 and counter: Jobs Lost for target: X.X.X.X
2023-08-13 20:25:36,652 [8] [C1109556] [WU:(null)] WARN SolarWinds.APM.Probes.PerformanceCounters.Fetching.Handlers.FetchingHandler - Was unable to fetch all counters using WINRM. Still 1 invalid results.
2023-08-13 20:25:39,160 [142] [C1109556] [WU:(null)] DEBUG SolarWinds.APM.Probes.PerformanceCounters.Fetching.Handlers.FetchingHandler - Try fetching counters using WINRM, attempt 1
2023-08-13 20:25:39,160 [142] [C1109556] [WU:(null)] DEBUG SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.CounterService - Cannot find query info for category: 'Solarwinds: Job Engine v2', counter: 'Jobs Lost', target: 'X.X.X.X'.
2023-08-13 20:25:39,161 [142] [C1109556] [WU:(null)] ERROR SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader - Exception caught.
SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiMappingException: Unable to collect WMI mapping information for given category value: Solarwinds: Job Engine v2 and counter: Jobs Lost for target: X.X.X.X
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.CounterService.<FetchCounterInfo>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<RetrieveQueryInfoFromNode>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<RetrieveQueryInfo>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<Read>d__18.MoveNext()
2023-08-13 20:25:39,174 [142] [C1109556] [WU:(null)] WARN SolarWinds.APM.Probes.PerformanceCounters.Fetching.Handlers.CounterReaderProcessor - Counter failed. Target:X.X.X.X, Instance:, Category:Solarwinds: Job Engine v2, Counter:Jobs Lost, ErrorCode:Unhandled, OSError:0x80131500. Message: Unable to collect WMI mapping information for given category value: Solarwinds: Job Engine v2 and counter: Jobs Lost for target: X.X.X.X
2023-08-13 20:25:39,179 [142] [C1109556] [WU:(null)] WARN SolarWinds.APM.Probes.PerformanceCounters.Fetching.Handlers.FetchingHandler - Was unable to fetch all counters using WINRM. Still 1 invalid results.
2023-08-13 20:25:41,699 [157] [C1109556] [WU:(null)] DEBUG SolarWinds.APM.Probes.PerformanceCounters.Fetching.Handlers.FetchingHandler - Try fetching counters using WINRM, attempt 2
2023-08-13 20:25:41,699 [157] [C1109556] [WU:(null)] DEBUG SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.CounterService - Cannot find query info for category: 'Solarwinds: Job Engine v2', counter: 'Jobs Lost', target: 'X.X.X.X'.
2023-08-13 20:25:41,699 [157] [C1109556] [WU:(null)] ERROR SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader - Exception caught.
SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiMappingException: Unable to collect WMI mapping information for given category value: Solarwinds: Job Engine v2 and counter: Jobs Lost for target: X.X.X.X
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.CounterService.<FetchCounterInfo>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<RetrieveQueryInfoFromNode>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<RetrieveQueryInfo>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at SolarWinds.APM.Probes.PerformanceCounters.Fetching.Readers.Wmi.WmiCounterReader.<Read>d__18.MoveNext()