-
Notifications
You must be signed in to change notification settings - Fork 67
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
Wrong CPU Usage percentage #202
Comments
Strange. Nobody else reported that error. I need your check definition. So I can try to reproduce it. |
We had the same, first of all there is a factor of |
So the diff/command in our case is/was:
|
If i execute the check directly it also fails. With check_vmware_esx: |
same here with 7.03 |
I think i tracked down what the problem can be: in L178 of host_cpu_info.pm the array entry is wrong. It should be $$values[0][3]->value. This gives me exactly the same result as check_vmware_api.pl. Shall i open a pull request for this? edit: i forgot to mention that i tried it with both 6.5 and 7.0.3 ESXi versions. |
YeThx. Faster than my answer. |
…e_esx#202 Signed-off-by: Anton Fischl <github@fischl-online.de>
I'm having troubles with the CPU usage trying to monitor an ESXi host directly (not through vCenter).
It returns me an usage of 0.0n or 0.nn when it's absolutely wrong:
OK: CPU usage=0.16%|'cpu_usage'=0.16%;;;;
I tried with the old check_vmware_api.pl and it works fine:
CHECK_VMWARE_API.PL OK - cpu usage=43.98 % | cpu_usage=43.98%;;
My environment:
perl version:
v5.32.1
vmware SDK version:
vSphere SDK for Perl version: 6.5.0
Script 'vmware-cmd' version: 6.5.0
ESXi Hosts version: 6.5
The text was updated successfully, but these errors were encountered: