Hi
The version of ESXi server is 6.5 U1. SDK is installed in the Nagios server becoz of which i was able to add 9 ESXi hosts which are running the same version.
I followed the documentation - >
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
I have tried uninstalling and reinstalling the perl sdk. The outcome of the installation is
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
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
Enjoy,
--the VMware team
Please find below the outcome of the commands
[root@sadc3nagiost1 vmware-vsphere-cli-distrib]# uname -a
Linux sadc3nagiost1.corp.stateauto.com 3.10.0-693.17.1.el7.x86_64 #1 SMP Sun Jan 14 10:36:03 EST 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@sadc3nagiost1 vmware-vsphere-cli-distrib]# cat /etc/*release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.4 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.4"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.4:GA:server"
HOME_URL="
https://www.redhat.com/"
BUG_REPORT_URL="
https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.4"
Red Hat Enterprise Linux Server release 7.4 (Maipo)
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[root@sadc3nagiost1 vmware-vsphere-cli-distrib]#
[root@sadc3nagiost1 vmware-vsphere-cli-distrib]# grep full /usr/local/nagiosxi/var/xiversion
full=5.4.12
[root@sadc3nagiost1 vmware-vsphere-cli-distrib]# ls -la /usr/local/nagios/libexec/check_esx3.pl
-rwxrwxr-x. 1 apache nagios 169440 Mar 7 11:45 /usr/local/nagios/libexec/check_esx3.pl
[root@sadc3nagiost1 vmware-vsphere-cli-distrib]# /usr/local/nagios/libexec/check_esx3.pl -h | head -10
Can't locate Nagios/Plugin/Functions.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_esx3.pl line 40.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_esx3.pl line 40.
i have not run the last command...
based on the error, i checked where the functions.pm file is located
[root@sadc3nagiost1 ~]# find / -iname functions.pm
find: â/proc/19518â: No such file or directory
/tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Functions.pm
/usr/lib64/perl5/vendor_perl/File/Spec/Functions.pm
/usr/share/perl5/Pod/Functions.pm
/usr/local/share/perl5/Nagios/Monitoring/Plugin/Functions.pm
/home/kav9999/Nagios-Monitoring-Plugin-0.51/lib/Nagios/Monitoring/Plugin/Functions.pm
/home/kav9999/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Functions.pm
When i tried to copy the functions.pm file to /usr/local/nagios/libexec/check_esx3.pl it prompted if i wish to overwrite it, which I didnot want to and havent proceeded further.
Request you to assist in this further.
Thank You.