Installing Vmware plugin on NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Installing Vmware plugin on NagiosXI

Post by vinish098 »

Dear Team,
Our Nagios server is behind the proxy server .I am trying to install vmware plugin as per the documentation using below command.

cpan -f -i GAAS/libwww-perl-5.837.tar.gz

I also configured the proxy on Nagios server(Redhat 7.5).But Cpan Command is not taking Our Proxy setting.Will you please suggest us how to configure a proxy for cpan command to proceed further with deployment.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing Vmware plugin on NagiosXI

Post by scottwilkerson »

Did you export the proxies like this?

Code: Select all

export http_proxy=http://host:port/
export https_proxy=https://host:port/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: Installing Vmware plugin on NagiosXI

Post by vinish098 »

Now, we have allowed full internet access to Nagios Server without any proxy.

OS - RHEL7.5

And tried to install vmware plugin using below link:
https://assets.nagios.com/downloads/nag ... 1528958237

After successful install, we were again getting the same message in the configuration wizard to install it.

We re-ran all the commands, Below are the output for your reference:




[root@incrpvmnagios tmp]# cpan -f -i GAAS/libwww-perl-5.837.tar.gz
CPAN: Storable loaded ok (v2.45)
Reading '/root/.cpan/Metadata'
Database was generated on Wed, 20 Jun 2018 09:29:02 GMT
Running make for G/GA/GAAS/libwww-perl-5.837.tar.gz
CPAN: Digest::SHA loaded ok (v5.85)
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/libwww-perl-5.837.tar.gz ok
CPAN: File::Temp loaded ok (v0.2301)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.143240)
CPAN: Module::CoreList loaded ok (v2.76_02)

CPAN.pm: Building G/GA/GAAS/libwww-perl-5.837.tar.gz

Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
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 lib/HTTP/Request/Common.pm blib/lib/HTTP/Request/Common.pm
cp lib/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm
cp lib/HTTP/Message.pm blib/lib/HTTP/Message.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/HTTP/Status.pm blib/lib/HTTP/Status.pm
cp lib/LWP/Protocol/cpan.pm blib/lib/LWP/Protocol/cpan.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/HTTP/Headers/Auth.pm blib/lib/HTTP/Headers/Auth.pm
cp lib/LWP/Debug.pm blib/lib/LWP/Debug.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/LWP/MediaTypes.pm blib/lib/LWP/MediaTypes.pm
cp lib/LWP/Protocol/http10.pm blib/lib/LWP/Protocol/http10.pm
cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.pm
cp lib/HTTP/Date.pm blib/lib/HTTP/Date.pm
cp lib/LWP/Protocol/GHTTP.pm blib/lib/LWP/Protocol/GHTTP.pm
cp lib/HTTP/Request.pm blib/lib/HTTP/Request.pm
cp lib/HTTP/Negotiate.pm blib/lib/HTTP/Negotiate.pm
cp lib/LWP/DebugFile.pm blib/lib/LWP/DebugFile.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/Bundle/LWP.pm blib/lib/Bundle/LWP.pm
cp lib/Net/HTTP/NB.pm blib/lib/Net/HTTP/NB.pm
cp lwpcook.pod blib/lib/lwpcook.pod
cp lib/Net/HTTP.pm blib/lib/Net/HTTP.pm
cp lib/WWW/RobotRules.pm blib/lib/WWW/RobotRules.pm
cp lib/Net/HTTPS.pm blib/lib/Net/HTTPS.pm
cp lwptut.pod blib/lib/lwptut.pod
cp lib/WWW/RobotRules/AnyDBM_File.pm blib/lib/WWW/RobotRules/AnyDBM_File.pm
cp lib/Net/HTTP/Methods.pm blib/lib/Net/HTTP/Methods.pm
cp bin/lwp-download blib/script/lwp-download
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-download
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-request blib/script/lwp-request
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-request
cp bin/lwp-rget blib/script/lwp-rget
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-rget
Manifying 5 pod documents
Manifying 33 pod documents
GAAS/libwww-perl-5.837.tar.gz
/usr/bin/make -- OK
CPAN: YAML loaded ok (v0.84)
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 ............ 1/125 # Test 90 got: <UNDEF> (base/message.t at line 365)
# Expected: "\x{FEFF}Hi there \x{263A}\n"
# base/message.t line 365 is: skip($NO_ENCODE, sub { eval { $m->decoded_content } }, "\x{FEFF}Hi there \x{263A}\n");
# Failed test 93 in base/message.t at line 370
# base/message.t line 370 is: ok($m2->decode);
# Test 94 got: "gzip, base64" (base/message.t at line 371)
# Expected: <UNDEF>
# base/message.t line 371 is: ok($m2->header("Content-Encoding"), undef);
# Test 95 got: "H4sICFWAq0ECA3h4eAB7v3u/R6ZCSUZqUarCoxm7uAAZKHXiEAAAAA==\n" (base/message.t at line 372)
# Expected: "(?^:Hi there)"
# base/message.t line 372 is: ok($m2->content, qr/Hi there/);
# Failed test 96 in base/message.t at line 374
# base/message.t line 374 is: ok(grep { $_ eq "gzip" } $m->decodable);
# Test 97 got: <UNDEF> (base/message.t at line 380)
# Expected: "\x{FEFF}Hi there \x{263A}\n"
# base/message.t line 380 is: skip($NO_ENCODE, sub { eval { $m->decoded_content } }, "\x{FEFF}Hi there \x{263A}\n");
IO::Compress::Base version 2.061 required--this is only version 2.037 at /usr/lib64/perl5/IO/Compress/RawDeflate.pm line 9.
BEGIN failed--compilation aborted at /usr/lib64/perl5/IO/Compress/RawDeflate.pm line 9.
Compilation failed in require at /usr/lib64/perl5/IO/Compress/Deflate.pm line 11.
BEGIN failed--compilation aborted at /usr/lib64/perl5/IO/Compress/Deflate.pm line 11.
Compilation failed in require at ../blib/lib/HTTP/Message.pm line 480.
base/message.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 21/125 subtests
base/negotiate.t .......... ok
base/protocols.t .......... ok
base/request.t ............ 1/11 # Failed test 3 in base/request.t at line 16
# base/request.t line 16 is: ok($req->header("Accept-Encoding") =~ /\bgzip\b/); # assuming IO::Uncompress::Gunzip is there
base/request.t ............ Failed 1/11 subtests
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 ............ ok
robot/ua.t ................ ok
local/autoload-get.t ...... ok
local/autoload.t .......... ok
local/chunked.t ........... ok
local/get.t ............... ok
local/http.t .............. ok
local/protosub.t .......... ok

Test Summary Report
-------------------
base/message.t (Wstat: 65280 Tests: 110 Failed: 6)
Failed tests: 90, 93-97
Non-zero exit status: 255
Parse errors: Bad plan. You planned 125 tests but ran 110.
base/request.t (Wstat: 0 Tests: 11 Failed: 1)
Failed test: 3
Files=37, Tests=1139, 27 wallclock secs ( 0.36 usr 0.06 sys + 3.08 cusr 0.52 csys = 4.02 CPU)
Result: FAIL
Failed 2/37 test programs. 7/1139 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
Manifying 5 pod documents
Manifying 33 pod documents
Appending installation info to /root/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
GAAS/libwww-perl-5.837.tar.gz
/usr/bin/make install -- OK
[root@incrpvmnagios tmp]#







[root@incrpvmnagios tmp]# yum install -y perl-XML-SAX libuuid* perl-XML-LibXML e2fsprogs-devel
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager, susemanagerplugin, yumnotify
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package perl-XML-SAX-0.99-9.el7.noarch already installed and latest version
Package libuuid-2.23.2-52.el7.x86_64 already installed and latest version
Package libuuid-devel-2.23.2-52.el7.x86_64 already installed and latest version
Package 1:perl-XML-LibXML-2.0018-5.el7.x86_64 already installed and latest version
Package e2fsprogs-devel-1.42.9-12.el7_5.x86_64 already installed and latest version
Nothing to do
[root@incrpvmnagios tmp]#









[root@incrpvmnagios vmware-vsphere-cli-distrib]# ./vmware-install.pl EULA_AGREED=yes --default
A previous installation of vSphere CLI has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of vSphere CLI installed. Continuing will remove it in
preparation for installing a new vSphere CLI. Do you want to continue?
[yes]

Uninstalling the tar installation of vSphere CLI.

The removal of vSphere CLI 6.5.0 build-4566394 for Linux completed
successfully.

Installing vSphere CLI 6.5.0 build-4566394 for Linux.

This vSphere CLI installer includes precompiled Perl modules for RHEL.
Answering yes will install the precompiled modules, and answering no will
install from CPAN.
Do you want to install precompiled Perl modules for RHEL?
[yes]

In which directory do you want to install the executable files?
[/usr/bin]

Please wait while copying vSphere CLI files...

The installation of vSphere CLI 6.5.0 build-4566394 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/usr/bin/vmware-uninstall-vSphere-CLI.pl".

This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl.

The following Perl modules were found on the system but may be too old to work
with vSphere CLI:

Devel::StackTrace 1.31 or newer
MIME::Base64 3.14 or newer
Try::Tiny 0.22 or newer
LWP 6.15 or newer
LWP::Protocol::https 6.04 or newer
Socket6 0.23 or newer
IO::Socket::INET6 2.71 or newer
Net::HTTP 6.09 or newer

Enjoy,

--the VMware team

[root@incrpvmnagios vmware-vsphere-cli-distrib]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing Vmware plugin on NagiosXI

Post by scottwilkerson »

Now you have all the requirements, have you tried running the wizard?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: Installing Vmware plugin on NagiosXI

Post by vinish098 »

In wizard, it is showing that plugin is not installed and its asking me to install again.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing Vmware plugin on NagiosXI

Post by scottwilkerson »

What version of XI are you running? And do you have the latest wizard found at
Admin -> Manage Config Wizards
Click "Check for updated"

If there is a newer VMware wizard install it
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: Installing Vmware plugin on NagiosXI

Post by vinish098 »

Nagios XI - 5.4.13

Thanks for the help.

We have resolved this problem by installing perl-Nagios-Plugin which is available in epel repo.

Also updated all config wizards as per your suggestion.

Found a similar topic here:
https://support.nagios.com/forum/viewto ... 16&t=46658
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing Vmware plugin on NagiosXI

Post by scottwilkerson »

Glad to hear it is resolved

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked