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
Check_esx.pl plugin issue
Check_esx.pl plugin issue
Last edited by Anonymous on Thu Oct 26, 2017 10:54 am, edited 1 time in total.
Reason: Moved to correct forum topic
Reason: Moved to correct forum topic
-
kyang
Re: Check_esx.pl plugin issue
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?
Can you show us how you've defined the check?
Also, what SDK did you download?
Re: Check_esx.pl plugin issue
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
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
Re: Check_esx.pl plugin issue
Open your plugin in a text editor, and add the following line on the top (below the comments):
Save, and exit. Test your check again. Did this change resolve your issue?
Code: Select all
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;Be sure to check out our Knowledgebase for helpful articles and solutions!