Page 1 of 1

VMware Monitoring Wizard

Posted: Wed Feb 04, 2015 7:10 am
by S54326
(Nagios XI 2014R2.0 - vSphere OVF x64 - direct install, not upgraded from a previous version)

When we try to run the VMware Monitoring Wizard it immediately fails with the message
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.
This is the first time we’ve tried this particular wizard.

Anyway, I’ve have followed http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Installed prerequisites – yes.
Installed VMware Perl SDK – (we already had an earlier version) yes, version 5.5.0-1384587, but it warned against missing or out of date Perl modules.
Installing / updating Perl modules
  • Installed Compress::Zlib – yes now version 2.068
    Compress::Raw::Zlib – it was up to date, version 2.068
    IO::Compress::Base – it was up to date, version 2.068
    IO::Compress::Zlib::Constants – it was up to date, version 2.068
    Installed LWP::Protocol::https – it hung on Net::HTTP. Eventually had to force the install of Net::HTTP to get LWP::Protocol::https to install – now version 6.06
Reinstalled VMware Perl SDK, it completes and does not mention any missing or out of date Perl modules.
I’ve even rebooted the server.
I’ve even removed and reinstalled the wizard.

However, when I try to run the VMware Monitoring Wizard it still moans about “Error: It appears as though you have not installed the VMware SDK or ESX plugins …...”.

So what is the wizard looking for?

Two things I’ve noticed –
1) running check_esx3.pl manually to moans about
Nagios::Plugin is deprecated, use Monitoring::Plugin instead. at /usr/local/share/perl5/Nagios/Plugin/Functions.pm line 14
But it’s the plug-in that was either on the VM image or in the wizard.
  • Nagios::Plugin is version 0.37
    Nagios::Plugin::Function is version 0.37
    check_esx3.pl is version 0.2.0
2) check_esx3.pl takes ages, I think it’s timing out, and then fails. It either fails with “ESX3 CRITICAL - HOST CPU Unknown error” or “ESX3 CRITICAL - SOAP request error - possibly a protocol issue: … … …” depending on which host I’m querying.

I know I’m using the correct command line for check_esx3.pl , for example

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H 10.11.12.13 -u admin -p password  -l CPU
(with appropriate entries for our environment).

Re: VMware Monitoring Wizard

Posted: Wed Feb 04, 2015 11:21 am
by lmiltchev
I have seen similar errors in the past. Adding one line to the plugin fixed the issue for many users. I am not sure if it will help in your particular case, but it's worth trying. Open the check_esx3.pl plugin in a text editor and add the following line as a first line after the comments on the top:

Code: Select all

$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;
Let me know if this helped. If it didn't, run the following command and show us the output in code wraps:

Code: Select all

yum list installed | grep perl

Re: VMware Monitoring Wizard

Posted: Thu Feb 05, 2015 4:06 am
by S54326
Adding that line in check_esx3.pl has made no difference.

Here is the result of yum list installed | grep perl

Code: Select all

# yum list installed | grep perl
net-snmp-perl.x86_64                 1:5.5-50.el6_6.1                  @updates
perl.x86_64                          4:5.10.1-136.el6_6.1              @updates
perl-CPAN.x86_64                     1.9402-136.el6_6.1                @updates
perl-Class-Accessor.noarch           0.31-6.1.el6                      @base
perl-Class-Singleton.noarch          1.4-6.el6                         @base
perl-Compress-Raw-Zlib.x86_64        1:2.021-136.el6_6.1               @updates
perl-Compress-Zlib.x86_64            2.021-136.el6_6.1                 @updates
perl-Config-IniFiles.noarch          2.72-2.el6                        @epel
perl-Config-Tiny.noarch              2.12-7.1.el6                      @base
perl-Crypt-DES.x86_64                2.05-9.el6                        @epel
perl-Crypt-Rijndael.x86_64           1.09-2.el6                        @epel
perl-Crypt-SSLeay.x86_64             0.57-17.el6                       @base
perl-DBD-MySQL.x86_64                4.013-3.el6                       @base
perl-DBI.x86_64                      1.609-4.el6                       @base
perl-DateTime.x86_64                 1:0.5300-2.el6                    @base
perl-Digest-HMAC.noarch              1.01-22.el6                       @base
perl-Digest-SHA.x86_64               1:5.47-136.el6_6.1                @updates
perl-Digest-SHA1.x86_64              2.12-2.el6                        @base
perl-Error.noarch                    1:0.17015-4.el6                   @base
perl-Expect.noarch                   1.21-3.el6                        @epel
perl-ExtUtils-MakeMaker.x86_64       6.55-136.el6_6.1                  @updates
perl-ExtUtils-ParseXS.x86_64         1:2.2003.0-136.el6_6.1            @updates
perl-HTML-Parser.x86_64              3.64-2.el6                        @base
perl-HTML-Tagset.noarch              3.20-4.el6                        @base
perl-IO-Compress-Base.x86_64         2.021-136.el6_6.1                 @updates
perl-IO-Compress-Zlib.x86_64         2.021-136.el6_6.1                 @updates
perl-IO-Socket-INET6.noarch          2.56-4.el6                        @base
perl-IO-Socket-SSL.noarch            1.31-2.el6                        @base
perl-IO-Tty.x86_64                   1.08-4.el6                        @base
perl-IO-stringy.noarch               2.110-10.1.el6                    @base
perl-List-MoreUtils.x86_64           0.22-10.el6                       @base
perl-Mail-IMAPClient.noarch          3.34-1.el6                        @epel
perl-Mail-POP3Client.noarch          2.18-6.el6                        @epel
perl-Math-Calc-Units.noarch          1.07-6.el6                        @epel
perl-Module-Pluggable.x86_64         1:3.90-136.el6_6.1                @updates
perl-Nagios-Plugin.noarch            0.35-2.el6.rf                     @rpmforge
perl-Net-DNS.x86_64                  0.65-5.el6                        @base
perl-Net-LibIDN.x86_64               0.12-3.el6                        @base
perl-Net-SMTP-TLS.noarch             0.12-1.el6.rf                     @rpmforge
perl-Net-SNMP.noarch                 5.2.0-4.el6                       @epel
perl-Net-SSLeay.x86_64               1.35-9.el6                        @base
perl-Params-Validate.x86_64          0.92-3.el6                        @base
perl-Parse-RecDescent.noarch         1.965-1.el6                       @epel
perl-Pod-Escapes.x86_64              1:1.04-136.el6_6.1                @updates
perl-Pod-Simple.x86_64               1:3.13-136.el6_6.1                @updates
perl-SNMP_Session.noarch             1.12-4.el6                        @base
perl-Socket6.x86_64                  0.23-4.el6                        @base
perl-Test-Harness.x86_64             3.17-136.el6_6.1                  @updates
perl-Test-Simple.x86_64              0.92-136.el6_6.1                  @updates
perl-Time-HiRes.x86_64               4:1.9721-136.el6_6.1              @updates
perl-URI.noarch                      1.40-2.el6                        @base
perl-XML-LibXML.x86_64               1:1.70-5.el6                      @base
perl-XML-NamespaceSupport.noarch     1.10-3.el6                        @base
perl-XML-Parser.x86_64               2.36-7.el6                        @base
perl-XML-SAX.noarch                  0.96-7.el6                        @base
perl-XML-Simple.noarch               2.18-6.el6                        @base
perl-devel.x86_64                    4:5.10.1-136.el6_6.1              @updates
perl-libs.x86_64                     4:5.10.1-136.el6_6.1              @updates
perl-libwww-perl.noarch              5.833-2.el6                       @base
perl-version.x86_64                  3:0.77-136.el6_6.1                @updates
rrdtool-perl.x86_64                  1.3.8-7.el6                       @base

Re: VMware Monitoring Wizard

Posted: Thu Feb 05, 2015 11:07 am
by lmiltchev
I am not able to recreate the issue in-house. I noticed, however that you are missing the perl-SOAP-Lite package. Since you mentioned getting "“ESX3 CRITICAL - SOAP request error - possibly a protocol issue..." errors, you could try installing the missing package and see if this is going to fix the issue:

Code: Select all

yum install perl-SOAP-Lite -y

Re: VMware Monitoring Wizard

Posted: Fri Feb 06, 2015 5:12 am
by S54326
OK, I've installed that. But we are still getting the same error message when we try to start the VMware wizard.

Re: VMware Monitoring Wizard

Posted: Fri Feb 06, 2015 10:57 am
by abrist
Lets move this to a ticket and potentially a remote session. Send an email to [email protected].

Re: VMware Monitoring Wizard

Posted: Mon Feb 09, 2015 12:20 pm
by lmiltchev
@S54326
You opened a new ticket in our email ticketing system. We will continue communicating via emails. I am locking this post.