Below is all output of what i did:
[root@**NAG-HOST** ~]# mv /usr/bin/six.pyc /usr/bin/six.pyc.bak
mv: overwrite '/usr/bin/six.pyc.bak'? y
You have new mail in /var/spool/mail/root
[root@**NAG-HOST** ~]# ln -sfn /usr/bin/python3 /usr/bin/python
[root@**NAG-HOST** ~]# cd /tmp
[root@**NAG-HOST** tmp]# ls
cacert.pem systemd-private-d90414f952e8422c962456c5280f68e6-ModemManager.service-1cVeDh
memcalc systemd-private-d90414f952e8422c962456c5280f68e6-php-fpm.service-kEsyHi
ndo.cfg.backup systemd-private-d90414f952e8422c962456c5280f68e6-postfix.service-FnMs5h
systemd-private-d90414f952e8422c962456c5280f68e6-chronyd.service-GeRorj systemd-private-d90414f952e8422c962456c5280f68e6-rtkit-daemon.service-aeHeyf
systemd-private-d90414f952e8422c962456c5280f68e6-colord.service-g1CFcj vmware-root_1203-3988228553
systemd-private-d90414f952e8422c962456c5280f68e6-httpd.service-aprFVe vmware-root_1211-4021653447
[root@**NAG-HOST** tmp]# uptime
14:33:02 up 2 days, 17:59, 1 user, load average: 1.60, 0.82, 0.63
[root@**NAG-HOST** tmp]# yum install -y libxml2-devel libxml2 libuuid-devel perl-XML-LibXML perl-Env
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Last metadata expiration check: 1:04:23 ago on Wed 01 Dec 2021 01:29:32 PM IST.
Package libxml2-devel-2.9.7-9.el8_4.2.x86_64 is already installed.
Package libxml2-2.9.7-9.el8_4.2.x86_64 is already installed.
Package libuuid-devel-2.32.1-28.el8.x86_64 is already installed.
Package perl-XML-LibXML-1:2.0132-2.el8.x86_64 is already installed.
Package perl-Env-1.04-395.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
You have new mail in /var/spool/mail/root
[root@**NAG-HOST** tmp]# yum remove perl-Crypt-SSLeay -y
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
No match for argument: perl-Crypt-SSLeay
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
[root@**NAG-HOST** tmp]# export PERL_MM_USE_DEFAULT=1
[root@**NAG-HOST** tmp]# cpan -i App::cpanminus
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.local/share/.cpan/Metadata'
Database was generated on Thu, 18 Nov 2021 12:41:02 GMT
CPAN: LWP::UserAgent loaded ok (v6.34)
CPAN: Time::HiRes loaded ok (v1.9764)
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.local/share/.cpan/sources/authors/01mailrc.txt.gz'
CPAN: Compress::Zlib loaded ok (v2.081)
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.local/share/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Wed, 01 Dec 2021 08:55:56 GMT
.............
New CPAN.pm version (v2.29) available.
[Currently running version is v2.18]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
...............................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.local/share/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.local/share/.cpan/Metadata
CPAN: Module::CoreList loaded ok (v5.20181130)
App::cpanminus is up to date (1.7044).
[root@**NAG-HOST** tmp]# cpanm Crypt::SSLeay --dev
! Finding Crypt::SSLeay on cpanmetadb failed.
! cannot open file '/root/.cpanm/sources/http%www.cpan.org/02packages.details.txt.gz': No such file or directory opening compressed index
! Couldn't find module or a distribution Crypt::SSLeay
[root@**NAG-HOST** tmp]# cpan -i Nagios::Monitoring::Plugin Nagios::Monitoring::Plugin::Functions
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.local/share/.cpan/Metadata'
Database was generated on Wed, 01 Dec 2021 08:55:56 GMT
CPAN: Module::CoreList loaded ok (v5.20181130)
Nagios::Monitoring::Plugin is up to date (0.51).
Nagios::Monitoring::Plugin::Functions is up to date (0.51).
[root@**NAG-HOST** tmp]# tar xzf VMware-vSphere-Perl-SDK-7.0.0-16815913.x86_64.tar.gz
You have new mail in /var/spool/mail/root
[root@**NAG-HOST** tmp]# cd vmware-vsphere-cli-distrib/
[root@**NAG-HOST** vmware-vsphere-cli-distrib]# ./vmware-install.pl EULA_AGREED=yes
A previous installation of vSphere CLI has been detected.
The previous installation was made by the tar installer (version 4).
Keeping the tar4 installer database format.
/etc/vmware-vcli/installer.sh: line 186: db_answer_--EULA_AGREED=--EULA_AGREED: command not found
You have a version of vSphere CLI installed. Continuing will remove it in
preparation for installing a new vSphere CLI. Do you want to continue?
[yes]
/etc/vmware-vcli/installer.sh: line 186: db_answer_--EULA_AGREED=--EULA_AGREED: command not found
Uninstalling the tar installation of vSphere CLI.
This program previously created the file /usr/bin/six.pyc, and was about to
remove it. Somebody else apparently did it already.
The removal of vSphere CLI 7.0.0 build-16815913 for Linux completed
successfully.
Installing vSphere CLI 7.0.0 build-16815913 for Linux.
Not tested with Net::FTP version 3.11 at /usr/local/share/perl5/Net/INET6Glue/FTP.pm line 15.
somebody else already implements FTP IPv6 support - skipping Net::INET6Glue::FTP
In which directory do you want to install the executable files?
[/usr/bin]
Please wait while copying vSphere CLI files...
The installation of vSphere CLI 7.0.0 build-16815913 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 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
[root@**NAG-HOST** vmware-vsphere-cli-distrib]# find / -name VIRuntime.pm -exec ls -l {} \;
-r--r--r-- 1 root root 510 Aug 28 2020 /root/vmware-vsphere-cli-distrib/lib/VMware/share/VMware/VIRuntime.pm
-r--r--r-- 1 root root 510 Dec 1 14:35 /usr/lib/vmware-vcli/VMware/share/VMware/VIRuntime.pm
-r--r--r-- 1 root root 510 Aug 28 2020 /tmp/vmware-vsphere-cli-distrib/lib/VMware/share/VMware/VIRuntime.pm
[root@**NAG-HOST** vmware-vsphere-cli-distrib]#
VMWARE monitors not Working after installing SDK
-
faizanmalik
- Posts: 8
- Joined: Sat Feb 02, 2019 9:00 am
Re: VMWARE monitors not Working after installing SDK
Please run these commands as root:
Then re-run the installer twice again and see if that resolves it as it didn't install properly, then send the output of this:
Code: Select all
export PERL_MM_USE_DEFAULT=1
wget http://cpan.metacpan.org/authors/id/N/NA/NANIS/Crypt-SSLeay-0.73_06.tar.gz
cpanm Crypt-SSLeay-0.73_06.tar.gzCode: Select all
find / -name VIRuntime.pm -exec ls -l {} \;-
faizanmalik
- Posts: 8
- Joined: Sat Feb 02, 2019 9:00 am
Re: VMWARE monitors not Working after installing SDK
I did the same
Copied the file to the server and installed it using cpanm Crypt-SSLeay-0.73_06.tar.gz
[root@**NAG-HOST** vmware-vsphere-cli-distrib]# find / -name VIRuntime.pm -exec ls -l {} \;
-r--r--r-- 1 root root 510 Aug 28 2020 /root/vmware-vsphere-cli-distrib/lib/VMware/share/VMware/VIRuntime.pm
-r--r--r-- 1 root root 510 Dec 1 14:35 /usr/lib/vmware-vcli/VMware/share/VMware/VIRuntime.pm
-r--r--r-- 1 root root 510 Aug 28 2020 /tmp/vmware-vsphere-cli-distrib/lib/VMware/share/VMware/VIRuntime.pm
still same issue
Copied the file to the server and installed it using cpanm Crypt-SSLeay-0.73_06.tar.gz
[root@**NAG-HOST** vmware-vsphere-cli-distrib]# find / -name VIRuntime.pm -exec ls -l {} \;
-r--r--r-- 1 root root 510 Aug 28 2020 /root/vmware-vsphere-cli-distrib/lib/VMware/share/VMware/VIRuntime.pm
-r--r--r-- 1 root root 510 Dec 1 14:35 /usr/lib/vmware-vcli/VMware/share/VMware/VIRuntime.pm
-r--r--r-- 1 root root 510 Aug 28 2020 /tmp/vmware-vsphere-cli-distrib/lib/VMware/share/VMware/VIRuntime.pm
still same issue
Re: VMWARE monitors not Working after installing SDK
Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:
https://support.nagios.com/tickets/
Thank you!
https://support.nagios.com/tickets/
Thank you!