Page 5 of 6

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 12:46 pm
by benningtonr
I downloaded the latest version they had, i think.

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 12:52 pm
by benningtonr
here is what I have now.

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 1:05 pm
by scottwilkerson
Now that you ran the installer again, see if you can run the following

Code: Select all

cd /usr/local/nagios/libexec
./check_esx3.pl -D 192.168.99.134 -f /usr/local/nagiosxi/etc/components/vmware/whroesx4_whro_local_auth.txt -l runtime

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 1:08 pm
by benningtonr
ok, i get the following


[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]#

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 1:18 pm
by scottwilkerson
Did you do any of the output?

Basically this is telling you that the SDK isn't installed.

Please install again as when you did it the first time you didn't have the prerequisites installed

http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

Re: vCenter Monitong with vmware wizard

Posted: Fri Jul 27, 2012 7:39 am
by benningtonr
ok, i ran the sdk over again following the instructions, and i am getting this again

(Return code of 127 is out of bounds - plugin may be missing)

Re: vCenter Monitong with vmware wizard

Posted: Fri Jul 27, 2012 7:45 am
by benningtonr
getting this when i run at the cli


[root@nagios vmware-viperl-distrib]# 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
/usr/bin/perl: symbol lookup error: /usr/local/lib/perl5/auto/Class/MethodMaker/MethodMaker.so: undefined symbol: Perl_Tstack_sp_ptr
[root@nagios libexec]#

Re: vCenter Monitong with vmware wizard

Posted: Fri Jul 27, 2012 7:46 am
by benningtonr
when I check for perl install I get this:


[root@nagios vmware-viperl-distrib]# yum list installed | grep perl-Nagios-Plugin
perl-Nagios-Plugin.noarch 0.35-2.el6.rf @rpmforge

Re: vCenter Monitong with vmware wizard

Posted: Fri Jul 27, 2012 1:11 pm
by scottwilkerson
Please run the following and report the output

Code: Select all

yum provides MethodMaker.so

Re: vCenter Monitong with vmware wizard

Posted: Fri Jul 27, 2012 2:03 pm
by benningtonr
I haven't ran this yet, I am waiting for our VM installer to get back to me. I removed everything and started from scratch, as far as the vm plugin. I know have it saying i do not have permission, which is a step better, as soon as I get info from them I will enter it in the txt file and try again.