vCenter Monitong with vmware wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: vCenter Monitong with vmware wizard

Post by benningtonr »

All responses are NULL

whroesx4.whro.local CPU Usage for VMHost Critical 35m 43s 5/5 2012-07-25 10:54:13 (null)
Datastore usage for VMHost Critical 39m 30s 5/5 2012-07-25 10:55:26 (null)
Input / Output for VMHost Critical 38m 14s 5/5 2012-07-25 10:51:42 (null)
Memory for VMHost Critical 36m 58s 5/5 2012-07-25 10:52:58 (null)
Networking for VMHost Critical 35m 41s 5/5 2012-07-25 10:54:15 (null)
Services for VMHost Critical 39m 29s 5/5 2012-07-25 10:55:27 (null)
VM Status for VMHost Critical 38m 12s 5/5 2012-07-25 10:51:44 (null)
whrovcenter1.whro.local VMware Storage Array Datastore VMWARElogs Usage Critical 37m 2s 5/5 2012-07-25 10:52:54 (null)
VMware Storage Array Datastore VMWAREluna Usage Critical 40m 48s 5/5 2012-07-25 10:54:08 (null)
VMware Storage Array Datastore VMWARENearLine1 Usage Critical 39m 34s 5/5 2012-07-25 10:55:22 (null)
VMware Storage Array Datastore VMWARENearLine2 Usage Critical 38m 18s 5/5 2012-07-25 10:51:38 (null)
VMware Storage Array Datastore VMWareNearLine3 Usage Critical 37m 0s 5/5 2012-07-25 10:52:56 (null)
VMware Storage Array Datastore VMWAREstore1 Usage Critical 39m 32s 5/5 2012-07-25 10:55:24 (null)
VMware Storage Array Datastore VMWAREstore2 Usage Critical 38m 16s 5/5 2012-07-25 10:51:40 (null)
VMware vCenter Cluster Cluster1 Status Critical 40m 46s 5/5 2012-07-25 10:54:10 (null)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: vCenter Monitong with vmware wizard

Post by lmiltchev »

Is perl-Nagios-Plugin installed? Please, run the following command and show us the output:

Code: Select all

yum list installed | grep perl-Nagios-Plugin
Did you follow the our documentation on monitoring vmware? See the "Install SDK Prerequisites" section.
Be sure to check out our Knowledgebase for helpful articles and solutions!
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: vCenter Monitong with vmware wizard

Post by benningtonr »

it was not listed.
So i installed it again


[root@nagios tmp]# tar xzf VMware-vSphere-Perl-SDK-5.0.0-422456.i386.gz
[root@nagios tmp]# cd vmware-vsphere-cli-distrib/
[root@nagios vmware-vsphere-cli-distrib]# ./vmware-install.pl
Creating a new vSphere CLI installer database using the tar4 format.

Installing vSphere CLI 5.0.0 build-422456 for Linux.

You must read and accept the vSphere CLI End User License Agreement to
continue.
Press enter to display it.

VMware(r) End User License Agreement

"Removed to save space"

Do you accept? (yes/no) yes

Thank you.

http_proxy not set. please set environment variable 'http_proxy' e.g. export
http_proxy=http://myproxy.mydomain.com:0000 .

ftp_proxy not set. please set environment variable 'ftp_proxy' e.g. export
ftp_proxy=http://myproxy.mydomain.com:0000 .

Before, according to instructions i set proxy to be blank
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: vCenter Monitong with vmware wizard

Post by scottwilkerson »

benningtonr wrote:Before, according to instructions i set proxy to be blank
If you logged out you need to do it again.

But before that, run the following

Code: Select all

yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
Then run the following in order

Code: Select all

export http_proxy=
export ftp_proxy=
cd /tmp/vmware-vsphere-cli-distrib/
./vmware-install.pl
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: vCenter Monitong with vmware wizard

Post by benningtonr »

ok, that seemed to work alot better, I got the following after i accepted the license:


rev10.24.08


Do you accept? (yes/no) yes

Thank you.

Please wait while configuring CPAN ...

Please wait while configuring perl modules using CPAN ...

CPAN is downloading and installing pre-requisite Perl module "Archive::Zip" .

CPAN is downloading and installing pre-requisite Perl module
"Class::MethodMaker" .

CPAN is downloading and installing pre-requisite Perl module "UUID" .

CPAN is downloading and installing pre-requisite Perl module "Data::Dump" .

CPAN is downloading and installing pre-requisite Perl module "SOAP::Lite" .

CPAN is downloading and installing pre-requisite Perl module "XML::SAX" .

CPAN is downloading and installing pre-requisite Perl module
"XML::NamespaceSupport" .

CPAN is downloading and installing pre-requisite Perl module
"XML::LibXML::Common" .

CPAN is downloading and installing pre-requisite Perl module "XML::LibXML" .

CPAN not able to install following Perl modules on the system. These must be
installed manually for use by vSphere CLI:

UUID 0.03 or newer
XML::LibXML::Common 0.13 or newer
XML::LibXML 1.63 or newer
[root@nagios vmware-vsphere-cli-distrib]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: vCenter Monitong with vmware wizard

Post by scottwilkerson »

Did you run the following first like I said?

Code: Select all

yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: vCenter Monitong with vmware wizard

Post by benningtonr »

yes I did, i followed the instructions to the letter.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: vCenter Monitong with vmware wizard

Post by benningtonr »

I still had the window open, i did recieve these at the end of that command, this is as far up as I could see though


file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarch
file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarch

Error Summary
-------------

[root@nagios libexec]# export http_proxy=
[root@nagios libexec]# export ftp_proxy=
[root@nagios libexec]# cd /tmp/vmware-vsphere-cli-distrib/
[root@nagios vmware-vsphere-cli-distrib]# ./vmware-install.pl
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: vCenter Monitong with vmware wizard

Post by scottwilkerson »

Let run

Code: Select all

yum remove perl-XML-SAX -y
Then try the following again

Code: Select all

yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: vCenter Monitong with vmware wizard

Post by benningtonr »

Got the following


[root@nagios /]# yum remove perl-XML-SAX -y
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: perl-XML-SAX
Loading mirror speeds from cached hostfile
epel/metalink | 11 kB 00:00
* base: mirror.vcu.edu
* epel: mirror.cogentco.com
* extras: mirror.vcu.edu
* rpmforge: mirror.us.leaseweb.net
* updates: mirror.us.leaseweb.net
base | 3.7 kB 00:00
cr | 3.0 kB 00:00
epel | 4.0 kB 00:00
epel/primary_db | 3.8 MB 00:00
extras | 3.0 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 1.1 MB 00:00
Package(s) perl-XML-SAX available, but not installed.
No Packages marked for removal



[root@nagios /]# [root@nagios /]# yum remove perl-XML-SAX -y
-bash: [root@nagios: command not found
[root@nagios /]# Loaded plugins: fastestmirror
-bash: Loaded: command not found
[root@nagios /]# Setting up Remove Process
-bash: Setting: command not found
[root@nagios /]# No Match for argument: perl-XML-SAX
-bash: No: command not found
* base: mirror.vcu.edu
[root@nagios /]# Loading mirror speeds from cached hostfile
-bash: Loading: command not found
[root@nagios /]# epel/metalink | 11 kB 00:00
-bash: epel/metalink: No such file or directory
-bash: 11: command not found
[root@nagios /]# * base: mirror.vcu.edu
-bash: bin: command not found
[root@nagios /]# * epel: mirror.cogentco.com
-bash: bin: command not found
[root@nagios /]# * extras: mirror.vcu.edu
-bash: bin: command not found
[root@nagios /]# * rpmforge: mirror.us.leaseweb.net
-bash: bin: command not found
[root@nagios /]# * updates: mirror.us.leaseweb.net
-bash: bin: command not found
[root@nagios /]# base | 3.7 kB 00:00
-bash: 3.7: command not found
-bash: base: command not found
[root@nagios /]# cr | 3.0 kB 00:00
-bash: cr: command not found
-bash: 3.0: command not found
[root@nagios /]# epel | 4.0 kB 00:00
-bash: epel: command not found
-bash: 4.0: command not found
[root@nagios /]# epel/primary_db | 3.8 MB 00:00
-bash: epel/primary_db: No such file or directory
-bash: 3.8: command not found
[root@nagios /]# extras | 3.0 kB 00:00
-bash: extras: command not found
-bash: 3.0: command not found
[root@nagios /]# rpmforge | 1.9 kB 00:00
-bash: 1.9: command not found
-bash: rpmforge: command not found
[root@nagios /]# updates | 3.5 kB 00:00
-bash: updates: command not found
-bash: 3.5: command not found
[root@nagios /]# updates/primary_db | 1.1 MB 00:00
-bash: updates/primary_db: No such file or directory
-bash: 1.1: command not found
[root@nagios /]# Package(s) perl-XML-SAX available, but not installed.
-bash: syntax error near unexpected token `s'
[root@nagios /]# No Packages marked for removal
-bash: No: command not found
[root@nagios /]# yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.vcu.edu
* epel: mirror.cogentco.com
* extras: mirror.vcu.edu
* rpmforge: mirror.us.leaseweb.net
* updates: mirror.us.leaseweb.net
Setting up Install Process
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
---> Package perl-XML-LibXML.i686 1:1.70-5.el6 will be installed
--> Processing Dependency: perl(XML::SAX::Exception) for package: 1:perl-XML-LibXML-1.70-5.el6.i686
--> Processing Dependency: perl(XML::SAX::DocumentLocator) for package: 1:perl-XML-LibXML-1.70-5.el6.i686
--> Processing Dependency: perl(XML::SAX::Base) for package: 1:perl-XML-LibXML-1.70-5.el6.i686
--> Processing Dependency: perl(XML::NamespaceSupport) for package: 1:perl-XML-LibXML-1.70-5.el6.i686
--> 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 perl-XML-NamespaceSupport.noarch 0:1.10-3.el6 will be installed
---> Package perl-XML-SAX.noarch 0:0.96-7.el6 will be installed
---> Package perl-XML-SAX-Base.noarch 0:1.04-1.el6.rf 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
perl-XML-LibXML i686 1:1.70-5.el6 base 366 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
perl-XML-NamespaceSupport noarch 1.10-3.el6 base 17 k
perl-XML-SAX noarch 0.96-7.el6 base 78 k
perl-XML-SAX-Base noarch 1.04-1.el6.rf rpmforge 27 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 9 Package(s)
Upgrade 3 Package(s)

Total size: 2.4 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarch
file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarch

Error Summary
-------------
Locked