Nagios, check_esx3.pl and error after upgrade

After upgrade of Fedora Nagios plugin check_esx3.pl stop working and return following error message:

ESX CRITICAL - Server version unavailable at 'https://host1:443/sdk/vimService.wsdl' at /usr/local/share/perl5/VMware/VICommon.pm line 545, line 2.

I searched how to resolve problem and fund that I must add following line to check_esx3.pl:

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

But this still not fixed the problem! I added some code to VICommon.pm to check what happen and I saw following message:

:1: parser error : Start tag expected, '<' not found LWP will support https URLs if the LWP::Protocol::https module

I understood that there is some missing perl module. After installing it with:

yum install perl-LWP-Protocol-https

all works OK:

/usr/lib64/nagios/plugins/check_esx3.pl -H host1 -f pass -l cpu
ESX OK - cpu usage=353.14 MHz (4.42%) | cpu_usagemhz=353.14Mhz;; cpu_usage=4.42%;;

Leave a Reply

Your email address will not be published. Required fields are marked *