VMware Perl SDK issue Xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

VMware Perl SDK issue Xi

Post by MichielvM »

Hi all,

I've done this numerous times, but this time it won't work.
I'm trying to install the VMware Perl SDK in order to monitor VMware.

I tried the following steps:

Code: Select all

yum install perl-XML-SAX-0.96-7.el6.noarch
yum install perl-XML-LibXML perl-Crypt-SSLeay perl-Class-MethodMaker
export http_proxy=""
export ftp_proxy=""

tar xvzf VMware-vSphere-Perl-SDK-5.5.0-1384587.x86_64.tar.gz
cd vmware-vsphere-cli-distrib/
./vmware-install.pl -default
That should do it.
Now when I go to the Xi config wizard to monitor a vm host, it says:

Code: Select all

Error: It appears as though you have not installed the VMware SDK or ESX plugins on your Nagios XI server. You must have these components properly installed on your system before using this wizard.
Note: this is a nearly fresh install of Nagios Xi 2014R2.7 running on (virtual) Centos 6.6 64 bit.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: VMware Perl SDK issue Xi

Post by hsmith »

I've had to do it twice in certain cases. It may not hurt to restart your nagios service as well.
Former Nagios Employee.
me.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: VMware Perl SDK issue Xi

Post by MichielvM »

Still the same, restarted Nagios service a couple of times.
Followed the prescribed Nagios installation guide instead of my own notes (slightly different but workes in the past)

Any ideas?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: VMware Perl SDK issue Xi

Post by Box293 »

What output do you get when you run this command:

Code: Select all

/usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: VMware Perl SDK issue Xi

Post by MichielvM »

Box293 wrote:What output do you get when you run this command:

Code: Select all

/usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
Server version unavailable at 'https://localhost:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 726, <STDIN> line 2.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: VMware Perl SDK issue Xi

Post by jdalrymple »

MichielvM wrote:I tried the following steps:

Code: Select all

yum install perl-XML-SAX-0.96-7.el6.noarch
yum install perl-XML-LibXML perl-Crypt-SSLeay perl-Class-MethodMaker
export http_proxy=""
export ftp_proxy=""

tar xvzf VMware-vSphere-Perl-SDK-5.5.0-1384587.x86_64.tar.gz
cd vmware-vsphere-cli-distrib/
./vmware-install.pl -default
That should do it.
Since you're not posting entire outputs we have no idea if any of this succeeded or failed. One thing is for sure - I don't see the step:

Code: Select all

yum erase perl-XML-SAX-Base -y
And if you didn't do that, it failed.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: VMware Perl SDK issue Xi

Post by MichielvM »

When I run that:

Code: Select all

Package(s) perl-XML-SAX-Base available, but not installed.
No Packages marked for removal
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: VMware Perl SDK issue Xi

Post by hsmith »

I can't tell you for sure if it's related, but is there a reason you're running the version that you are? I've had success with VMware-vSphere-Perl-SDK-6.0.0-2503617.x86_64.tar.
Former Nagios Employee.
me.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: VMware Perl SDK issue Xi

Post by MichielvM »

For some reason I retried the procedure recommended by Nagios, and it worked!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: VMware Perl SDK issue Xi

Post by hsmith »

Is there anything else we can do to help you with this one? Like I said originally, sometimes that one takes multiple tries, and I can't explain why.
Former Nagios Employee.
me.
Locked