Any idea ?
check_vmware_api.pl 0.7.1 / Nagios XI 5.5.10
Using check_vmware_api and not able to get any data ( always 0.00kBps ) for VM Specific ( -N ) on " NET , IO " ( CPU, MEM & runtime are OK and replies with data from VM Specific)
e.g ./check_vmware_api.pl -D esxi01 -N linux01 -l NET -u "xxx" -p "xxx"
CHECK_VMWARE_API.PL OK - "linux01" net receive=0.00 KBps, send=0.00 KBps | net_receive=0.00;; net_send=0.00;;
CHECK_VMWARE_API.PL OK - "linux01" io usage=0 MB/s, read=0.00 MB/s, write=0.00 MB/s | io_usage=0;; io_read=0.00;; io_write=0.00;;
CHECK_VMWARE_API.PL OK - "linux01" cpu usage=62.00 MHz(1.08%), wait=39003.00 ms, ready=4.00 ms | cpu_usagemhz=62.00;; cpu_usage=1.08%;; cpu_wait=39003.00ms;; cpu_ready=4.00ms;;
CHECK_VMWARE_API.PL OK - "linux01" mem usage=8192.00 MB(5.99%), overhead=54.57 MB, active=491.52 MB, swapped=0.00 MB, swapin=0.00 MB, swapout=0.00 MB, memctl=0.00 MB | mem_usagemb=8192.00MB;; mem_usage=5.99%;; mem_overhead=54.57MB;; mem_active=491.52MB;; mem_swap=0.00MB;; mem_swapin=0.00MB;; mem_swapout=0.00MB;; mem_memctl=0.00MB;;
Will works with Datacenter or Host if without the VM host ( -N ).
e.g ./check_vmware_api.pl -D esxi01 -l NET -u "xxx" -p "xxx"
CHECK_VMWARE_API.PL OK - net receive=11430.00 KBps, send=40.00 KBps | net_receive=11430.00;; net_send=40.00;;
CHECK_VMWARE_API.PL OK - io commands aborted=0, io bus resets=0, io read latency=2 ms, write latency=20 ms, kernel latency=0 ms, device latency=7 ms, queue latency=0 ms | io_aborted=0;; io_busresets=0;; io_read=2ms;; io_write=20ms;; io_kernel=0ms;; io_device=7ms;; io_queue=0ms;;
check_vmware_api.pl - no data for NET & IO for VM specific
Re: check_vmware_api.pl - no data for NET & IO for VM specif
Can you provide some details on what version of VMWare you are running on your Infrastructure?
Do you know what version of the VMWare Perl SDK that you installed on the Nagios server?
Do you know what version of the VMWare Perl SDK that you installed on the Nagios server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_vmware_api.pl - no data for NET & IO for VM specif
Version of VMWare - VMware ESXi, 6.0.0, 6921384 & VMware ESXi, 6.5.0, 6765664
VMWare Perl SDK - VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.tar.gz
I had tried VMware Perl SDK both version 6.5.0-7397310 & 6.7.0-8156551 before and had others problems.
Correction, IO have results . Only NET no data .
VMWare Perl SDK - VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.tar.gz
I had tried VMware Perl SDK both version 6.5.0-7397310 & 6.7.0-8156551 before and had others problems.
Correction, IO have results . Only NET no data .
Re: check_vmware_api.pl - no data for NET & IO for VM specif
We were not able to recreate the issue in house. There are maybe some issues with obtaining the data from a "specific" interface on the VM, but the plugin does return net usage.
Examples:
Can you try downloading a large file on the VM that you are monitoring, and while doing so, run your check from the command line? Are you still getting zeros?
Examples:
Code: Select all
[root@main-nagios-xi libexec]# /usr/local/nagios/libexec/check_vmware_api.pl -H "x.x.x.x" -f "/usr/local/nagiosxi/etc/components/vmware/VMWARE_GUEST_auth.txt" -N "Ludmil_ModGearman_Worker" -l "NET" -s usage
CHECK_VMWARE_API.PL OK - "Ludmil_ModGearman_Worker" net usage=7606.00 KBps | net_usage=7606.00;;
[root@main-nagios-xi libexec]# /usr/local/nagios/libexec/check_vmware_api.pl -H "x.x.x.x" -f "/usr/local/nagiosxi/etc/components/vmware/VMWARE_GUEST_auth.txt" -N "Ludmil_ModGearman_Worker" -l "NET" -s send
CHECK_VMWARE_API.PL OK - "Ludmil_ModGearman_Worker" net send=7774.00 KBps | net_send=7774.00;;
[root@main-nagios-xi libexec]# /usr/local/nagios/libexec/check_vmware_api.pl -H "x.x.x.x" -f "/usr/local/nagiosxi/etc/components/vmware/VMWARE_GUEST_auth.txt" -N "Ludmil_ModGearman_Worker" -l "NET"
CHECK_VMWARE_API.PL OK - "Ludmil_ModGearman_Worker" net receive=0.00 KBps, send=6141.00 KBps | net_receive=0.00;; net_send=6141.00;;Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_vmware_api.pl - no data for NET & IO for VM specif
Tried transferring big files and IO & NET show zero data.
The script is working fine as using the same nagios server and queries another VM datacenter ( -D) vmhost (-N) , it collected the IO & NET data from some vmhosts but not all. Seems likely it have to do with the vmhost itself. Does is it requires to install vmware tools on the vmhost although some didn't installed also have response with data?
Updates: using check_vmware_esxi.pl (version 0.9.19) can ONLY get net usage but not net send & receive or io
The script is working fine as using the same nagios server and queries another VM datacenter ( -D) vmhost (-N) , it collected the IO & NET data from some vmhosts but not all. Seems likely it have to do with the vmhost itself. Does is it requires to install vmware tools on the vmhost although some didn't installed also have response with data?
Updates: using check_vmware_esxi.pl (version 0.9.19) can ONLY get net usage but not net send & receive or io
Re: check_vmware_api.pl - no data for NET & IO for VM specif
No, installing vmware tools is not required.Does is it requires to install vmware tools on the vmhost although some didn't installed also have response with data?
You are correct - I/O data is not available via the check_vmware_esxi.pl (version 0.9.19) plugin.Updates: using check_vmware_esxi.pl (version 0.9.19) can ONLY get net usage but not net send & receive or io
Again, we are not able to recreate the issue in-house. I am not sure why this is not working some some of your hosts. Perhaps we will need to move this to a support ticket in order to further troubleshoot the issue. Is opening a ticket via our support center is an option for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_vmware_api.pl - no data for NET & IO for VM specif
For the time been will use check_vmware_esx for the problem hosts.
Will check first as there might be others issues and opening a ticket if require
Thanks You
Will check first as there might be others issues and opening a ticket if require
Thanks You
Re: check_vmware_api.pl - no data for NET & IO for VM specif
Sounds good. We'll lock this thread for now.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.