-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check-windows-cpu-load: Get-Counter : Internal performance counter API call failed. Error: c0000bb8 #98
Comments
Thanks for opening an Issue! I will need more info on which version of the check you are running in order to help. Could you also share the command you are running (with args) and the output? Can you run the following command without error? |
Hi, thanks alot for your answer. Sure thats the command: These command is running successfully: Timestamp CounterSamples 21.10.2019 16:50:20 \srv01\processor(_total)% processor time : 21.10.2019 16:50:22 \srv01\processor(_total)% processor time : 21.10.2019 16:50:24 \srv01\processor(_total)% processor time : Any ideas? Thanks alot and best regards! |
Not able to reproduce, are you seeing this across multiple systems? |
Hi Derek Unfortunately, this error is displayed on all 6 server system. They are all the same version: OS Name: Microsoft Windows Server 2019 Standard And they run on different hardware, some are virtualized. |
Hi again it looks like the system could not include perfhelper.ps1. With Server 2016: OS Name: Microsoft Windows Server 2016 Datacenter everything works: Powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -N The Powershell versions are differen: Server 2016. PSVersion 5.1.14393.3053 Server 2019: PSVersion 5.1.17763.771 Which Powershell version do you use? Thanks alot and best regards |
Hi again again I think the problem comes from theComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\CurrentLanguage\009\Counter entry On Server 2016 the values are as follows: Processor Information On Server 2019 the values are: But the script still returns the values of the Server 2016. On Server 2019 at me its look like: If I enter it manually it works $Value = [System.Math]::Round((Get-Counter "\Processor Information(_total)% Processor Time" -SampleInterval 1 -MaxSamples 1).CounterSamples.CookedValue) |
Take a look at the Troubleshooting section of the Readme and see if that helps. |
Hi Derek, you mean this? C:\Windows\SysWOW64>lodctr /R Unfortunately not, still the same error. |
You'd have to determine the different between your systems as this seems isolated to your environment. Some troubleshooting steps to explore are to create a base box from disk and see if the issue can be reproduced or test on a vagrant cloud system to gather more information on how your environment could differ. If you still feel this is an issue related to this code base, please provide as much information to reproduce the issue (including system build) for us to be able to reproduce. |
Hi
Unfortunately, the following error message appears under Windows Server 2019 in the plugin check-windows-cpu-load:
outputGet-Counter : Internal performance counter API call failed. Error: c0000bb8.
At C:\opt\sensu\plugins\powershell\check-windows-cpu-load.ps1:48 char:32
Does anyone have an idea for the solution?
Thanks and Greetings
The text was updated successfully, but these errors were encountered: