Page 4 of 6

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 9:37 am
by scottwilkerson
Googling around found this to fix the same problem installing these packages..

Code: Select all

yum clean all
yum erase perl-XML-SAX-Base-1.04-1.el6.rf.noarch
then try again

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 9:59 am
by benningtonr
Ok, ran those,
run the install cmds again?



[root@nagios /]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base cr epel extras rpmforge updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@nagios /]# yum erase perl-XML-SAX-Base-1.04-1.el6.rf.noarch
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: perl-XML-SAX-Base-1.04-1.el6.rf.noarch
Determining fastest mirrors
epel/metalink | 12 kB 00:00
* base: mirror.atlanticmetro.net
* epel: mirror.cogentco.com
* extras: mirror.7x24web.net
* rpmforge: mirror.rit.edu
* updates: mirror.trouble-free.net
base | 3.7 kB 00:00
base/primary_db | 3.5 MB 00:01
cr | 3.0 kB 00:00
cr/primary_db | 1.2 kB 00:00
epel | 4.0 kB 00:00
epel/primary_db | 3.8 MB 00:00
extras | 3.0 kB 00:00
extras/primary_db | 6.4 kB 00:00
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 2.6 MB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 1.1 MB 00:00
Package(s) perl-XML-SAX-Base-1.04-1.el6.rf.noarch available, but not installed.
No Packages marked for removal
[root@nagios /]#

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 10:14 am
by lmiltchev
This is strange... Can you run in terminal the following command and show the output?

Code: Select all

yum list installed | grep perl-XML

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 10:35 am
by benningtonr
[root@nagios /]# yum list installed | grep perl-XML
perl-XML-Parser.i686 2.36-7.el6 @base
perl-XML-Simple.noarch 2.18-6.el6 @base
[root@nagios /]#

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 10:52 am
by lmiltchev
Have you modified your yum repos or install scripts in any way? Can you also run the following command and show the output?

Code: Select all

yum repolist

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 11:02 am
by benningtonr
I have not modified them, here is the output:


[root@nagios /]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* epel: mirror.cogentco.com
* extras: mirror.7x24web.net
* rpmforge: mirror.rit.edu
* updates: mirror.trouble-free.net
repo id repo name status
base CentOS-6 - Base 4,776
cr CentOS-6 - CR 0
epel Extra Packages for Enterprise Linux 6 - i386 6,271
extras CentOS-6 - Extras 4
rpmforge RHEL 6 - RPMforge.net - dag 4,448
updates CentOS-6 - Updates 202
repolist: 15,701
[root@nagios /]#

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 12:14 pm
by scottwilkerson
Ok, lets try one more time, in this order

Code: Select all

yum install perl-XML-SAX -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 12:24 pm
by benningtonr
ok, got the following



[root@nagios /]# yum install perl-XML-SAX -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* epel: mirror.cogentco.com
* extras: mirror.7x24web.net
* rpmforge: mirror.rit.edu
* updates: mirror.trouble-free.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-XML-SAX.noarch 0:0.96-7.el6 will be installed
--> Processing Dependency: perl(XML::NamespaceSupport) for package: perl-XML-SAX-0.96-7.el6.noarch
--> Processing Dependency: perl(XML::LibXML::Common) for package: perl-XML-SAX-0.96-7.el6.noarch
--> Processing Dependency: perl(XML::LibXML) for package: perl-XML-SAX-0.96-7.el6.noarch
--> Running transaction check
---> Package perl-XML-LibXML.i686 1:1.70-5.el6 will be installed
---> Package perl-XML-NamespaceSupport.noarch 0:1.10-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================
Installing:
perl-XML-SAX noarch 0.96-7.el6 base 78 k
Installing for dependencies:
perl-XML-LibXML i686 1:1.70-5.el6 base 366 k
perl-XML-NamespaceSupport noarch 1.10-3.el6 base 17 k

Transaction Summary
==========================================================================================================================
Install 3 Package(s)

Total download size: 461 k
Installed size: 1.2 M
Downloading Packages:
(1/3): perl-XML-LibXML-1.70-5.el6.i686.rpm | 366 kB 00:00
(2/3): perl-XML-NamespaceSupport-1.10-3.el6.noarch.rpm | 17 kB 00:00
(3/3): perl-XML-SAX-0.96-7.el6.noarch.rpm | 78 kB 00:00
--------------------------------------------------------------------------------------------------------------------------
Total 1.6 MB/s | 461 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-XML-NamespaceSupport-1.10-3.el6.noarch 1/3
Installing : 1:perl-XML-LibXML-1.70-5.el6.i686 2/3
Installing : perl-XML-SAX-0.96-7.el6.noarch 3/3

Installed:
perl-XML-SAX.noarch 0:0.96-7.el6

Dependency Installed:
perl-XML-LibXML.i686 1:1.70-5.el6 perl-XML-NamespaceSupport.noarch 0:1.10-3.el6

Complete!


[root@nagios /]# yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* epel: mirror.cogentco.com
* extras: mirror.7x24web.net
* rpmforge: mirror.rit.edu
* updates: mirror.trouble-free.net
Setting up Install Process
Package 1:perl-XML-LibXML-1.70-5.el6.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libuuid.i686 0:2.17.2-12.4.el6 will be updated
--> Processing Dependency: libuuid = 2.17.2-12.4.el6 for package: util-linux-ng-2.17.2-12.4.el6.i686
--> Processing Dependency: libuuid = 2.17.2-12.4.el6 for package: libblkid-2.17.2-12.4.el6.i686
---> Package libuuid.i686 0:2.17.2-12.7.el6 will be an update
---> Package libuuid-devel.i686 0:2.17.2-12.7.el6 will be installed
---> Package perl-Nagios-Plugin.noarch 0:0.35-2.el6.rf will be installed
--> Processing Dependency: perl(Class::Accessor::Fast) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Math::Calc::Units) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Config::Tiny) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Class::Accessor) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Running transaction check
---> Package libblkid.i686 0:2.17.2-12.4.el6 will be updated
---> Package libblkid.i686 0:2.17.2-12.7.el6 will be an update
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 will be installed
---> Package perl-Config-Tiny.noarch 0:2.12-7.1.el6 will be installed
---> Package perl-Math-Calc-Units.noarch 0:1.07-6.el6 will be installed
---> Package util-linux-ng.i686 0:2.17.2-12.4.el6 will be updated
---> Package util-linux-ng.i686 0:2.17.2-12.7.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================
Installing:
libuuid-devel i686 2.17.2-12.7.el6 base 81 k
perl-Nagios-Plugin noarch 0.35-2.el6.rf rpmforge 60 k
Updating:
libuuid i686 2.17.2-12.7.el6 base 66 k
Installing for dependencies:
perl-Class-Accessor noarch 0.31-6.1.el6 base 26 k
perl-Config-Tiny noarch 2.12-7.1.el6 base 23 k
perl-Math-Calc-Units noarch 1.07-6.el6 epel 41 k
Updating for dependencies:
libblkid i686 2.17.2-12.7.el6 base 116 k
util-linux-ng i686 2.17.2-12.7.el6 base 1.5 M

Transaction Summary
==========================================================================================================================
Install 5 Package(s)
Upgrade 3 Package(s)

Total download size: 1.9 M
Downloading Packages:
(1/8): libblkid-2.17.2-12.7.el6.i686.rpm | 116 kB 00:00
(2/8): libuuid-2.17.2-12.7.el6.i686.rpm | 66 kB 00:00
(3/8): libuuid-devel-2.17.2-12.7.el6.i686.rpm | 81 kB 00:00
(4/8): perl-Class-Accessor-0.31-6.1.el6.noarch.rpm | 26 kB 00:00
(5/8): perl-Config-Tiny-2.12-7.1.el6.noarch.rpm | 23 kB 00:00
(6/8): perl-Math-Calc-Units-1.07-6.el6.noarch.rpm | 41 kB 00:00
(7/8): perl-Nagios-Plugin-0.35-2.el6.rf.noarch.rpm | 60 kB 00:00
(8/8): util-linux-ng-2.17.2-12.7.el6.i686.rpm | 1.5 MB 00:00
--------------------------------------------------------------------------------------------------------------------------
Total 1.6 MB/s | 1.9 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-Config-Tiny-2.12-7.1.el6.noarch 1/11
Installing : perl-Math-Calc-Units-1.07-6.el6.noarch 2/11
Installing : perl-Class-Accessor-0.31-6.1.el6.noarch 3/11
Updating : libuuid-2.17.2-12.7.el6.i686 4/11
Installing : libuuid-devel-2.17.2-12.7.el6.i686 5/11
Installing : perl-Nagios-Plugin-0.35-2.el6.rf.noarch 6/11
Updating : libblkid-2.17.2-12.7.el6.i686 7/11
Updating : util-linux-ng-2.17.2-12.7.el6.i686 8/11
Cleanup : util-linux-ng-2.17.2-12.4.el6.i686 9/11
Cleanup : libblkid-2.17.2-12.4.el6.i686 10/11
Cleanup : libuuid-2.17.2-12.4.el6.i686 11/11

Installed:
libuuid-devel.i686 0:2.17.2-12.7.el6 perl-Nagios-Plugin.noarch 0:0.35-2.el6.rf

Dependency Installed:
perl-Class-Accessor.noarch 0:0.31-6.1.el6 perl-Config-Tiny.noarch 0:2.12-7.1.el6
perl-Math-Calc-Units.noarch 0:1.07-6.el6

Updated:
libuuid.i686 0:2.17.2-12.7.el6

Dependency Updated:
libblkid.i686 0:2.17.2-12.7.el6 util-linux-ng.i686 0:2.17.2-12.7.el6

Complete!

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 12:33 pm
by lmiltchev
Try the command that you were running before and see if it is going to work:

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
You may have to reinstall the SDK following our documentation on vmware:

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

Re: vCenter Monitong with vmware wizard

Posted: Thu Jul 26, 2012 12:43 pm
by benningtonr
[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]#