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.
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 »

Try:

Code: Select all

yum install perl-Compress-Zlib perl-Compress-Raw perl-IO-Compress-Base perl-IO-Compress-Zlib
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.
User avatar
lmiltchev
Former Nagios Staff
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 »

I am not sure if you can install all of these packages via yum, but at least you can start with running the following command:

Code: Select all

yum install perl-Compress-Zlib perl-Compress-Raw-Zlib perl-IO-Compress-Base -y
BTW, is the SDK installer still complains about the listed below module?

Code: Select all

UUID 0.03 or newer
What's the output of the following commands?

Code: Select all

uname -a
cat /etc/redhat-release
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,

Running that latest yum command resulted in no change being made.

The SK installer now contains the following at the end:

Code: Select all

This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl.

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
The results of your other commands are:

Code: Select all

Linux pfsunagiosxi.prodsydney.com.au 2.6.32-279.5.1.el6.x86_64 #1 SMP Tue Aug 14 23:54:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

CentOS release 6.3 (Final)
The esx wizard still complains that the SDK is not installed correctly. This server is the centos vmware appliance you guys provide too, this is not a machine i have built myself.

Cheers,

C.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

Can you go to Admin -> Manage Config Wizards

Click "Check for Updates"

find the VMware Wizard, ind it it isn't the latest (1.4) download the zip and update through this page
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
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,

low and behold the version install in the appliance was 1.3. I have removed the old version and replaced it with the new 1.4

I have added an ESX server via the wizard and it seems to have added ok. 5mins later and all the metrics we wanted to a track are appearing.

As I have another fresh server that I need to configure I'll see if i can put in the correct steps needed to get the sdk to work first time round and post them here.

Thanks for your help guys.

KB.
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 »

Thanks for the update, best of luck!
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 »

Ok,

For a fresh CentOS 6.3 (64bit) based Nagiosxi virtual appliance (based on the vmware ova file) that has been upgraded to 2012R1.6 do the following in order to install the VMware SDK so you can monitor your ESX hosts.

1. log in as nagiosadmin and go to admin/Manage Config Wizards
2. Check that the vmware wizard is less than 1.4. click the "Check for Updates" button
3. The vmware Wizard should show an update to 1.4. Click download and save it on your machine somewhere.
4. Delete the older wizard and then deploy the new wizard by uploading it.
6. Run the following commands in the terminal logged in as root

Code: Select all

chown nagios.nagcmd /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
chmod 775 /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
7. Download the VMware SDK (at time of writing this was VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar.gz) and then SCP the file to /tmp on your nagiosxi server
8. Run the following in the terminal to extract the installer.

Code: Select all

cd /tmp
tar zxf VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar
9. Run the following commands in the terminal as root to install the prerequesities needed by the VMware SDK

Code: Select all

yum clean all
yum install perl-XML-SAX -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
yum install perl-Class-MethodMaker perl-Archive-Zip perl-Data-Dump perl-SOAP-Lite -y
10. You also need to install UUID-0.03 or later, but you can't use yum to do this, so, run the following in the terminal as root

Code: Select all

cd /tmp
wget --directory-prefix=/tmp http://search.cpan.org/CPAN/authors/id/J/JN/JNH/UUID-0.04.tar.gz
tar xzf UUID-0.04.tar.gz -C /tmp
cd /UUID-0.04
perl Makefile.PL
make
make install
11. Run the following from the terminal to autoconfigure CPAN (type y/yes when prompted if you want to autoconfigure)

Code: Select all

CPAN
12. run the following from the terminal as root and follow the prompts (it will pause in places while it tries and fails to use CPAN, but you have installed all the prereqisites now, so should work)

Code: Select all

cd /tmp
export http_proxy=
export ftp_proxy=
cd vmware-vsphere-cli-distrib
./vmware-install.pl
if you do the above and see this...

Code: Select all

This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl.

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
version 0.78 or newer
IO::Compress::Base 2.037 or newer
IO::Compress::Zlib::Constants 2.037 or newer
LWP::Protocol::https 5.805 or newer

Enjoy,

--the VMware team
then like me, you should now be able to start adding ESX hosts into Nagios.

Big thanks to Nagios support for the assistence in resolving this.

KB.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post by slansing »

Thank you very much for the guide on how you got yours working Kiwi, that will be a big help in the future if someone experiences this problem. Marking as resolved.
Locked