Page 1 of 2

VMware Plug-In Install Issues

Posted: Thu Dec 07, 2017 12:03 pm
by mkeey
We were able to install the VMWare plug-in on our Red Hat Enterprise Linux server r7.4 (Maipo) with kernel version 3.10.0-693.5.2el7.x86_64 Nagios XI server. When we tried to use the Wizard we received an error...

Error: It appears as though you have not installed the VMware SDK or ESX plugins on your Nagios XI server. You must have the components properly installed on your system before using this wizard.

We found this information on the support site...

Common Problems
Below are some common problems encountered when using the VMware wizard.
The wizard shows a big red box that says the VMware SDK isn't installed. I installed it, so what's causing this?
Reinstall the VMware SDK. It's very easy to pass over an error in that install script. If you don't see "Enjoy--the VMware team" at the end of the install, then it did not install properly.
The other thing that can cause this is that the check_esx3.pl does not exist in /usr/local/nagios/libexec/. If this error persists past VMware SDK reinstall, then reinstall the wizard. If it persists past the wizard install, then manually place check_esx3.pl into /usr/local/nagios/libexec/ directory.



So, our Linux team uninstalled the plug-in and attempted a reinstallation.
The output showed an Error at the end...

Regards,
Martin Keey
Foot Locker, Inc.
[email protected]

Re: VMware Plug-In Install Issues

Posted: Thu Dec 07, 2017 12:50 pm
by lmiltchev
What error are you talking about? Is it the message about the outdated perl modules?
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
LWP::Protocol::https 6.04 or newer
Socket6 0.23 or newer
IO::Socket::INET6 2.71 or newer
Net::HTTP 6.09 or newer
Many times, the vmware wizard works just fine, regardless of the outdated modules. Having said that, you could try updating the modules if you wish.

1. Install cpanm if you don't have it installed by running:

Code: Select all

curl -L http://cpanmin.us | perl - App::cpanminus
2. Update any perl module that you wish by running:

Code: Select all

cpanm <module>
Example:

Code: Select all

cpanm MIME::Base64
3. Verify the modfule version by running:

Code: Select all

cpan -D <module>
Example:

Code: Select all

cpan -D MIME::Base64
Hope this helps.

Re: VMware Plug-In Install Issues

Posted: Tue Dec 12, 2017 8:07 am
by mkeey
I have installed everything again and manually updated the "older" packages with cpanm and the Nagios wizard still says the plugin is not installed.

Re: VMware Plug-In Install Issues

Posted: Tue Dec 12, 2017 12:15 pm
by npolovenko
@mkeey, There's an official tutorial from Nagios on how to install all prereqs for this plugin:
https://assets.nagios.com/downloads/nag ... gJ8dPD_BwE
I was having a very similar problem where it seemed like I installed all the right modules but this plugin still refused to work. I ended up starting all over and followed the official guide and I no longer had any issues.

Re: VMware Plug-In Install Issues

Posted: Fri Dec 15, 2017 11:39 am
by mkeey
The document provided is the same document that we used for the installation process. If you look in the first installation log sent there were numerous items listed that needed to be updated. Those have all been updated successfully. If you look at the second log it shows the second installation of the plug-in was performed successfully. But when utilizing the VMware Configuration Wizard in Nagios XI it still says it's not installed.

Re: VMware Plug-In Install Issues

Posted: Fri Dec 15, 2017 1:14 pm
by tgriep
There may be other perl modules that could be missing or not updated causing the wizard to not run.
Can you run the following command on the Nagios server and post the output?

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl --version
Please post the output so we can go from there.

Re: VMware Plug-In Install Issues

Posted: Fri Dec 15, 2017 2:51 pm
by mkeey
Below is the output and Plugin.pm does not exist on the box.

Re: VMware Plug-In Install Issues

Posted: Fri Dec 15, 2017 3:05 pm
by tgriep
You need to install the missing Nagios Plugin perl module by running the following.

Code: Select all

yum install perl-Nagios-Plugin -y
Then run the plugin from the command line it is returns the version number, then go ahead and run the Wizard.

Re: VMware Plug-In Install Issues

Posted: Mon Dec 18, 2017 9:07 am
by mkeey
Making some progress. Now Nagios/Plugin.pm exists on the box but we still get an error that it cannot find it.

So check_esx3.pl is looking for /usr/share/perl5/vendor_perl/Nagios/Monitoring/Plugin.pm
and
The file is /usr/share/perl5/vendor_perl/Nagios/Plugin.pm

Installed: perl-Nagios-Plugin.noarch 0:0.36-7.el7

Dependency Installed: perl-Config-Tiny.noarch 0:2.14-7.el7 perl-Math-Calc-Units.noarch 0:1.07-9.el7

Complete!

Re: VMware Plug-In Install Issues

Posted: Mon Dec 18, 2017 12:01 pm
by npolovenko
@mkeey, Please run the following command to install the Perl module:

Code: Select all

cpan -i Nagios::Monitoring::Plugin