Page 2 of 2

Re: VMware configuration wizard error

Posted: Tue Mar 12, 2019 11:45 pm
by inas.labib
Hi

please find the attachment and output of the mentioned commands

root@hostname:~$yum list installed | grep 'libxml2-devel\|xml2\|libuuid-devel'
libuuid-devel.x86_64 2.17.2-12.28.el6_9.2 @rhel-6-server-rpms
libxml2.x86_64 2.7.6-21.el6_8.1 @wdp-rhel
libxml2-devel.x86_64 2.7.6-21.el6_8.1 @rhel-6-server-rpms
libxml2-python.x86_64 2.7.6-21.el6_8.1 @wdp-rhel
xml2.x86_64 0.5-7.el6 @epel

Re: VMware configuration wizard error

Posted: Tue Mar 12, 2019 11:47 pm
by inas.labib
Hi

PFA and command output:

root@hostname:~$yum list installed | grep 'libxml2-devel\|xml2\|libuuid-devel'
libuuid-devel.x86_64 2.17.2-12.28.el6_9.2 @rhel-6-server-rpms
libxml2.x86_64 2.7.6-21.el6_8.1 @wdp-rhel
libxml2-devel.x86_64 2.7.6-21.el6_8.1 @rhel-6-server-rpms
libxml2-python.x86_64 2.7.6-21.el6_8.1 @wdp-rhel
xml2.x86_64 0.5-7.el6 @epel

Re: VMware configuration wizard error

Posted: Wed Mar 13, 2019 9:48 am
by lmiltchev
It seems like you have all of the required packages, so let's try the following:

1. Reinstall the VMWare SDK and post the last several lines of the output, showing the the SDK install succeeded.

Example:

Code: Select all

The installation of vSphere CLI 6.5.0 build-4566394 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:

MIME::Base64 3.14 or newer
Try::Tiny 0.22 or newer
LWP 6.15 or newer
Socket6  0.23 or newer
Net::HTTP 6.09 or newer

Enjoy,

--the VMware team
2. Run the following commands from the CLI, and show the output:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H "ip address" -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt" -l "CPU"
/usr/local/nagios/libexec/check_vmware_api.pl -H "ip address" -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt" -l "CPU"
/usr/local/nagios/libexec/check_esx3.pl -H "ip address" -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt"  -N "<guest>" -l "CPU"
/usr/local/nagios/libexec/check_vmware_api.pl -H "ip address" -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt" -N "<guest>" -l "CPU"
where you substitute "ip address", "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt", and "<guest>" with the actual values.

Note: If any of the above commands fail, rerun them by adding the "-vvv" at the end (for increased verbosity), and show the output.

Example:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H "ip address" -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt" -l "CPU" -vvv
3. Run the vmware wizard against the remote ESXi/Vsphere server and show us a screenshot of the error that you are getting.

Re: VMware configuration wizard error

Posted: Wed Mar 13, 2019 9:36 pm
by inas.labib
The file /lib/libgcc_s.so.1 that this program was about to install already
exists. Overwrite? [yes]

The installation of vSphere CLI 6.5.0 build-4566394 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:

MIME::Base64 3.14 or newer
Compress::Zlib 2.037 or newer
Compress::Raw::Zlib 2.037 or newer
IO::Compress::Base 2.037 or newer
IO::Compress::Zlib::Constants 2.061 or newer
LWP 6.15 or newer
LWP::Protocol::https 6.04 or newer
Socket6 0.23 or newer
Net::HTTP 6.09 or newer

Enjoy,

--the VMware team


nagios@hostname:~$ /usr/local/nagios/libexec/check_esx3.pl -H "ip address" -f "/usr/local/nagiosxi/etc/components/vmware/ipaddress_auth.txt" -l "CPU" -vvv
[extra-opts] check_esx3.pl -H ipaddress -f /usr/local/nagiosxi/etc/components/vmware/ipaddress_auth.txt -l CPU -vvv
ESX3 CRITICAL - Error: Cannot complete login due to an incorrect user name or password.

in GUI if we are clicck on vmware vizard we are getting below error:

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.
PFA of screen shot.

Re: VMware configuration wizard error

Posted: Thu Mar 14, 2019 9:55 am
by lmiltchev
nagios@hostname:~$ /usr/local/nagios/libexec/check_esx3.pl -H "ip address" -f "/usr/local/nagiosxi/etc/components/vmware/ipaddress_auth.txt" -l "CPU" -vvv
[extra-opts] check_esx3.pl -H ipaddress -f /usr/local/nagiosxi/etc/components/vmware/ipaddress_auth.txt -l CPU -vvv
ESX3 CRITICAL - Error: Cannot complete login due to an incorrect user name or password.
Can you open the /usr/local/nagiosxi/etc/components/vmware/ipaddress_auth.txt file in a text editor and review it? Make sure that you are using the correct credentials, then rerun the check, and show the output.
MIME::Base64 3.14 or newer
Compress::Zlib 2.037 or newer
Compress::Raw::Zlib 2.037 or newer
IO::Compress::Base 2.037 or newer
IO::Compress::Zlib::Constants 2.061 or newer
LWP 6.15 or newer
LWP::Protocol::https 6.04 or newer
Socket6 0.23 or newer
Net::HTTP 6.09 or newer
Try updating these modules via cpan. First, install cpanm by running:

Code: Select all

curl -L http://cpanmin.us | perl - App::cpanminus
Then, start updating individual modules by running:

Code: Select all

cpanm <name of the module>
For example:

Code: Select all

cpanm Compress::Zlib
In some cases, you may need to "force" an upgrade by running:

Code: Select all

cpanm -f <name of the module>
but be careful with this option. Don't use it unless you know what you are doing.

After upgrading all of the modules listed by the SDK installer, try rerunning the wizard (using the correct credentials). If you are still having issues after this, most likely we would need to move this to a ticket. You can open a support ticket via our support center here:

https://support.nagios.com/tickets/