Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6)

Post by KiwiBloke »

Hi,

I am unable to install the prerequisites for installing the VMware SDK so I can monitor our ESX 5.1 hosts.

The errors I get when I run "yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML" are:

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

The Nagiosxi i am installing too is the 64Bit OVF file named "nagiosxi-2012r1.5-64.tar" that I downloaded this morning. After configuring the network to use a static IP and changing the hostname I ran the update procedure to update the system to R1.6. This proceeded without any errors.

I have struck this before, but the above was from a complete rebuild from scratch. I have also had issues running "yum install system-config-date". The tool installs ok, but refuses to load with the following errors:

Traceback (most recent call last):
File "/usr/share/system-config-date/system-config-date.py", line 73, in <module>
useGuiMode(page)
File "/usr/share/system-config-date/system-config-date.py", line 46, in useGuiMode
import scdMainWindow
File "/usr/share/system-config-date/scdMainWindow.py", line 30, in <module>
import gtk
File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
_init()
File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
_gtk.init_check()
RuntimeError: could not open display

In the mean time I will configure the server without monitoring our ESX servers or without correcting timezone or ntp

Cheers,

KB.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by lmiltchev »

Run the following commands in terminal:

Code: Select all

yum clean all
yum erase perl-XML-SAX-Base-1.04-1.el6.rf.noarch
yum install perl-XML-SAX -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by KiwiBloke »

Hi,

That worked a treat thanks. I was able to install the prereqs ok.

however, now I have hit another issue. I have uploaded and extracted VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar.gz. to /tmp

I ran "export http_proxy=" and export "ftp_proxy=" but when running ./vmware-install.pl the vmware SDK doesn't detect that the server has access to the internet and suggests I install packages manually.

Any ideas?

Cheers,

C.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by sreinhardt »

Just to verify the export commands did not have quotes when run correct? Also does this machine in fact have internet? If not I believe you can download the files from vmware directly that it needs, and rerun the install without issue.
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.
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by KiwiBloke »

Hi,

Correct, the commands were run from the terminal logged in as root without quotations and returned nothing. Then when the vmware install script was run it waits while and complains that thre is no internet.

This machine does have full access to the internet as i have been able to install packages via YUM (the prereqs for example).

I have read online that this seems to be a result of the vmware installer using CPAN instead of YUM, and that you can edit the install script to comment out the exit clause of the installer script to prevent it aborting, however i have not done this as it seems a little risky on a prod machine, and i need to ensure that the vmware sdk is loaded correctly.

It does mention the files it needs, i will see if i can find instructions from vmware on those other bits, but if you have any other suggestions I'm open!

Cheers,

C.
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by KiwiBloke »

configuring CPAN (automagic mode) did not help either, nor did commenting out the check for internet/exit.

I think i will try an older version of the vmware sdk.

I did have this working on one of our other nagios servers using the older sdk.

I will see how i get on.

KB.
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by KiwiBloke »

vmware in their wisdom don't seem to allow for the download of older versions of the sdk (even though they appear to make them available, there is nothing to download) - frustrating!

hope you have further suggestions :)

ie how can i install the following via yum manually before running the vmware script
Archive::Zip 1.28 or newer
Class::MethodMaker 2.10 or newer
UUID 0.03 or newer
Data::Dump 1.15 or newer
SOAP::Lite 0.710.08 or newer

KB.
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by CGraham »

In my experience CPAN Archive::Zip can be installed with yum install perl-archive-zip

Not sure about managing the versions.....
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by abrist »

You can install most of the necessary packages through yum:

Code: Select all

yum install perl-Class-MethodMaker perl-Archive-Zip perl-Data-Dump perl-SOAP-Lite
uuid-perl will have to be downloaded from cpan and compiled: http://search.cpan.org/~lzap/UUID-0.05/UUID.pm
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.
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Can't install prereqs for VMWare SDK (Nagios XI 2012R1.6

Post by KiwiBloke »

Hi,

Thanks for the new updates.

I ran yum install perl-Archive-Zip but yum told me i already had the latest, so I am guessing that this component is done and dusted.

I then ran yum install perl-Class-MethodMaker perl-Archive-Zip perl-Data-Dump perl-SOAP-Lite which installed several other missing components.

Now when i run the vmware sdk installer i get a new error (!)

The following Perl modules were found on the system but may be too old to work
with vSphere CLI:

Compress::Zlib 2.037 or newer
Compress::Raw::Zlib 2.037 or newer
IO::Compress::Base 2.037 or newer
IO::Compress::Zlib::Constants 2.037 or newer
LWP::Protocol::https 5.805 or newer

Thought this might not be too much of an impact, but when i run the vmware ESX host wizard in Nagios it still complains that the sdk is not installed.

so still no joy at this stage

C.
Locked