VMWare Wizard issue
Posted: Mon Jun 01, 2020 7:38 am
Nagios XI Enterprise 5.6.14
Red Hat Enterprise Linux Server release 7.6 (Maipo)
Trying to get VMWare wizard to work but got this <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>.
Tried everything but no luck, VMWare SDK installed just fine.
Run check_esx3.pl as nagios
Running the same thing as root
sudo yum list installed | grep 'libxml2-devel\|xml2\|libuuid-devel'
cpan -a > /tmp/cpan.txt
sudo yum list installed | grep 'libxml2-devel\|xml2\|libuuid-devel'
perl -e 'print join("\n",@INC)' as nagios user and root
perl --version
Red Hat Enterprise Linux Server release 7.6 (Maipo)
Trying to get VMWare wizard to work but got this <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>.
Tried everything but no luck, VMWare SDK installed just fine.
Run check_esx3.pl as nagios
Code: Select all
[nagios@myucbrnagiapp05 libexec]$ ./check_esx3.pl
ESX3 UNKNOWN - Missing perl module VMware::VIRuntime. Download and install 'VMware vSphere SDK for Perl', available at https://my.vmware.com/group/vmware/downloads
Download the latest version of the vSphere Perl SDK from VMware.
You may need to install additional packages and Perl modules on your server,
see https://library.nagios.com/library/products/nagios-xi/documentation/monitoring-vmware-with-nagios-xi/
more information on installing the vSphere Perl SDK for CentOS/RHEL 6 & 7.
Upload the .tar.gz file to your op5 Monitor server's /root dir and execute:
cd /root
tar xvzf VMware-vSphere-Perl-<version>.x86_64.tar.gz
cd vmware-vsphere-cli-distrib/
./vmware-install.pl
Follow the on screen instructions, described below:
"Creating a new vSphere CLI installer database using the tar4 format.
Installing vSphere CLI <version> for Linux.
You must read and accept the vSphere CLI End User License Agreement to
continue.
Press enter to display it."
<ENTER>
"Read through the License Agreement"
"Do you accept? (yes/no)
yes
"In which directory do you want to install the executable files? [/usr/bin]"
<ENTER>
"Please wait while copying vSphere CLI files...
The installation of vSphere <version> for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/usr/bin/vmware-uninstall-vSphere-CLI.pl".
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:
Compress::Zlib 2.037 or newer
Compress::Raw::Zlib 2.037 or newer
version 0.78 or newer
IO::Compress::Base 2.037 or newer
IO::Compress::Zlib::Constants 2.037 or newer
LWP::Protocol::https 5.805 or newer
Enjoy,
--the VMware team"
Note: None of the Perl modules mentioned as "may be too old" are needed for check_vmware_api to work.
[nagios@myucbrnagiapp05 libexec]$
Running check_vmware_api.pl as nagios and root[nagios@myucbrnagiapp05 libexec]$ sudo ./check_esx3.pl
Usage: check_esx3.pl -D <data_center> | -H <host_name> [ -C <cluster_name> ] [ -N <vm_name> ]
-u <user> -p <pass> | -f <authfile>
-l <command> [ -s <subcommand> ] [ -T <timeshift> ] [ -i <interval> ]
[ -x <black_list> ] [ -o <additional_options> ]
[ -t <timeout> ] [ -w <warn_range> ] [ -c <crit_range> ]
[ -V ] [ -h ]
Missing argument: command
[nagios@myucbrnagiapp05 libexec]$
[nagios@myucbrnagiapp05 libexec]$ ./check_vmware_api.pl
Socket object version 2.010 does not match bootstrap parameter 2.029 at /usr/lib64/perl5/DynaLoader.pm line 213.
Compilation failed in require at /usr/local/lib64/perl5/Net/SSL.pm line 5.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/Net/SSL.pm line 5.
Compilation failed in require at ./check_vmware_api.pl line 44.
BEGIN failed--compilation aborted at ./check_vmware_api.pl line 44.
[nagios@myucbrnagiapp05 libexec]$ sudo ./check_vmware_api.pl
Usage: check_vmware_api.pl -D <data_center> | -H <host_name> [ -C <cluster_name> ] [ -N <vm_name> ]
-u <user> -p <pass> | -f <authfile>
-l <command> [ -s <subcommand> ] [ -T <timeshift> ] [ -i <interval> ]
[ -x <black_list> ] [ -o <additional_options> ]
[ -t <timeout> ] [ -w <warn_range> ] [ -c <crit_range> ]
[ -V ] [ -h ]
Missing argument: command
[nagios@myucbrnagiapp05 libexec]$
sudo yum list installed | grep 'libxml2-devel\|xml2\|libuuid-devel'
Code: Select all
[nagios@myucbrnagiapp05 libexec]$ sudo yum list installed | grep 'libxml2-devel\|xml2\|libuuid-devel'
libuuid-devel.x86_64 2.23.2-63.el7 @rhel-7-server-rpms
libxml2.x86_64 2.9.1-6.el7.4 @rhel-7-server-rpms
libxml2-devel.x86_64 2.9.1-6.el7.4 @rhel-7-server-rpms
libxml2-python.x86_64 2.9.1-6.el7.4 @rhel-7-server-rpms
xml2.x86_64 0.5-7.el7 @epel
Code: Select all
libuuid-devel.x86_64 2.23.2-63.el7 @rhel-7-server-rpms
libxml2.x86_64 2.9.1-6.el7.4 @rhel-7-server-rpms
libxml2-devel.x86_64 2.9.1-6.el7.4 @rhel-7-server-rpms
libxml2-python.x86_64 2.9.1-6.el7.4 @rhel-7-server-rpms
xml2.x86_64 0.5-7.el7 @epel
Code: Select all
[nagios@myucbrnagiapp05 libexec]$ perl -e 'print join("\n",@INC)'
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5
.[nagios@myucbrnagiapp05 libexec]$ sudo perl -e 'print join("\n",@INC)'
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5
[nagios@myucbrnagiapp05 libexec]$Please assist.[nagios@myucbrnagiapp05 libexec]$ perl --version
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 38 registered patches, see perl -V for more detail)
Copyright 1987-2012, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
[nagios@myucbrnagiapp05 libexec]$ sudo perl --version
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 38 registered patches, see perl -V for more detail)
Copyright 1987-2012, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
[nagios@myucbrnagiapp05 libexec]$