CHECK_VMWARE_API CRITICAL - Server version unavailable

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

CHECK_VMWARE_API CRITICAL - Server version unavailable

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: CHECK_VMWARE_API CRITICAL - Server version unavailable

Post 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.
Former Nagios Employee.
me.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: CHECK_VMWARE_API CRITICAL - Server version unavailable

Post 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="
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CHECK_VMWARE_API CRITICAL - Server version unavailable

Post by tmcdonald »

Try adding use Net::SSL; to the script's "use" section.
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: CHECK_VMWARE_API CRITICAL - Server version unavailable

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked