Page 1 of 4

VMware Plugin Issue

Posted: Mon Feb 26, 2018 6:06 pm
by benjohns
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?

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 10:22 am
by scottwilkerson
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?

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 10:27 am
by benjohns
Yes, the wizard was successful.

I'm not sure what you mean by the guest wizard, though?

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 1:49 pm
by scottwilkerson
benjohns wrote:I'm not sure what you mean by the guest wizard, though?
When you run the wizard, on Step 1 you have 2 choices

Monitor the VMware host
or
Monitor a guest VM on the VMWare host

I was referring to the later

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 2:37 pm
by benjohns
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

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 3:55 pm
by scottwilkerson
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

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 4:22 pm
by benjohns
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

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 4:41 pm
by scottwilkerson
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
This really sounds like you cannot reach the ESXi host from the Nagios XI server. Are they on the same networks?

Or, is the ESXi server under heavy load or short on resources?

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 5:00 pm
by benjohns
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

Re: VMware Plugin Issue

Posted: Tue Feb 27, 2018 5:21 pm
by benjohns
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)