VMware Plugin Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benjohns
Posts: 20
Joined: Wed Jan 17, 2018 2:27 pm

VMware Plugin Issue

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: VMware Plugin Issue

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benjohns
Posts: 20
Joined: Wed Jan 17, 2018 2:27 pm

Re: VMware Plugin Issue

Post by benjohns »

Yes, the wizard was successful.

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benjohns
Posts: 20
Joined: Wed Jan 17, 2018 2:27 pm

Re: VMware Plugin Issue

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: VMware Plugin Issue

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benjohns
Posts: 20
Joined: Wed Jan 17, 2018 2:27 pm

Re: VMware Plugin Issue

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: VMware Plugin Issue

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benjohns
Posts: 20
Joined: Wed Jan 17, 2018 2:27 pm

Re: VMware Plugin Issue

Post 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
benjohns
Posts: 20
Joined: Wed Jan 17, 2018 2:27 pm

Re: VMware Plugin Issue

Post 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)
Locked