Check_esx.pl plugin issue

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
martin09
Posts: 23
Joined: Thu Jul 09, 2015 2:16 am

Check_esx.pl plugin issue

Post by martin09 »

Hi

I'm having issues with the plugin "check_esx" in checking vitrual machines. Do you have any idea what's causing this?.

Here's the Error i'm getting while the plugin is executed

CHECK_ESX.PL CRITICAL - Error: Server version unavailable at 'https://xxx.xx.xx.x:443/sdk/vimService.wsdl'

-The current perl im using is v5.8.8 for x86_64
Last edited by Anonymous on Thu Oct 26, 2017 10:54 am, edited 1 time in total.
Reason: Moved to correct forum topic
kyang

Re: Check_esx.pl plugin issue

Post by kyang »

Is this for Nagios XI or Nagios Core? I'm just wondering because you posted in the "Nagios Ideas". I'm happy to move the thread.

Can you show us how you've defined the check?

Also, what SDK did you download?
martin09
Posts: 23
Joined: Thu Jul 09, 2015 2:16 am

Re: Check_esx.pl plugin issue

Post by martin09 »

Hi

This is for Nagios Core ver 3.5.1

Here's how I defined the via command.cfg
define command {
command_name check_esx_cpu
command_line $USER1$/check_esx.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -l cpu -s usage -w $ARG3$ -c $ARG4$
}


And here's how I defined it using the check command
define service {
use vm-service,srv-pnp
host_name node1
service_description CPU Usage
check_command check_esx_cpu!itnoc!password!70!80!
}


--I downloaded VMware -vSphere SDK Perl 4.0.0 :)
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_esx.pl plugin issue

Post by lmiltchev »

Open your plugin in a text editor, and add the following line on the top (below the comments):

Code: Select all

$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;
Save, and exit. Test your check again. Did this change resolve your issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked