VMware vSphere

 View Only
  • 1.  Check_vmware_api - NAGIOS

    Posted Jul 26, 2012 09:44 AM
    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.


  • 2.  RE: Check_vmware_api - NAGIOS

    Posted Jul 26, 2012 09:48 AM

    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



  • 3.  RE: Check_vmware_api - NAGIOS

    Posted Jul 26, 2012 12:41 PM

    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 ?



  • 4.  RE: Check_vmware_api - NAGIOS
    Best Answer

    Posted Jul 26, 2012 02:30 PM

    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



  • 5.  RE: Check_vmware_api - NAGIOS

    Posted Aug 30, 2013 09:04 AM