check_vsphere_xi.py incorrect cpu usage
Posted: Tue Jun 18, 2024 4:38 am
Hi,
I've just finished to install a new Nagios server release 2024R1.1.4 on RHEL 8.10
I'm trying to monitor a virtual machine host on vCenter 8 server using the new wizard vSphere in python mode (so without VMware SDK)
The generating command is:
python3 /usr/local/nagios/libexec/check_vsphere_xi.py -H "my_vCenter" -f "/usr/local/nagiosxi/etc/components/vsphere/my_vCenter.txt" -N "my_VM" -l "CPU" "" "" "" "" ""
And the result is:
OK: my_VM cpu usage=83.0 MB (380.00%), wait=19346.00 ms, ready=87.00 ms | cpu_usagemhz=83.00;; cpu_usage=380.00%;; cpu_wait=19346.00ms;; cpu_ready=87.00ms;;
So you can see that the cpu usage is not correct. The return value is in MB and the percent is also incorrect. Other values are correct.
Thanks for your help,
EVT
I've just finished to install a new Nagios server release 2024R1.1.4 on RHEL 8.10
I'm trying to monitor a virtual machine host on vCenter 8 server using the new wizard vSphere in python mode (so without VMware SDK)
The generating command is:
python3 /usr/local/nagios/libexec/check_vsphere_xi.py -H "my_vCenter" -f "/usr/local/nagiosxi/etc/components/vsphere/my_vCenter.txt" -N "my_VM" -l "CPU" "" "" "" "" ""
And the result is:
OK: my_VM cpu usage=83.0 MB (380.00%), wait=19346.00 ms, ready=87.00 ms | cpu_usagemhz=83.00;; cpu_usage=380.00%;; cpu_wait=19346.00ms;; cpu_ready=87.00ms;;
So you can see that the cpu usage is not correct. The return value is in MB and the percent is also incorrect. Other values are correct.
Thanks for your help,
EVT