Page 1 of 1

CHECK_VMWARE_API CRITICAL - Server version unavailable

Posted: Tue Sep 08, 2015 1:21 pm
by veenm
Hi,

I am getting below error for ESX configuration . Please let me know how to resolve this error.
CHECK_VMWARE_API CRITICAL - Server version unavailable at 'https://xxx:443/sdk/vimService.wsdl' at /usr/local/share/perl5/VMware/VICommon.pm line 551.

Re: CHECK_VMWARE_API CRITICAL - Server version unavailable

Posted: Tue Sep 08, 2015 4:00 pm
by hsmith
Can you post what command you used to do this check?

This is a good document regarding VMWare monitoring. I am aware you're running Core, but a lot of the same ideas still apply here regarding installing the SDK and whatnot.

Re: CHECK_VMWARE_API CRITICAL - Server version unavailable

Posted: Wed Sep 09, 2015 1:36 pm
by veenm
I am running below command
./check_vmware_api -H xxx -u abc -p xyz -l mem

I have made below changes in script check_vmware_api

use strict;
use warnings;
use vars qw($PROGNAME $VERSION $output $values $result $defperfargs);
use Monitoring::Plugin::Functions qw(%STATUS_TEXT);
use Monitoring::Plugin;
use File::Basename;
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
use HTTP::Date;
my $perl_module_instructions="

Re: CHECK_VMWARE_API CRITICAL - Server version unavailable

Posted: Wed Sep 09, 2015 1:48 pm
by tmcdonald
Try adding use Net::SSL; to the script's "use" section.

Re: CHECK_VMWARE_API CRITICAL - Server version unavailable

Posted: Thu Sep 10, 2015 12:00 am
by Box293
I'm going to suggest that you try the box293_check_vmware plugin instead.

box293_check_vmware can be downloaded here:
http://exchange.nagios.org/directory/Pl ... re/details

it has a detailed manual with clear instructions showing you how to get up and running as soon as possible.