Page 1 of 2

Nagios XI Vmware Wizard Problem

Posted: Thu Jan 23, 2020 2:55 pm
by biswajit.banerjee
Used Vmware perl SDK version 6.5 . On discovery of Guest VM on Vcenter having the following issue
Server version unavailable at 'https://xxxxxxxxxxxx:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 734.
Screen Shot attached

Re: Nagios XI Vmware Wizard Problem

Posted: Thu Jan 23, 2020 6:00 pm
by Box293
I suggest the most recent version of the VMware SDK be installed before troubleshooting any further.

Re: Nagios XI Vmware Wizard Problem

Posted: Thu Jan 23, 2020 8:48 pm
by biswajit.banerjee
Hi
The document https://assets.nagios.com/downloads/nag ... ios-XI.pdf Suggests not to use latest 6.7 version
Important: There have been some issues with SDK 6.7. We recommend downloading SDK 6.5 instead.

Re: Nagios XI Vmware Wizard Problem

Posted: Fri Jan 24, 2020 10:18 am
by lmiltchev
Try adding the line below in the vmware plugin that you are using right on the top (just below the comments):

Code: Select all

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
You could also try adding it to your shell, for example in bashrc file.

Some users reported that adding this line fixed their issues.

On the side note, can you actually connect to your server by running the following commands from the command line?

Code: Select all

cd /usr/lib/vmware-vcli/apps/general
./connect.pl --url https://x.x.x.x/sdk/vimService --username '<username>' --password '<password>'
You need to substitute '<username>' and '<password>' with the actual values. Thanks!

Re: Nagios XI Vmware Wizard Problem

Posted: Fri Jan 24, 2020 11:57 am
by biswajit.banerjee
I have Added
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

to /etc/bashrc and both /usr/local/nagios/libexec/check_vmware_api.pl and /usr/local/nagios/libexec/check_esx3.pl

But the Configuration wizard still shows same error .

Also output of

Code: Select all

# ./connect.pl --url https://xxxxxxxxxxxx/sdk/vimService --username 'xxxxxxxxxxxx' --password 'xxxxxxxxx'

Connection Successful

Re: Nagios XI Vmware Wizard Problem

Posted: Fri Jan 24, 2020 12:05 pm
by lmiltchev
OK, try reinstalling the SDK. When you see the "success" message:
Enjoy --the VMware team"
at the end of the install, check if there are any perl modules that are listed as "old". You may have to update some or all of these modules in order for the plugin to work correctly.

Re: Nagios XI Vmware Wizard Problem

Posted: Fri Jan 24, 2020 12:23 pm
by biswajit.banerjee
So reinstalled SDK got
Enjoy --the VMware team"
with Older Perl Modules
LWP 6.15 or newer
LWP::Protocol::https 6.04 or newer
Socket6 0.23 or newer
Net::HTTP 6.09 or newer

So updated then with
cpan -i modules

Now the Error has changed as attached
2.png

Re: Nagios XI Vmware Wizard Problem

Posted: Fri Jan 24, 2020 1:22 pm
by lmiltchev
You may need to add one more line to your plugin:

Example:

Code: Select all

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
require IO::Socket::SSL; IO::Socket::SSL -> import(); IO::Socket::SSL::set_ctx_defaults( SSL_verify_mode => 0 );
See this post:

https://support.nagios.com/forum/viewto ... 8&start=10

Re: Nagios XI Vmware Wizard Problem

Posted: Fri Jan 24, 2020 1:50 pm
by biswajit.banerjee
I have Added the mentioned lines in both the Plugins i.e /usr/local/nagios/libexec/check_vmware_api.pl and /usr/local/nagios/libexec/check_esx3.pl

But did not help . The error remains the same

Re: Nagios XI Vmware Wizard Problem

Posted: Fri Jan 24, 2020 1:59 pm
by lmiltchev
I would recommend opening a new support ticket via our support center here:

https://support.nagios.com/tickets/

in order to further troubleshoot the issue.