VMware Plugin Issue
VMware Plugin Issue
My issue is that service checks for ESXi hosts are timing out.
I followed the instructions and installed the VMware plugin using this guide:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
I have verified that I have correctly entered the username/password.
The Nagios XI server is able to connect to the ESXi hosts on 443/tcp.
Not sure where to start with troubleshooting?
I followed the instructions and installed the VMware plugin using this guide:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
I have verified that I have correctly entered the username/password.
The Nagios XI server is able to connect to the ESXi hosts on 443/tcp.
Not sure where to start with troubleshooting?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: VMware Plugin Issue
Were you able to run the wizard successfully?
Did you run the guest wizard as well?
Can you run any of the check commands from the command line?
Did you run the guest wizard as well?
Can you run any of the check commands from the command line?
Re: VMware Plugin Issue
Yes, the wizard was successful.
I'm not sure what you mean by the guest wizard, though?
I'm not sure what you mean by the guest wizard, though?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: VMware Plugin Issue
When you run the wizard, on Step 1 you have 2 choicesbenjohns wrote:I'm not sure what you mean by the guest wizard, though?
Monitor the VMware host
or
Monitor a guest VM on the VMWare host
I was referring to the later
Re: VMware Plugin Issue
Guest Selection errors out:
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198.
SOAP request error - possibly a protocol issue: 500 read timeout
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: VMware Plugin Issue
I'm not sure this will fix all of the issues, but this error is references in the setup doc you followed on page 10
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: VMware Plugin Issue
I ran the command as root on the XI server, then re-ran the wizard both to monitor a host and vm on a host:
The host service checks return: (Service check timed out after 180.03 seconds)
Trying to add a Guest VM via the wizard returns: SOAP request error - possibly a protocol issue: 500 read timeout
The host service checks return: (Service check timed out after 180.03 seconds)
Trying to add a Guest VM via the wizard returns: SOAP request error - possibly a protocol issue: 500 read timeout
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: VMware Plugin Issue
This really sounds like you cannot reach the ESXi host from the Nagios XI server. Are they on the same networks?benjohns wrote:I ran the command as root on the XI server, then re-ran the wizard both to monitor a host and vm on a host:
The host service checks return: (Service check timed out after 180.03 seconds)
Trying to add a Guest VM via the wizard returns: SOAP request error - possibly a protocol issue: 500 read timeout
Or, is the ESXi server under heavy load or short on resources?
Re: VMware Plugin Issue
They are on the same subnet. CPU usage is only ~9%, memory usage at ~50%
When I run the command manually, I do get the correct output:
# ./check_esx3.pl -H [IP] -u [username] -p [password] -l CPU
ESX3 OK - cpu usage=3785.00 MHz (5.87%) | cpu_usagemhz=3785.00Mhz;; cpu_usage=5.87%;;
When I manually run the command listed in XI, it also works:
# ./check_esx3.pl -H "[IP]" -f "/usr/local/nagiosxi/etc/components/vmware/[FQDN]_auth.txt" -l "CPU"
ESX3 OK - cpu usage=4318.00 MHz (6.70%) | cpu_usagemhz=4318.00Mhz;; cpu_usage=6.70%;;
FWIW: Those manual checks come back in ~3 seconds
When I run the command manually, I do get the correct output:
# ./check_esx3.pl -H [IP] -u [username] -p [password] -l CPU
ESX3 OK - cpu usage=3785.00 MHz (5.87%) | cpu_usagemhz=3785.00Mhz;; cpu_usage=5.87%;;
When I manually run the command listed in XI, it also works:
# ./check_esx3.pl -H "[IP]" -f "/usr/local/nagiosxi/etc/components/vmware/[FQDN]_auth.txt" -l "CPU"
ESX3 OK - cpu usage=4318.00 MHz (6.70%) | cpu_usagemhz=4318.00Mhz;; cpu_usage=6.70%;;
FWIW: Those manual checks come back in ~3 seconds
Re: VMware Plugin Issue
I added CPUs & 4GB of memory to the XI server, but am still getting the same errors.
Server now has 4 CPUs (1 previously) and 8GB of Memory (4GB previously)
Server now has 4 CPUs (1 previously) and 8GB of Memory (4GB previously)