core virtual appliance and vmware perl lib 5.5

3 posts / 0 new
Last post
pweyrosta1
pweyrosta1's picture
core virtual appliance and vmware perl lib 5.5

Hi,

I've got a core virtual appliance updated to the latest release (20131016) and installed vmware perl tool kit 5.5 on it.

now when I try to execute check_vmware_api.pl  (also latest release 0.7.0) I'm getting the following message:

CHECK_VMWARE_API.PL CRITICAL - SOAP request error - possibly a protocol issue:   I'm running the check as nagios user, I've double checked that all the necessary perl modules are installed, I've downgraded net-HTTP and libwww-perl to 6.03. But no success.    Since I did the downgrade to 6.03 the error message comes immediately. Before it took 60s (timeout) before the message showed up.   Any idea what else to check?   peter
rvdigital
rvdigital's picture
Re: core virtual appliance and vmware perl lib 5.5

Same issue here, it also occurs with the root user.

There are some discussions about it here: https://bugs.op5.com/view.php?id=6292 but none of the suggested workarounds work with the vSphere Perl SDK 5.5.0

rvdigital
rvdigital's picture
Re: core virtual appliance and vmware perl lib 5.5

Finally I made it work. Just run the CPAN shell and execute these commands to downgrade some components:

install GAAS/Net-HTTP-6.03.tar.gz install GAAS/libwww-perl-6.03.tar.gz

source: https://communities.vmware.com/message/2298658

Then it will run flawlessly as root or any standart user. To make it work as the "nagios" user it's a bit more complicated.

Opsview ships with its own Perl libs which are loaded only by the "nagios" user, so you will have to symlink or replace the following files/directories as well to override these pre-installed libs (I use a RedHat distribution, might be different path on Debian):

/usr/local/share/perl5/LWP.pm -> /opt/opsview/perl/lib/perl5/LWP.pm /usr/local/share/perl5/LWP -> /opt/opsview/perl/lib/perl5/LWP /usr/local/share/perl5/Net/HTTP.pm -> /opt/opsview/perl/lib/perl5/Net/HTTP.pm /usr/local/share/perl5/Net/HTTP -> /opt/opsview/perl/lib/perl5/Net/HTTP