Nagios XI Vmware Wizard Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Nagios XI Vmware Wizard Problem

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI Vmware Wizard Problem

Post by Box293 »

I suggest the most recent version of the VMware SDK be installed before troubleshooting any further.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Re: Nagios XI Vmware Wizard Problem

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Vmware Wizard Problem

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Re: Nagios XI Vmware Wizard Problem

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Vmware Wizard Problem

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Re: Nagios XI Vmware Wizard Problem

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Vmware Wizard Problem

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Re: Nagios XI Vmware Wizard Problem

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Vmware Wizard Problem

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked