Page 2 of 2

Re: VMware ESXi SOAP request error

Posted: Mon Jul 08, 2019 4:03 pm
by tgriep
There are other plugin out there but I feel they may fail the same.
The error suggest that there is an temporary authentication issue which causing it to generate the error and the next time it runs, it works.
Go here and search for an alternate plugin.
https://exchange.nagios.org/

What version of the plugin are you running? Run this to see.

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl --version

Re: VMware ESXi SOAP request error

Posted: Mon Jul 08, 2019 5:57 pm
by marctonk
If I had to guess this is the most rebust plugin for this particular job. I'll look through and see if there is anything to test with.

I will create a new account on the ESXi host and test to see if that makes a difference.

UPDATE: A new account with full credentials did not work either. Still seeing the SOAP error's.

Running the command the output is:
check_vmware_api_pl 0.7.1

Re: VMware ESXi SOAP request error

Posted: Tue Jul 09, 2019 10:55 am
by tgriep
I's hard to troubleshoot an intermittent issue but here is what I suggest to do next.
If you can connect the server to the internet, them reinstall the VMWare Perl SDK again and when it asks to download the Perl modules, say yes and wait for them to install.
It could be that the supplied Perl Modules with the SDK need to be updated.

Re: VMware ESXi SOAP request error

Posted: Tue Jul 09, 2019 6:04 pm
by marctonk
Unfortunately this is a completely offline environment. Internet access is not an option. When looking at VMware's website I am running the newest version of VMware vSphere Perl SDK 6.5. I will see about bringing in a newer patch set, but the set we have is from May 1st 2019.

Re: VMware ESXi SOAP request error

Posted: Wed Jul 10, 2019 9:13 am
by tgriep
One thing you can do, in the VMWare installer folder is a lib folder, those are the Perl modules that are installed if you do not download newer versions.
Find and download newer versions on an internet connected system and install them on the server to see if it helps.

Re: VMware ESXi SOAP request error

Posted: Wed Jul 10, 2019 6:03 pm
by marctonk
I'll look into doing that this week.

I went ahead and reinstalled and noticed this after the successful installation prompt. From other threads and documentation it says to ignore it. But it seems like this could be the main problem.

"The following Perl modules were found on the system but may be too old to work with vSphere CLI:
MIME::Base64 3.14 or newer
Try::Tiny 0.22 or newer
LWP 6.15 or newer
Socket6 0.23 or newer
IO::Socket::INET6 2.71 or newer
Net::HTTP 6.09 or newer"

Re: VMware ESXi SOAP request error

Posted: Thu Jul 11, 2019 1:27 pm
by tgriep
That list would be the first packages to upgrade if you can.