Datastore monitoring failing in Nagios XI 5.8.3
Posted: Fri Jun 04, 2021 11:22 am
Hello Team,
Few months back we configured VCenter monitoring through nagios xi wizard and everything looks good.But now, All other checks are working fine for that vcenter but Datastore monitoring is taking too long to execute and failing with this error message. Few details regarding sdk & nagios xi version are provided below,
Error Message
nagios@nagiosxi:[~]: /usr/local/nagios/libexec/check_vmware_api.pl -H "100.20.55.76" -f "/usr/local/nagiosxi/etc/components/vmware/auvc1_ux_corp_local_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL CRITICAL - SOAP request error - possibly a protocol issue: SSL read timeout: at /usr/local/share/perl5/Net/HTTP/Methods.pm line 278.
at /usr/local/lib64/perl5/Net/SSL.pm line 222.
Net::SSL::die_with_error('LWP::Protocol::https::Socket=GLOB(0x3cadd78)', 'SSL read timeout') called at /usr/local/lib64/perl5/Net/SSL.pm line 230
Net::SSL::__ANON__('ALRM') called at /usr/local/lib64/perl5/Net/SSL.pm line 234
eval {...} called at /usr/local/lib64/perl5/Net/SSL.pm line 234
Net::SSL::read('LWP::Protocol::https::Socket=GLOB(0x3cadd78)', 'HTTP/1.1 200 OK\x{d}\x{a}Date: Fri, 4 Jun 2021 15:53:09 GMT\x{d}\x{a}Cache-Co...', 1024, 2048) called at /usr/local/share/perl5/Net/HTTP/Methods.pm line 278
Net::HTTP::Methods::my_readline('LWP::Protocol::https::Socket=GLOB(0x3cadd78)', 'Status') called at /usr/local/share/perl5/Net/HTTP/Methods.pm line 397
Net::HTTP::Methods::read_response_headers('LWP::Protocol::https::Socket=GLOB(0x3cadd78)', 'laxed', 1, 'junk_out', 'ARRAY(0x335f8a8)') called at /usr/local/share/perl5/LWP/Protocol/http.pm line 431
LWP::Protocol::http::request('LWP::Protocol::https=HASH(0x43e8170)', 'HTTP::Request=HASH(0x44bcc60)', undef, undef, undef, 180) called at /usr/local/share/perl5/LWP/UserAgent.pm line 203
LWP::UserAgent::try {...} () called at /usr/local/share/perl5/Try/Tiny.pm line 103
eval {...} called at /usr/local/share/perl5/Try/Tiny.pm line 94
Try::Tiny::try('CODE(0x44bce40)', 'Try::Tiny::Catch=REF(0x44bcb58)') called at /usr/local/share/perl5/LWP/UserAgent.pm line 218
LWP::UserAgent::send_request('LWP::UserAgent=HASH(0x42684a8)', 'HTTP::Request=HASH(0x44bcc60)', undef, undef) called at /usr/local/share/perl5/LWP/UserAgent.pm line 290
LWP::UserAgent::simple_request('LWP::UserAgent=HASH(0x42684a8)', 'HTTP::Request=HASH(0x44bcc60)', undef, undef) called at /usr/local/share/perl5/LWP/UserAgent.pm line 297
LWP::UserAgent::request('LWP::UserAgent=HASH(0x42684a8)', 'HTTP::Request=HASH(0x44bcc60)') called at /usr/share/perl5/VMware/VICommon.pm line 2372
SoapClient::request('SoapClient=HASH(0x4268c70)', 'RetrieveProperties', '<_this type="PropertyCollector">propertyCollector</_this>\x{a}<sp...', '"urn:vim25/7.0.0.0"') called at (eval 52) line 9175
VimService::RetrieveProperties('VimService=HASH(0x39afed8)', '_this', 'ManagedObjectReference=HASH(0x42d9778)', 'specSet', 'PropertyFilterSpec=HASH(0x440f820)') called at /usr/share/perl5/VMware/VICommon.pm line 1832
ViewBase::update_view_data('Datastore=HASH(0x441ed80)', 'ARRAY(0x4432ac8)') called at /usr/share/perl5/VMware/VICommon.pm line 1675
Vim::get_view('mo_ref', 'ManagedObjectReference=HASH(0x4411ed8)', 'properties', 'ARRAY(0x4432ac8)') called at /usr/local/nagios/libexec/check_vmware_api.pl line 1216
Details
Nagios XI Version = 5.8.3
nagios@nagiosxi:[~]: vmware-cmd --version
vSphere SDK for Perl version: 7.0.0
Script 'vmware-cmd' version: 7.0.0
nagios@nagiosxi:[~]: perl -MLWP -e 'print "$LWP::VERSION\n"';
6.26
nagios@nagiosxi:[~]: yum list installed | grep -i libwww-perl
perl-libwww-perl.noarch 6.05-2.el7 @rhel-x86_64-server-7
nagios@nagiosxi:[~]: cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Best Regards,
bsanjay
Few months back we configured VCenter monitoring through nagios xi wizard and everything looks good.But now, All other checks are working fine for that vcenter but Datastore monitoring is taking too long to execute and failing with this error message. Few details regarding sdk & nagios xi version are provided below,
Error Message
nagios@nagiosxi:[~]: /usr/local/nagios/libexec/check_vmware_api.pl -H "100.20.55.76" -f "/usr/local/nagiosxi/etc/components/vmware/auvc1_ux_corp_local_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL CRITICAL - SOAP request error - possibly a protocol issue: SSL read timeout: at /usr/local/share/perl5/Net/HTTP/Methods.pm line 278.
at /usr/local/lib64/perl5/Net/SSL.pm line 222.
Net::SSL::die_with_error('LWP::Protocol::https::Socket=GLOB(0x3cadd78)', 'SSL read timeout') called at /usr/local/lib64/perl5/Net/SSL.pm line 230
Net::SSL::__ANON__('ALRM') called at /usr/local/lib64/perl5/Net/SSL.pm line 234
eval {...} called at /usr/local/lib64/perl5/Net/SSL.pm line 234
Net::SSL::read('LWP::Protocol::https::Socket=GLOB(0x3cadd78)', 'HTTP/1.1 200 OK\x{d}\x{a}Date: Fri, 4 Jun 2021 15:53:09 GMT\x{d}\x{a}Cache-Co...', 1024, 2048) called at /usr/local/share/perl5/Net/HTTP/Methods.pm line 278
Net::HTTP::Methods::my_readline('LWP::Protocol::https::Socket=GLOB(0x3cadd78)', 'Status') called at /usr/local/share/perl5/Net/HTTP/Methods.pm line 397
Net::HTTP::Methods::read_response_headers('LWP::Protocol::https::Socket=GLOB(0x3cadd78)', 'laxed', 1, 'junk_out', 'ARRAY(0x335f8a8)') called at /usr/local/share/perl5/LWP/Protocol/http.pm line 431
LWP::Protocol::http::request('LWP::Protocol::https=HASH(0x43e8170)', 'HTTP::Request=HASH(0x44bcc60)', undef, undef, undef, 180) called at /usr/local/share/perl5/LWP/UserAgent.pm line 203
LWP::UserAgent::try {...} () called at /usr/local/share/perl5/Try/Tiny.pm line 103
eval {...} called at /usr/local/share/perl5/Try/Tiny.pm line 94
Try::Tiny::try('CODE(0x44bce40)', 'Try::Tiny::Catch=REF(0x44bcb58)') called at /usr/local/share/perl5/LWP/UserAgent.pm line 218
LWP::UserAgent::send_request('LWP::UserAgent=HASH(0x42684a8)', 'HTTP::Request=HASH(0x44bcc60)', undef, undef) called at /usr/local/share/perl5/LWP/UserAgent.pm line 290
LWP::UserAgent::simple_request('LWP::UserAgent=HASH(0x42684a8)', 'HTTP::Request=HASH(0x44bcc60)', undef, undef) called at /usr/local/share/perl5/LWP/UserAgent.pm line 297
LWP::UserAgent::request('LWP::UserAgent=HASH(0x42684a8)', 'HTTP::Request=HASH(0x44bcc60)') called at /usr/share/perl5/VMware/VICommon.pm line 2372
SoapClient::request('SoapClient=HASH(0x4268c70)', 'RetrieveProperties', '<_this type="PropertyCollector">propertyCollector</_this>\x{a}<sp...', '"urn:vim25/7.0.0.0"') called at (eval 52) line 9175
VimService::RetrieveProperties('VimService=HASH(0x39afed8)', '_this', 'ManagedObjectReference=HASH(0x42d9778)', 'specSet', 'PropertyFilterSpec=HASH(0x440f820)') called at /usr/share/perl5/VMware/VICommon.pm line 1832
ViewBase::update_view_data('Datastore=HASH(0x441ed80)', 'ARRAY(0x4432ac8)') called at /usr/share/perl5/VMware/VICommon.pm line 1675
Vim::get_view('mo_ref', 'ManagedObjectReference=HASH(0x4411ed8)', 'properties', 'ARRAY(0x4432ac8)') called at /usr/local/nagios/libexec/check_vmware_api.pl line 1216
Details
Nagios XI Version = 5.8.3
nagios@nagiosxi:[~]: vmware-cmd --version
vSphere SDK for Perl version: 7.0.0
Script 'vmware-cmd' version: 7.0.0
nagios@nagiosxi:[~]: perl -MLWP -e 'print "$LWP::VERSION\n"';
6.26
nagios@nagiosxi:[~]: yum list installed | grep -i libwww-perl
perl-libwww-perl.noarch 6.05-2.el7 @rhel-x86_64-server-7
nagios@nagiosxi:[~]: cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Best Regards,
bsanjay