I spend days trying to find the issue with one of my node not reporting CPU and Memory statistics. so I thought I share it here and it might save someone the pain I've been through:)
on the host that is not reporting CPU and RAM statistics, execute the following powershell:
Get-WmiObject Win32_PerfRawData_Tcpip_NetworkInterface
if it errors with Invalid query, this would be the cause of the data not been reporting on the Orion
.
PS C:\> Get-WmiObject Win32_PerfRawData_Tcpip_NetworkInterface
Get-WmiObject : Invalid query
At line:1 char:14
+ Get-WmiObject <<<< Win32_PerfRawData_Tcpip_NetworkInterface
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
Resolution:
Run the powershell command rebuilt performance counter
lodctr /r
#Info: Successfully rebuilt performance counter setting from system backup
wait for 10 minutes and try polling again.
This should solve the problem.
Hope this helps
Cheers,
Sam