check_vmfs command

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_vmfs command

Post by dwhitfield »

Yes.

Also, I doubt there's any point in re-running the check_vmfs.sh until you have vmware-install.pl finishing. I suppose it's possible most of vmware-install.pl gets installed and then check_vmfs.sh goes through, but I doubt it.
scheema31
Posts: 90
Joined: Wed Jun 06, 2012 1:11 pm

Re: check_vmfs command

Post by scheema31 »

so in my vmware-install.pl there are many lines with
uninstall_file($gInstallerMainDB);
exit 1;
which one exactly would i need to comment out?
im pretty new to linux environment so thanks for your patience
thanks,
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_vmfs command

Post by dwhitfield »

My apologies for the confusion. The ones under if ( !( $ftpproxy && $httpproxy)) {
scheema31
Posts: 90
Joined: Wed Jun 06, 2012 1:11 pm

Re: check_vmfs command

Post by scheema31 »

okay so that made some progress in running ./vmware-install.pl, there is an msg about not being able to install Perl modules on the system manually. how would i go about installing those?
also once installed do i need to recompile anything in nagios? like nagios commands?

Code: Select all

http_proxy not set. please set environment variable 'http_proxy' e.g. export
http_proxy=http://myproxy.mydomain.com:0000 .

ftp_proxy not set. please set environment variable 'ftp_proxy' e.g. export
ftp_proxy=http://myproxy.mydomain.com:0000 .

Please wait while configuring CPAN ...

Please wait while configuring perl modules using CPAN ...

CPAN is downloading and installing pre-requisite Perl module "Archive::Zip" .

CPAN is downloading and installing pre-requisite Perl module "Crypt::SSLeay" .

CPAN is downloading and installing pre-requisite Perl module
"Class::MethodMaker" .

CPAN is downloading and installing pre-requisite Perl module "UUID" .

CPAN is downloading and installing pre-requisite Perl module "Data::Dump" .

CPAN is downloading and installing pre-requisite Perl module "SOAP::Lite" .

CPAN is downloading and installing pre-requisite Perl module "XML::SAX" .

CPAN is downloading and installing pre-requisite Perl module
"XML::NamespaceSupport" .

CPAN is downloading and installing pre-requisite Perl module
"XML::LibXML::Common" .

CPAN is downloading and installing pre-requisite Perl module "XML::LibXML" .

CPAN is downloading and installing pre-requisite Perl module
"LWP::Protocol::https" .

CPAN not able to install following Perl modules on the system. These must be
installed manually for use by vSphere CLI:

Crypt::SSLeay 0.55 or newer
Class::MethodMaker 2.10 or newer
UUID 0.03 or newer
XML::LibXML::Common 0.13 or newer
XML::LibXML 1.63 or newer
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_vmfs command

Post by Box293 »

From here:
http://www.cpan.org/modules/INSTALL.html

Install cpanm to make installing other modules easier (you'll thank us later). You need to type these commands into a Terminal emulator (Mac OS X, Win32, Linux)

Code: Select all

cpan App::cpanminus
Now install any module you can find.

Code: Select all

cpanm Module::Name
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scheema31
Posts: 90
Joined: Wed Jun 06, 2012 1:11 pm

Re: check_vmfs command

Post by scheema31 »

sorry im not entirely sure of what to search for here?
Ive run the cpan App::cpanminus command... not sure how to use cpanm Module::Name

thanks!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_vmfs command

Post by Box293 »

These are examples.

In your previous output:
scheema31 wrote:CPAN not able to install following Perl modules on the system. These must be
installed manually for use by vSphere CLI:

Crypt::SSLeay 0.55 or newer
Class::MethodMaker 2.10 or newer
UUID 0.03 or newer
XML::LibXML::Common 0.13 or newer
XML::LibXML 1.63 or newer
So you need to install these, for example:

Code: Select all

cpanm Crypt::SSLeay
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scheema31
Posts: 90
Joined: Wed Jun 06, 2012 1:11 pm

Re: check_vmfs command

Post by scheema31 »

oh i see, perfect.
So i got 2/5 installed now, the other three failed

Code: Select all

cpanm XML::LibXML
--> Working on XML::LibXML
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0128.tar.gz ... OK
Configuring XML-LibXML-2.0128 ... N/A
! Configure failed for XML-LibXML-2.0128. See /root/.cpanm/work/1476224118.15062/build.log for details.

Code: Select all

 cpanm XML::LibXML::Common
--> Working on XML::LibXML::Common
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0128.tar.gz ... OK
Configuring XML-LibXML-2.0128 ... N/A
! Configure failed for XML-LibXML-2.0128. See /root/.cpanm/work/1476224088.14626/build.log for details.
these got installed without any errors,
Crypt::SSLeay 0.55 or newer
UUID 0.03 or newer
thanks,
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_vmfs command

Post by Box293 »

Please upload the log files:
/root/.cpanm/work/1476224118.15062/build.log
/root/.cpanm/work/1476224088.14626/build.log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scheema31
Posts: 90
Joined: Wed Jun 06, 2012 1:11 pm

Re: check_vmfs command

Post by scheema31 »

/root/.cpanm/work/1476224118.15062/build.log

Code: Select all

cpanm (App::cpanminus) 1.7042 on perl 5.016003 built for x86_64-linux-thread-multi
Work directory is /root/.cpanm/work/1476224118.15062
You have make /usr/bin/make
You have LWP 6.15
You have /usr/bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching XML::LibXML () on cpanmetadb ...
--> Working on XML::LibXML
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0128.tar.gz
-> OK
Unpacking XML-LibXML-2.0128.tar.gz
Entering XML-LibXML-2.0128
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.24)
Configuring XML-LibXML-2.0128
Running Makefile.PL
enable native perl UTF8
running xml2-config...didn't manage to get libxml2 config, guessing
options:
  LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm'
  INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
  $ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found.
Try setting LIBS and INC values on the command line
Or get libxml2 from
  http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.

Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.
-> N/A
-> FAIL Configure failed for XML-LibXML-2.0128. See /root/.cpanm/work/1476224118.15062/build.log for details.
/root/.cpanm/work/1476224088.14626/build.log

Code: Select all

cpanm (App::cpanminus) 1.7042 on perl 5.016003 built for x86_64-linux-thread-multi
Work directory is /root/.cpanm/work/1476224088.14626
You have make /usr/bin/make
You have LWP 6.15
You have /usr/bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching XML::LibXML::Common () on cpanmetadb ...
--> Working on XML::LibXML::Common
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0128.tar.gz
-> OK
Unpacking XML-LibXML-2.0128.tar.gz
Entering XML-LibXML-2.0128
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.24)
Configuring XML-LibXML-2.0128
Running Makefile.PL
enable native perl UTF8
running xml2-config...didn't manage to get libxml2 config, guessing
options:
  LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm'
  INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
  $ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found.
Try setting LIBS and INC values on the command line
Or get libxml2 from
  http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.

Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.
-> N/A
-> FAIL Configure failed for XML-LibXML-2.0128. See /root/.cpanm/work/1476224088.14626/build.log for details.
Thanks!
Locked