Page 3 of 4

Re: Stats Null for ESXi host

Posted: Fri Oct 18, 2013 2:50 am
by cokj72
abrist wrote:Did you ever resolve your repo issue and reinstall the necessary packages?
no, I did not register the server on RHEL.
But I reinstall package:

[root@nagios ~]# yum install perl-Nagios-Plugin
Loaded plugins: fastestmirror, rhnplugin
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:
No route to host
Loading mirror speeds from cached hostfile
* base: mirror.crazynetwork.it
* epel: mirror.i3d.net
* extras: mirror.crazynetwork.it
* rpmforge: be.mirror.eurid.eu
* updates: mirror.crazynetwork.it
Setting up Install Process
Package perl-Nagios-Plugin-0.35-2.el6.rf.noarch already installed and latest version
Nothing to do
[root@nagios ~]#

Re: Stats Null for ESXi host

Posted: Fri Oct 18, 2013 12:49 pm
by abrist
If all the dependencies are in place, you will now need to reinstall the vmware wizard and sdk.
EDIT: yes "sdk"

Re: Stats Null for ESXi host

Posted: Mon Oct 21, 2013 3:12 am
by cokj72
abrist wrote:If all the dependencies are in place, you will now need to reinstall the vmware wizard and adk.
"adk" = "SDK"?

I've following the procedur: Monitoring_VMware_With_Nagios_XI
and I've this error:

[root@nagios vmware-vsphere-cli-distrib]# ./vmware-install.pl
A previous installation of vSphere CLI has been detected.

Uninstallation of previous install failed. Would you like to remove the install
DB? [no] no

Failure

Execution aborted.

[root@nagios vmware-vsphere-cli-distrib]# ./vmware-install.pl
A previous installation of vSphere CLI has been detected.

Uninstallation of previous install failed. Would you like to remove the install
DB? [no] yes

Removing installer DB, please re-run the installer.

Failure

Execution aborted.

[root@nagios vmware-vsphere-cli-distrib]#

Re: Stats Null for ESXi host

Posted: Mon Oct 21, 2013 11:27 am
by sreinhardt
Yes he did mean the sdk, not adk. Let's check the packages you presently have installed, again to be certain as there is a possibility with the commands run before that you installed an incorrect one.

Code: Select all

rpm -qa | grep -i 'perl-xml-sax\|perl-nagios\|libuuid\|perl-xml-libxml'
Also per our documentation, did you set the http and ftp proxy environment variables prior to attempting the reinstall?

Re: Stats Null for ESXi host

Posted: Tue Oct 22, 2013 8:17 am
by cokj72
sreinhardt wrote:Yes he did mean the sdk, not adk. Let's check the packages you presently have installed, again to be certain as there is a possibility with the commands run before that you installed an incorrect one.
OK
sreinhardt wrote:

Code: Select all

rpm -qa | grep -i 'perl-xml-sax\|perl-nagios\|libuuid\|perl-xml-libxml'
[root@nagios ~]# rpm -qa | grep -i 'perl-xml-sax\|perl-nagios\|libuuid\|perl-xml-libxml'
libuuid-devel-2.17.2-12.9.el6_4.3.x86_64
libuuid-2.17.2-12.9.el6_4.3.x86_64
perl-XML-SAX-0.96-7.el6.noarch
perl-Nagios-Plugin-0.35-2.el6.rf.noarch
perl-XML-LibXML-1.70-5.el6.x86_64[/quote]
sreinhardt wrote:Also per our documentation, did you set the http and ftp proxy environment variables prior to attempting the reinstall?
No, I do not have a proxy

Re: Stats Null for ESXi host

Posted: Tue Oct 22, 2013 10:41 am
by sreinhardt
I was actually asking if you had run the commands specifying whether you do or do not, so that vmware knows. Considering you do not, try running the following two exports then running the vmware install again.

Code: Select all

export http_proxy=
export ftp_proxy=

Re: Stats Null for ESXi host

Posted: Wed Oct 23, 2013 3:12 am
by cokj72
I redid the procedure, but I always get error:

[root@nagios vmware-vsphere-cli-distrib]# rpm -qa | grep -i 'perl-xml-sax\|perl-nagios\|libuuid\|perl-xml-libxml'
libuuid-devel-2.17.2-12.9.el6_4.3.x86_64
libuuid-2.17.2-12.9.el6_4.3.x86_64
perl-XML-SAX-0.96-7.el6.noarch
perl-Nagios-Plugin-0.35-2.el6.rf.noarch
perl-XML-LibXML-1.70-5.el6.x86_64

Upload vmware.zip from GUI

[root@nagios vmware-vsphere-cli-distrib]# chown nagios.nagcmd /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
[root@nagios vmware-vsphere-cli-distrib]# chmod 775 /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
[root@nagios vmware-vsphere-cli-distrib]# yum erase perl-XML-SAX-Base -y
Loaded plugins: fastestmirror, rhnplugin
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:
No route to host
Setting up Remove Process
No Match for argument: perl-XML-SAX-Base
Loading mirror speeds from cached hostfile
* base: mirror2.hs-esslingen.de
* epel: mirror.i3d.net
* extras: ftp.halifax.rwth-aachen.de
* rpmforge: be.mirror.eurid.eu
* updates: centos.psw.net
Package(s) perl-XML-SAX-Base available, but not installed.
No Packages marked for removal
[root@nagios vmware-vsphere-cli-distrib]# yum install perl-XML-SAX --exclude= perl-XML-SAX-Base -y
Loaded plugins: fastestmirror, rhnplugin
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:
No route to host
Loading mirror speeds from cached hostfile
* base: mirror2.hs-esslingen.de
* epel: mirror.i3d.net
* extras: mirror.maeh.org
* rpmforge: be.mirror.eurid.eu
* updates: mirrors.prometeus.net
Setting up Install Process
Package perl-XML-SAX-0.96-7.el6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-XML-SAX-Base.noarch 0:1.04-1.el6.rf will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
perl-XML-SAX-Base noarch 1.04-1.el6.rf rpmforge 27 k

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

Total size: 27 k
Installed size: 131 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
file /usr/share/man/man3/XML::SAX::Base.3pm.gz from install of perl-XML-SAX-Base-1.04-1.el6.rf.noarch conflicts with file from package perl-XML-SAX-0.96-7.el6.noarch
file /usr/share/man/man3/XML::SAX::Exception.3pm.gz from install of perl-XML-SAX-Base-1.04-1.el6.rf.noarch conflicts with file from package perl-XML-SAX-0.96-7.el6.noarch

Error Summary
-------------
[root@nagios vmware-vsphere-cli-distrib]# yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML
Loaded plugins: fastestmirror, rhnplugin
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:
No route to host
Loading mirror speeds from cached hostfile
* base: mirror2.hs-esslingen.de
* epel: be.mirror.eurid.eu
* extras: ftp.halifax.rwth-aachen.de
* rpmforge: be.mirror.eurid.eu
* updates: centos.psw.net
Setting up Install Process
Package perl-Nagios-Plugin-0.35-2.el6.rf.noarch already installed and latest version
Package libuuid-2.17.2-12.9.el6_4.3.x86_64 already installed and latest version
Package libuuid-devel-2.17.2-12.9.el6_4.3.x86_64 already installed and latest version
Package 1:perl-XML-LibXML-1.70-5.el6.x86_64 already installed and latest version
Nothing to do
[root@nagios vmware-vsphere-cli-distrib]# export http_proxy=
[root@nagios vmware-vsphere-cli-distrib]# export ftp_proxy=
[root@nagios vmware-vsphere-cli-distrib]# ./vmware-install.pl
A previous installation of vSphere CLI has been detected.

Uninstallation of previous install failed. Would you like to remove the install
DB? [no] yes

Removing installer DB, please re-run the installer.

Failure

Execution aborted.
-------------------------------------------------OR-----------------------------
[root@nagios vmware-vsphere-cli-distrib]# ./vmware-install.pl
A previous installation of vSphere CLI has been detected.

Uninstallation of previous install failed. Would you like to remove the install
DB? [no] no

Removing installer DB, please re-run the installer.

Failure

Execution aborted.


Help me :mrgreen:

Re: Stats Null for ESXi host

Posted: Wed Oct 23, 2013 11:28 am
by abrist
Try the following first, and then reinstall the sdk:

Code: Select all

yum remove perl-XML-SAX-Base perl-XML-SAX

Re: Stats Null for ESXi host

Posted: Thu Oct 24, 2013 2:44 am
by cokj72
attached the result

Re: Stats Null for ESXi host

Posted: Thu Oct 24, 2013 10:35 am
by sreinhardt
Looks like you are missing another package. Let's verify:

Code: Select all

rpm -qa | grep -i perl-Class-MethodMaker
If that comes up blank, try the following then again run the vmware install.

Code: Select all

yum install perl-Class-MethodMaker