Stats Null for ESXi host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post 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 ~]#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Stats Null for ESXi host

Post by abrist »

If all the dependencies are in place, you will now need to reinstall the vmware wizard and sdk.
EDIT: yes "sdk"
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post 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]#
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Stats Null for ESXi host

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Stats Null for ESXi host

Post 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=
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post 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:
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Stats Null for ESXi host

Post by abrist »

Try the following first, and then reinstall the sdk:

Code: Select all

yum remove perl-XML-SAX-Base perl-XML-SAX
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post by cokj72 »

attached the result
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Stats Null for ESXi host

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked