[root@nagios /]# cd /usr/local/nagios/libexec
[root@nagios libexec]# ./check_esx3.pl -D 192.168.99.134 -f /usr/local/nagiosxi/etc/components/vmware/whroesx4_whro_local_auth.txt -l runtime
ESX3 UNKNOWN - Missing perl module VMware::VIRuntime. Download and install 'VMware Infrastructure (VI) Perl Toolkit', available at
http://www.vmware.com/download/sdk/
Download the latest version of Perl Toolkit from VMware support page.
In this example we use VMware-vSphere-SDK-for-Perl-4.0.0-161974.x86_64.tar.gz,
but the instructions should apply to newer versions as well.
Upload the file to your op5 Monitor server's /root dir and execute:
cd /root
tar xvzf VMware-vSphere-SDK-for-Perl-4.0.0-161974.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.
Installing version 161974 of vSphere CLI
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
"The following Perl modules were found on the system but may be too old to work
with VIPerl:
Crypt::SSLeay
Compress::Zlib"
"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 CLI 4.0.0 build-161974 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.
Enjoy,
--the VMware team"
Note: "Crypt::SSLeay" and "Compress::Zlib" are not needed for check_esx3 to work.
[root@nagios libexec]#