Page 2 of 4

Re: check_vmfs command

Posted: Fri Oct 07, 2016 1:25 pm
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.

Re: check_vmfs command

Posted: Fri Oct 07, 2016 1:31 pm
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,

Re: check_vmfs command

Posted: Fri Oct 07, 2016 1:34 pm
by dwhitfield
My apologies for the confusion. The ones under if ( !( $ftpproxy && $httpproxy)) {

Re: check_vmfs command

Posted: Fri Oct 07, 2016 2:33 pm
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

Re: check_vmfs command

Posted: Mon Oct 10, 2016 1:30 am
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

Re: check_vmfs command

Posted: Tue Oct 11, 2016 4:58 pm
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!

Re: check_vmfs command

Posted: Tue Oct 11, 2016 5:00 pm
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

Re: check_vmfs command

Posted: Tue Oct 11, 2016 5:51 pm
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,

Re: check_vmfs command

Posted: Tue Oct 11, 2016 5:54 pm
by Box293
Please upload the log files:
/root/.cpanm/work/1476224118.15062/build.log
/root/.cpanm/work/1476224088.14626/build.log

Re: check_vmfs command

Posted: Tue Oct 11, 2016 6:11 pm
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!