VMware Configuration Wizard Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rb8telitcom
Posts: 17
Joined: Tue Aug 21, 2018 1:40 pm

VMware Configuration Wizard Error

Post by rb8telitcom »

Trying to use the VMware Configuration Wizard and I am getting:
Error: It appears as though you have not installed the VMware SDK or ESX plugins on your Nagios XI server. You must have these components properly installed on your system before using this wizard.

The vmware SDK is installed and working as is the plugin.
# /usr/bin/vmware-cmd --version
vSphere SDK for Perl version: 6.7.0
Script 'vmware-cmd' version: 6.7.0

# /usr/local/nagios/libexec/check_esx3.pl --version
check_esx3.pl 0.7.1

<> parameters redacted from below example
# /usr/local/nagios/libexec/check_esx3.pl -D <vcenter> -u <user>$ -p <password> -H <host> -l runtime -s issues
CHECK_ESX3.PL OK - No config issues

System
Nagios XI version: 5.5.2
XI installed from: source
CentOS Linux release 7.5.1804 (Core)
Gnome is not installed

Plug in
vmware 1.7.1

Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMware Configuration Wizard Error

Post by lmiltchev »

I would recommend that you reinstall SDK on your Nagios XI server, but make sure that you install some of the following perl modules BEFORE attempting the SDK install (in case they are not installed already):

Code: Select all

cpan -i YAML
yum install libxml2-devel xml2
yum install libuuid-devel
cpan -i UUID
cpan -i XML::LibXML
cpan -i Socket
cpan -i Socket6
cpan -i IO::Socket::INET6
yum install perl-Module-Build
Next, rerun the vmware-install.pl script:

Code: Select all

cd /tmp/vmware-vsphere-cli-distrib
./vmware-install.pl
Optionally, you could update some of the modules that are "old" - you may see a message after installing SDK, indicating that some of the modules are too old.

Next, run the vmware wizard against the remove machine, and see if the checks would work as expected.

Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rb8telitcom
Posts: 17
Joined: Tue Aug 21, 2018 1:40 pm

Re: VMware Configuration Wizard Error

Post by rb8telitcom »

Still does not work.
I performed all the steps suggested.
reinstalled the sdk, it was successful:

This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl.

The following Perl modules were found on the system but may be too old to work
with vSphere CLI:

Socket6 0.28 or newer

Enjoy,

--the VMware team


It only reported Socket6 to update, but cpan shows it is at 0.28:
# cpan -i Socket6
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 24 Aug 2018 11:54:23 GMT
Socket6 is up to date (0.28).


The sdk and plugin do work when ran manually.

But the VMware config wizard step 1 still reports that the sdk or plugin is not installed.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: VMware Configuration Wizard Error

Post by scottwilkerson »

rb8telitcom wrote:The sdk and plugin do work when ran manually.
Do they work when run as the nagios user? It is possible that the required packages are not installed in the nagios users search path

Code: Select all

su nagios
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rb8telitcom
Posts: 17
Joined: Tue Aug 21, 2018 1:40 pm

Re: VMware Configuration Wizard Error

Post by rb8telitcom »

it does not work when I run it as nagios:
ESX3 UNKNOWN - Missing perl module VMware::VIRuntime. Download and install 'VMware vSphere SDK for Perl', available at https://my.vmware.com/group/vmware/downloads

But the nagios user has the path to the vmware sdk binaries.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMware Configuration Wizard Error

Post by lmiltchev »

Did you install all of the prerequisites prior to installing the SDK as outlined in our official documentation?

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Run the following command from the command line, and post the output in code wraps:

Code: Select all

yum list installed | grep 'perl\|libuuid'
Be sure to check out our Knowledgebase for helpful articles and solutions!
rb8telitcom
Posts: 17
Joined: Tue Aug 21, 2018 1:40 pm

Re: VMware Configuration Wizard Error

Post by rb8telitcom »

Yes I have.

Code: Select all

libuuid.x86_64                       2.23.2-52.el7_5.1                 @updates
libuuid-devel.x86_64                 2.23.2-52.el7_5.1                 @updates
net-snmp-perl.x86_64                 1:5.7.2-33.el7_5.2                @updates
perl.x86_64                          4:5.16.3-292.el7                  @base
perl-Business-ISBN.noarch            2.06-2.el7                        @base
perl-Business-ISBN-Data.noarch       20120719.001-2.el7                @base
perl-CPAN.noarch                     1.9800-292.el7                    @base
perl-CPAN-Meta.noarch                2.120921-5.el7                    @base
perl-CPAN-Meta-Requirements.noarch   2.122-7.el7                       @base
perl-CPAN-Meta-YAML.noarch           0.008-14.el7                      @base
perl-Carp.noarch                     1.26-244.el7                      @base
perl-Class-Accessor.noarch           0.34-12.el7                       @epel
perl-Class-Load.noarch               0.20-3.el7                        @base
perl-Class-MethodMaker.x86_64        2.20-1.el7                        @epel
perl-Class-Singleton.noarch          1.4-14.el7                        @base
perl-Compress-Raw-Bzip2.x86_64       2.061-3.el7                       @base
perl-Compress-Raw-Zlib.x86_64        1:2.061-4.el7                     @base
perl-Config-IniFiles.noarch          2.79-1.el7                        @epel
perl-Config-Tiny.noarch              2.14-7.el7                        @base
perl-Crypt-DES.x86_64                2.05-20.el7                       @base
perl-Crypt-Rijndael.x86_64           1.12-1.el7                        @epel
perl-Crypt-SSLeay.x86_64             0.64-5.el7                        @base
perl-DBD-MySQL.x86_64                4.023-6.el7                       @base
perl-DBI.x86_64                      1.627-4.el7                       @base
perl-Data-Dumper.x86_64              2.145-3.el7                       @base
perl-Data-OptList.noarch             0.107-9.el7                       @base
perl-DateTime.x86_64                 2:1.04-6.el7                      @base
perl-DateTime-Locale.noarch          0.45-6.el7                        @base
perl-DateTime-TimeZone.noarch        1.70-1.el7                        @base
perl-Digest.noarch                   1.17-245.el7                      @base
perl-Digest-HMAC.noarch              1.03-5.el7                        @base
perl-Digest-MD5.x86_64               2.52-3.el7                        @base
perl-Digest-SHA.x86_64               1:5.85-4.el7                      @base
perl-Digest-SHA1.x86_64              2.13-9.el7                        @base
perl-Encode.x86_64                   2.51-7.el7                        @base
perl-Encode-Locale.noarch            1.03-5.el7                        @base
perl-Error.noarch                    1:0.17020-2.el7                   @base
perl-Exporter.noarch                 5.68-3.el7                        @base
perl-ExtUtils-CBuilder.noarch        1:0.28.2.6-292.el7                @base
perl-ExtUtils-Install.noarch         1.58-292.el7                      @base
perl-ExtUtils-MakeMaker.noarch       6.68-3.el7                        @base
perl-ExtUtils-Manifest.noarch        1.61-244.el7                      @base
perl-ExtUtils-ParseXS.noarch         1:3.18-3.el7                      @base
perl-File-Listing.noarch             6.04-7.el7                        @base
perl-File-Path.noarch                2.09-2.el7                        @base
perl-File-Temp.noarch                0.23.01-3.el7                     @base
perl-Filter.x86_64                   1.49-3.el7                        @base
perl-Getopt-Long.noarch              2.40-3.el7                        @base
perl-HTML-Parser.x86_64              3.71-4.el7                        @base
perl-HTML-Tagset.noarch              3.20-15.el7                       @base
perl-HTTP-Cookies.noarch             6.01-5.el7                        @base
perl-HTTP-Daemon.noarch              6.01-7.el7                        @base
perl-HTTP-Date.noarch                6.02-8.el7                        @base
perl-HTTP-Message.noarch             6.06-6.el7                        @base
perl-HTTP-Negotiate.noarch           6.01-5.el7                        @base
perl-HTTP-Tiny.noarch                0.033-3.el7                       @base
perl-IO-Compress.noarch              2.061-2.el7                       @base
perl-IO-HTML.noarch                  1.00-2.el7                        @base
perl-IO-Socket-INET6.noarch          2.69-5.el7                        @base
perl-IO-Socket-IP.noarch             0.21-5.el7                        @base
perl-IO-Socket-SSL.noarch            1.94-7.el7                        @base
perl-IO-stringy.noarch               2.110-22.el7                      @base
perl-IPC-Cmd.noarch                  1:0.80-4.el7                      @base
perl-JSON-PP.noarch                  2.27202-2.el7                     @base
perl-LWP-MediaTypes.noarch           6.02-2.el7                        @base
perl-LWP-Protocol-https.noarch       6.04-4.el7                        @base
perl-List-MoreUtils.x86_64           0.33-9.el7                        @base
perl-Locale-Maketext.noarch          1.23-3.el7                        @base
perl-Locale-Maketext-Simple.noarch   1:0.21-292.el7                    @base
perl-Mail-IMAPClient.noarch          3.37-1.el7                        @epel
perl-Math-Calc-Units.noarch          1.07-9.el7                        @epel
perl-Module-Build.noarch             2:0.40.05-2.el7                   @base
perl-Module-CoreList.noarch          1:2.76.02-292.el7                 @base
perl-Module-Implementation.noarch    0.06-6.el7                        @base
perl-Module-Load.noarch              1:0.24-3.el7                      @base
perl-Module-Load-Conditional.noarch  0.54-3.el7                        @base
perl-Module-Metadata.noarch          1.000018-2.el7                    @base
perl-Module-Runtime.noarch           0.013-4.el7                       @base
perl-Mozilla-CA.noarch               20130114-5.el7                    @base
perl-Nagios-Monitoring-Plugin.noarch 0.51-1.el7                        @nagiosxi-deps
perl-Net-DNS.x86_64                  0.72-6.el7                        @base
perl-Net-Daemon.noarch               0.48-5.el7                        @base
perl-Net-HTTP.noarch                 6.06-2.el7                        @base
perl-Net-LibIDN.x86_64               0.12-15.el7                       @base
perl-Net-SNMP.noarch                 6.0.1-7.el7                       @epel
perl-Net-SSLeay.x86_64               1.55-6.el7                        @base
perl-Number-Format.noarch            1.73-14.el7                       @epel
perl-Package-DeprecationManager.noarch
perl-Package-Stash.noarch            0.34-2.el7                        @base
perl-Package-Stash-XS.x86_64         0.26-3.el7                        @base
perl-Params-Check.noarch             1:0.38-2.el7                      @base
perl-Params-Util.x86_64              1.07-6.el7                        @base
perl-Params-Validate.x86_64          1.08-4.el7                        @base
perl-Parse-CPAN-Meta.noarch          1:1.4404-5.el7                    @base
perl-Parse-RecDescent.noarch         1.967009-5.el7                    @base
perl-PathTools.x86_64                3.40-5.el7                        @base
perl-Perl-OSType.noarch              1.003-3.el7                       @base
perl-PlRPC.noarch                    0.2020-14.el7                     @base
perl-Pod-Escapes.noarch              1:1.04-292.el7                    @base
perl-Pod-Perldoc.noarch              3.20-4.el7                        @base
perl-Pod-Simple.noarch               1:3.28-4.el7                      @base
perl-Pod-Usage.noarch                1.63-3.el7                        @base
perl-SNMP_Session.noarch             1.13-5.el7                        @base
perl-Scalar-List-Utils.x86_64        1.27-248.el7                      @base
perl-Socket.x86_64                   2.010-4.el7                       @base
perl-Socket6.x86_64                  0.23-15.el7                       @base
perl-Storable.x86_64                 2.45-3.el7                        @base
perl-Sub-Install.noarch              0.926-6.el7                       @base
perl-Sys-Syslog.x86_64               0.33-3.el7                        @base
perl-Test-Harness.noarch             3.28-3.el7                        @base
perl-Test-Simple.noarch              0.98-243.el7                      @base
perl-Text-ParseWords.noarch          3.29-4.el7                        @base
perl-Thread-Queue.noarch             3.02-2.el7                        @base
perl-Time-HiRes.x86_64               4:1.9725-3.el7                    @base
perl-Time-Local.noarch               1.2300-2.el7                      @base
perl-TimeDate.noarch                 1:2.30-2.el7                      @base
perl-Try-Tiny.noarch                 0.12-2.el7                        @base
perl-URI.noarch                      1.60-9.el7                        @base
perl-WWW-RobotRules.noarch           6.02-5.el7                        @base
perl-XML-LibXML.x86_64               1:2.0018-5.el7                    @base
perl-XML-NamespaceSupport.noarch     1.11-10.el7                       @base
perl-XML-Parser.x86_64               2.41-10.el7                       @base
perl-XML-SAX.noarch                  0.99-9.el7                        @base
perl-XML-SAX-Base.noarch             1.08-7.el7                        @base
perl-constant.noarch                 1.27-2.el7                        @base
perl-devel.x86_64                    4:5.16.3-292.el7                  @base
perl-libs.x86_64                     4:5.16.3-292.el7                  @base
perl-libwww-perl.noarch              6.05-2.el7                        @base
perl-local-lib.noarch                1.008010-4.el7                    @base
perl-macros.x86_64                   4:5.16.3-292.el7                  @base
perl-parent.noarch                   1:0.225-244.el7                   @base
perl-podlators.noarch                2.5.1-3.el7                       @base
perl-srpm-macros.noarch              1-8.el7                           @base
perl-threads.x86_64                  1.87-4.el7                        @base
perl-threads-shared.x86_64           1.43-6.el7                        @base
perl-version.x86_64                  3:0.99.07-3.el7                   @base
rrdtool-perl.x86_64                  1.4.9-1.el7                       @nagiosxi-deps
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: VMware Configuration Wizard Error

Post by npolovenko »

@rb8telitcom, Please run the following command as root user, and then as the nagios user and share the output with us:
perl -e "print \"@INC\""
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rb8telitcom
Posts: 17
Joined: Tue Aug 21, 2018 1:40 pm

Re: VMware Configuration Wizard Error

Post by rb8telitcom »

I created another VM/Nagios XI from scratch and everything works fine on it.
So I backed up from the old and restored to the new and all is well for me now.
Its a relatively new install so I didn't have much to transfer much anyway.

Thanks for your help trying to trouble shoot the original VM.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMware Configuration Wizard Error

Post by lmiltchev »

I am glad your issue has been resolved!

I am locking this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked