VMware Cloud Community
SigmaOS
Contributor
Contributor
Jump to solution

Check_vmware_api - NAGIOS

Hello,
I installed the plug-in NAGIOS "check_vmware_api.pl" for my NAGIOS server.
Everything went perfectly, but when I check my services here is the error:
"CHECK_VMWARE_API.PL CRITICAL - Crypt :: SSLeay is required for https connections, purpose Could not be loaded: Can not locate Crypt / SSLeay.pm in @ INC (@ INC contains: / etc / perl / usr / local / lib / perl/5.14.2 / usr/local/share/perl/5.14.2 / usr/lib/perl5 / usr/share/perl5 / usr/lib/perl/5.14 / usr/share/perl/5.14 / usr / local / lib / site_perl.) at / usr/local/share/perl/5.14.2/VMware/VICommon.pm line 508. "
Do you have an idea?
Thank you in advance.
Reply
0 Kudos
1 Solution

Accepted Solutions
schepp
Leadership
Leadership
Jump to solution

Could be a problem with accepting the self signed SSL cert.

Try adding

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

to the top of your script / the script producing the error.

Or to try use this in shell:

export PERL_LWP_SSL_VERIFY_HOSTNAME=0

Regards

View solution in original post

Reply
0 Kudos
4 Replies
schepp
Leadership
Leadership
Jump to solution

Hi,

well the error message tells you you're missing a perl module, so how about you install it?

http://search.cpan.org/dist/Crypt-SSLeay/SSLeay.pm

Reply
0 Kudos
SigmaOS
Contributor
Contributor
Jump to solution

It's OK !

But, this is the new error ... T_T

----------------

Server version unavailable at 'https://192.168.200.3:443/sdk/vimService.wsdl' at /usr/local/share/perl/5.14.2/VMware/VICommon.pm line 545.

----------------

An Idea ?

Reply
0 Kudos
schepp
Leadership
Leadership
Jump to solution

Could be a problem with accepting the self signed SSL cert.

Try adding

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

to the top of your script / the script producing the error.

Or to try use this in shell:

export PERL_LWP_SSL_VERIFY_HOSTNAME=0

Regards

Reply
0 Kudos
jmon23
Contributor
Contributor
Jump to solution

Reply
0 Kudos