Skip to content

Commit cec95c5

Browse files
authored
Add dependency on Net::SSL
Add dependency on Net::SSL which forces LWP to use Net::SSL for handling SSL connections. This fixes the issue with newer versions of LWP that caused a deprecation warning
1 parent 1f2a70d commit cec95c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_vmware_api.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ package CheckVMwareAPI;
4141
use File::Basename;
4242
use HTTP::Date;
4343
use Data::Dumper qw(Dumper);
44+
use Net::SSL;
4445
my $perl_module_instructions="
4546
Download the latest version of the vSphere SDK for Perl from VMware.
4647
In this example we use VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar.gz,
@@ -545,7 +546,6 @@ sub main {
545546
require VMware::VIRuntime;
546547
} or Monitoring::Plugin::Functions::plugin_exit(UNKNOWN, "Missing perl module VMware::VIRuntime. Download and install \'VMware vSphere SDK for Perl\', available at https://my.vmware.com/group/vmware/downloads\n $perl_module_instructions"); #This is, potentially, a lie. This might just as well fail if a dependency of VMware::VIRuntime is missing (i.e VIRuntime itself requires something which in turn fails).
547548

548-
549549
alarm($timeout) if $timeout;
550550

551551
$output = "Unknown ERROR!";

0 commit comments

Comments
 (0)