Issue remains same still.Below is the o/p, sdk and OS details:
[root@CH-S_TGINAG01 ~]# perl -MCPAN -e shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.
cpan[1]> install GAAS/libwww-perl-5.837.tar.gz
Reading '/root/.cpan/Metadata'
Database was generated on Wed, 16 Jun 2021 10:41:03 GMT
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Thu, 22 Jul 2021 05:41:03 GMT
.............
New CPAN.pm version (v2.28) available.
[Currently running version is v1.9800]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
...............................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Running make for G/GA/GAAS/libwww-perl-5.837.tar.gz
Fetching with LWP:
http://www.cpan.org/authors/id/G/GA/GAA ... 837.tar.gz
Fetching with LWP:
http://www.cpan.org/authors/id/G/GA/GAAS/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/libwww-perl-5.837.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Building G/GA/GAAS/libwww-perl-5.837.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for LWP
Writing MYMETA.yml and MYMETA.json
cp lib/LWP/RobotUA.pm blib/lib/LWP/RobotUA.pm
cp lib/LWP/Authen/Ntlm.pm blib/lib/LWP/Authen/Ntlm.pm
cp lib/LWP.pm blib/lib/LWP.pm
cp lib/HTTP/Headers/ETag.pm blib/lib/HTTP/Headers/ETag.pm
cp lib/LWP/Protocol.pm blib/lib/LWP/Protocol.pm
cp lwptut.pod blib/lib/lwptut.pod
cp lib/HTTP/Request/Common.pm blib/lib/HTTP/Request/Common.pm
cp lib/HTTP/Message.pm blib/lib/HTTP/Message.pm
cp lib/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm
cp lib/HTML/Form.pm blib/lib/HTML/Form.pm
cp lib/HTTP/Cookies/Netscape.pm blib/lib/HTTP/Cookies/Netscape.pm
cp lib/LWP/Authen/Digest.pm blib/lib/LWP/Authen/Digest.pm
cp lib/LWP/Protocol/gopher.pm blib/lib/LWP/Protocol/gopher.pm
cp lib/Net/HTTP/NB.pm blib/lib/Net/HTTP/NB.pm
cp lib/HTTP/Status.pm blib/lib/HTTP/Status.pm
cp lib/LWP/Protocol/cpan.pm blib/lib/LWP/Protocol/cpan.pm
cp lib/Net/HTTPS.pm blib/lib/Net/HTTPS.pm
cp lib/HTTP/Headers/Util.pm blib/lib/HTTP/Headers/Util.pm
cp lib/LWP/Authen/Basic.pm blib/lib/LWP/Authen/Basic.pm
cp lib/HTTP/Cookies/Microsoft.pm blib/lib/HTTP/Cookies/Microsoft.pm
cp lib/LWP/UserAgent.pm blib/lib/LWP/UserAgent.pm
cp lib/LWP/Protocol/nntp.pm blib/lib/LWP/Protocol/nntp.pm
cp lib/LWP/Protocol/loopback.pm blib/lib/LWP/Protocol/loopback.pm
cp lib/LWP/Protocol/mailto.pm blib/lib/LWP/Protocol/mailto.pm
cp lib/LWP/Protocol/https10.pm blib/lib/LWP/Protocol/https10.pm
cp lib/LWP/Protocol/http.pm blib/lib/LWP/Protocol/http.pm
cp lib/LWP/MemberMixin.pm blib/lib/LWP/MemberMixin.pm
cp lib/LWP/Debug.pm blib/lib/LWP/Debug.pm
cp lib/HTTP/Headers/Auth.pm blib/lib/HTTP/Headers/Auth.pm
cp lib/Net/HTTP.pm blib/lib/Net/HTTP.pm
cp lib/LWP/media.types blib/lib/LWP/media.types
cp lib/HTTP/Daemon.pm blib/lib/HTTP/Daemon.pm
cp lib/HTTP/Cookies.pm blib/lib/HTTP/Cookies.pm
cp lib/LWP/ConnCache.pm blib/lib/LWP/ConnCache.pm
cp lib/File/Listing.pm blib/lib/File/Listing.pm
cp lib/WWW/RobotRules/AnyDBM_File.pm blib/lib/WWW/RobotRules/AnyDBM_File.pm
cp lib/LWP/MediaTypes.pm blib/lib/LWP/MediaTypes.pm
cp lwpcook.pod blib/lib/lwpcook.pod
cp lib/HTTP/Date.pm blib/lib/HTTP/Date.pm
cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.pm
cp lib/LWP/Protocol/http10.pm blib/lib/LWP/Protocol/http10.pm
cp lib/LWP/Protocol/GHTTP.pm blib/lib/LWP/Protocol/GHTTP.pm
cp lib/LWP/DebugFile.pm blib/lib/LWP/DebugFile.pm
cp lib/WWW/RobotRules.pm blib/lib/WWW/RobotRules.pm
cp lib/HTTP/Negotiate.pm blib/lib/HTTP/Negotiate.pm
cp lib/HTTP/Request.pm blib/lib/HTTP/Request.pm
cp lib/LWP/Protocol/data.pm blib/lib/LWP/Protocol/data.pm
cp lib/HTTP/Config.pm blib/lib/HTTP/Config.pm
cp lib/LWP/Protocol/nogo.pm blib/lib/LWP/Protocol/nogo.pm
cp lib/HTTP/Response.pm blib/lib/HTTP/Response.pm
cp lib/LWP/Simple.pm blib/lib/LWP/Simple.pm
cp lib/HTTP/Headers.pm blib/lib/HTTP/Headers.pm
cp lib/LWP/Protocol/https.pm blib/lib/LWP/Protocol/https.pm
cp lib/Net/HTTP/Methods.pm blib/lib/Net/HTTP/Methods.pm
cp lib/Bundle/LWP.pm blib/lib/Bundle/LWP.pm
cp bin/lwp-dump blib/script/lwp-dump
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-dump
cp bin/lwp-mirror blib/script/lwp-mirror
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-mirror
cp bin/lwp-download blib/script/lwp-download
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-download
cp bin/lwp-rget blib/script/lwp-rget
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-rget
cp bin/lwp-request blib/script/lwp-request
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-request
Manifying blib/man1/lwp-dump.1
Manifying blib/man1/lwp-mirror.1
Manifying blib/man1/lwp-download.1
Manifying blib/man1/lwp-rget.1
Manifying blib/man1/lwp-request.1
Manifying blib/man3/LWP::RobotUA.3pm
Manifying blib/man3/LWP::Authen::Ntlm.3pm
Manifying blib/man3/LWP.3pm
Manifying blib/man3/LWP::Protocol.3pm
Manifying blib/man3/HTTP::Request::Common.3pm
Manifying blib/man3/lwptut.3pm
Manifying blib/man3/HTTP::Message.3pm
Manifying blib/man3/HTML::Form.3pm
Manifying blib/man3/HTTP::Cookies::Netscape.3pm
Manifying blib/man3/Net::HTTP::NB.3pm
Manifying blib/man3/HTTP::Status.3pm
Manifying blib/man3/HTTP::Headers::Util.3pm
Manifying blib/man3/HTTP::Cookies::Microsoft.3pm
Manifying blib/man3/LWP::UserAgent.3pm
Manifying blib/man3/LWP::MemberMixin.3pm
Manifying blib/man3/LWP::Debug.3pm
Manifying blib/man3/Net::HTTP.3pm
Manifying blib/man3/HTTP::Daemon.3pm
Manifying blib/man3/HTTP::Cookies.3pm
Manifying blib/man3/LWP::ConnCache.3pm
Manifying blib/man3/File::Listing.3pm
Manifying blib/man3/WWW::RobotRules::AnyDBM_File.3pm
Manifying blib/man3/lwpcook.3pm
Manifying blib/man3/LWP::MediaTypes.3pm
Manifying blib/man3/HTTP::Date.3pm
Manifying blib/man3/HTTP::Request.3pm
Manifying blib/man3/HTTP::Negotiate.3pm
Manifying blib/man3/WWW::RobotRules.3pm
Manifying blib/man3/HTTP::Config.3pm
Manifying blib/man3/HTTP::Response.3pm
Manifying blib/man3/LWP::Simple.3pm
Manifying blib/man3/HTTP::Headers.3pm
Manifying blib/man3/Bundle::LWP.3pm
GAAS/libwww-perl-5.837.tar.gz
/usr/bin/make -- OK
Running make test
/usr/bin/perl t/TEST 0
base/common-req.t ......... ok
base/cookies.t ............ ok
base/date.t ............... ok
base/headers-auth.t ....... ok
base/headers-etag.t ....... ok
base/headers-util.t ....... ok
base/headers.t ............ ok
base/http-config.t ........ ok
base/http.t ............... ok
base/listing.t ............ ok
base/mediatypes.t ......... ok
base/message-charset.t .... ok
base/message-old.t ........ ok
base/message-parts.t ...... ok
base/message.t ............ ok
base/negotiate.t .......... ok
base/protocols.t .......... ok
base/request.t ............ ok
base/response.t ........... ok
base/status-old.t ......... ok
base/status.t ............. ok
base/ua.t ................. ok
html/form-maxlength.t ..... ok
html/form-multi-select.t .. ok
html/form-param.t ......... ok
html/form-selector.t ...... ok
html/form.t ............... ok
robot/rules-dbm.t ......... ok
robot/rules.t ............. ok
robot/ua-get.t ............ 3/8 HTTP Server terminated
robot/ua-get.t ............ Failed 5/8 subtests
robot/ua.t ................ 3/7 HTTP Server terminated
robot/ua.t ................ Failed 5/7 subtests
local/autoload-get.t ...... ok
local/autoload.t .......... ok
local/chunked.t ........... ok
local/get.t ............... ok
local/http.t .............. 1/54 # Test 2 got: "500" (local/http.t at line 79)
# Expected: "404"
# local/http.t line 79 is: ok($res->code, 404);
# Test 3 got: "Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')" (local/http.t at line 80)
# Expected: "(?^i:not\\s+found)"
# local/http.t line 80 is: ok($res->message, qr/not\s+found/i);
# Failed test 4 in local/http.t at line 82
# local/http.t line 82 is: ok($res->server);
# Failed test 5 in local/http.t at line 83
# local/http.t line 83 is: ok($res->date);
# Failed test 6 in local/http.t at line 110
# local/http.t line 110 is: ok($res->is_success);
# Test 7 got: "500" (local/http.t at line 111)
# Expected: "200"
# local/http.t line 111 is: ok($res->code, 200);
# Test 8 got: "Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')" (local/http.t at line 112)
# Expected: "OK"
# local/http.t line 112 is: ok($res->message, "OK");
# Test 9 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 117)
# Expected: "(?^m:^From:\\s*gisle\\@aas\\.no\\n)"
# local/http.t line 117 is: ok($_, qr/^From:\s*gisle\@aas\.no\n/m);
# Test 10 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 118)
# Expected: "(?^m:^Host:)"
# local/http.t line 118 is: ok($_, qr/^Host:/m);
# Test 11 got: "0" (local/http.t at line 119)
# Expected: "3"
# local/http.t line 119 is: ok(@accept, 3);
# Test 12 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 120)
# Expected: "(?^m:^Accept:\\s*text/html)"
# local/http.t line 120 is: ok($_, qr/^Accept:\s*text\/html/m);
# Test 13 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 121)
# Expected: "(?^m:^Accept:\\s*text/plain)"
# local/http.t line 121 is: ok($_, qr/^Accept:\s*text\/plain/m);
# Test 14 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 122)
# Expected: "(?^m:^Accept:\\s*image/\\*)"
# local/http.t line 122 is: ok($_, qr/^Accept:\s*image\/\*/m);
# Test 15 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 123)
# Expected: "(?^m:^If-Modified-Since:\\s*\\w{3},\\s+\\d+)"
# local/http.t line 123 is: ok($_, qr/^If-Modified-Since:\s*\w{3},\s+\d+/m);
# Test 16 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 124)
# Expected: "(?^m:^Long-Text:\\s*This.*broken between)"
# local/http.t line 124 is: ok($_, qr/^Long-Text:\s*This.*broken between/m);
# Test 17 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 125)
# Expected: "(?^m:^Foo-Bar:\\s*1\\n)"
# local/http.t line 125 is: ok($_, qr/^Foo-Bar:\s*1\n/m);
# Test 18 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 126)
# Expected: "(?^m:^X-Foo:\\s*Bar\\n)"
# local/http.t line 126 is: ok($_, qr/^X-Foo:\s*Bar\n/m);
# Test 19 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 127)
# Expected: "(?^m:^User-Agent:\\s*Mozilla/0.01)"
# local/http.t line 127 is: ok($_, qr/^User-Agent:\s*Mozilla\/0.01/m);
# Test 20 got: "500" (local/http.t at line 137)
# Expected: "200"
# local/http.t line 137 is: ok($res->code, 200);
# Test 21 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 138)
# Expected: "(?^m:^From: gisle\\@aas.no$)"
# local/http.t line 138 is: ok($res->content, qr/^From: gisle\@aas.no$/m);
# Failed test 22 in local/http.t at line 167
# local/http.t line 167 is: ok($res->is_success);
# Test 23 got: "text/plain" (local/http.t at line 168)
# Expected: "text/html"
# local/http.t line 168 is: ok($res->content_type, 'text/html');
# Test 24 got: <UNDEF> (local/http.t at line 169)
# Expected: "147"
# local/http.t line 169 is: ok($res->content_length, 147);
# Test 25 got: <UNDEF> (local/http.t at line 170)
# Expected: "En pr\xF8ve"
# local/http.t line 170 is: ok($res->title, 'En pr▒ve');
# Test 26 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 171)
# Expected: "(?^:\xE5 v\xE6re)"
# local/http.t line 171 is: ok($res->content, qr/▒ v▒re/);
# Test 28 got: "500" (local/http.t at line 177)
# Expected: "404"
# local/http.t line 177 is: ok($res->code, 404); # not found
# Test 29 got: "500" (local/http.t at line 183)
# Expected: "501"
# local/http.t line 183 is: ok($res->code, 501); # NYI
# Failed test 30 in local/http.t at line 198
# local/http.t line 198 is: ok($res->is_success);
# Test 31 got: "500 Can't connect to ch-s_tginag01:58023 (Bad hostname 'ch-s_tginag01')\n" (local/http.t at line 199)
# Expected: "(?^:/echo/redirect)"
# local/http.t line 199 is: ok($res->content, qr|/echo/redirect|);
Can't call method "is_redirect" on an undefined value at local/http.t line 200, <DAEMON> line 1.
HTTP Server terminated
local/http.t .............. Dubious, test returned 22 (wstat 5632, 0x1600)
Failed 52/54 subtests
local/protosub.t .......... ok
Test Summary Report
-------------------
robot/ua-get.t (Wstat: 0 Tests: 8 Failed: 5)
Failed tests: 1-3, 5, 7
robot/ua.t (Wstat: 0 Tests: 7 Failed: 5)
Failed tests: 1-3, 5, 7
local/http.t (Wstat: 5632 Tests: 31 Failed: 29)
Failed tests: 2-26, 28-31
Non-zero exit status: 22
Parse errors: Bad plan. You planned 54 tests but ran 31.
Files=37, Tests=1131, 42 wallclock secs ( 0.26 usr 0.05 sys + 1.56 cusr 0.26 csys = 2.13 CPU)
Result: FAIL
Failed 3/37 test programs. 39/1131 subtests failed.
make: *** [test] Error 255
GAAS/libwww-perl-5.837.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports GAAS/libwww-perl-5.837.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
GAAS/libwww-perl-5.837.tar.gz : make_test NO
cpan[2]> ^CCaught SIGINT, trying to continue
^CGot another SIGINTTerminal does not support GetHistory.
Lockfile removed.
You have new mail in /var/spool/mail/root
***************************************
[root@CH-S_TGINAG01 libexec]# ./check_vmware_api.pl -H 10.61.50.243 -u 'nagiosuser' -p 'Abb@21Admin' -l cpu -s usage -w 80 -c 90 -vvv --trace=4
[extra-opts] check_vmware_api.pl -H 10.61.50.243 -u nagiosuser -p Abb@21Admin -l cpu -s usage -w 80 -c 90 -vvv --trace=4
CHECK_VMWARE_API.PL CRITICAL - Server version unavailable at '
https://10.61.50.243:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 704.
You have mail in /var/spool/mail/root
***************************************
sdk Version:
vSphere Perl SDK 7.0.0
***************************************
OS Details
NAME="CentOS Linux"
VERSION="7 (Core)"
***************************************