Page 2 of 3

Re: Nagios not showing correct Datastore size

Posted: Thu Feb 02, 2017 2:23 pm
by bosecorp
still the same error
root@nagmonusdev1:(02-02 11:43): /tmp
# ./check_esx3-0.5.pl
/usr/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/XML/LibXML/Common/Common.so: undefined symbol: Perl_Tstack_sp_ptr

Re: Nagios not showing correct Datastore size

Posted: Thu Feb 02, 2017 3:29 pm
by dwhitfield
We should have asked this before, but did you follow the instructions at https://assets.nagios.com/downloads/nag ... ios-XI.pdf ?

Please run yum list installed | grep perl and provide the output in a code block.

Re: Nagios not showing correct Datastore size

Posted: Wed Feb 08, 2017 12:05 pm
by bosecorp
Hi below is the output of the "yum list installed | grep perl"

# yum list installed | grep perl
mod_perl.x86_64 2.0.4-11.el6_5 @rhel-x86_64-server-6
net-snmp-perl.x86_64 1:5.5-57.el6_8.1 @rhel-x86_64-server-6
perl.x86_64 4:5.10.1-141.el6_7.1 @rhel-x86_64-server-6
perl-Archive-Extract.x86_64 1:0.38-141.el6_7.1 @rhel-x86_64-server-6
perl-Archive-Tar.x86_64 1.58-141.el6_7.1 @rhel-x86_64-server-6
perl-BSD-Resource.x86_64 1.29.03-3.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-CGI.x86_64 3.51-141.el6_7.1 @rhel-x86_64-server-6
perl-CPAN.x86_64 1.9402-141.el6_7.1 @rhel-x86_64-server-6
perl-CPANPLUS.x86_64 0.88-141.el6_7.1 @rhel-x86_64-server-6
perl-Class-Accessor.noarch 0.31-6.1.el6 @rhel-x86_64-server-optional-6
perl-Class-Singleton.noarch 1.4-6.el6 @rhel-x86_64-server-6
perl-Compress-Raw-Bzip2.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-Compress-Zlib.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-Config-IniFiles.noarch 2.72-2.el6 @epel
perl-Config-Tiny.noarch 2.12-7.1.el6 installed
perl-Crypt-DES.x86_64 2.05-9.el6 @epel
perl-Crypt-Rijndael.x86_64 1.09-2.el6 @epel
perl-Crypt-SSLeay.x86_64 0.57-17.el6 @rhel-x86_64-server-6
perl-DBD-MySQL.x86_64 4.013-3.el6 @rhel-x86_64-server-6
perl-DBD-SQLite.x86_64 1.27-3.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-DBI.x86_64 1.609-4.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-DBIx-Simple.noarch 1.32-3.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-DateTime.x86_64 1:0.5300-2.el6 @rhel-x86_64-server-6
perl-Digest-HMAC.noarch 1.01-22.el6 @rhel-x86_64-server-6
perl-Digest-SHA.x86_64 1:5.47-141.el6_7.1 @rhel-x86_64-server-6
perl-Digest-SHA1.x86_64 2.12-2.el6 @rhel-x86_64-server-6
perl-Error.noarch 1:0.17015-4.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-Expect.noarch 1.21-3.el6 @bose-prod-rhel-x86_64-6-epel
perl-ExtUtils-CBuilder.x86_64 1:0.27-141.el6_7.1 @rhel-x86_64-server-6
perl-ExtUtils-Embed.x86_64 1.28-141.el6_7.1 @rhel-x86_64-server-6
perl-ExtUtils-MakeMaker.x86_64 6.55-141.el6_7.1 @rhel-x86_64-server-6
perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-141.el6_7.1 @rhel-x86_64-server-6
perl-File-Fetch.x86_64 0.26-141.el6_7.1 @rhel-x86_64-server-6
perl-Git.noarch 1.7.1-4.el6_7.1 @rhel-x86_64-server-6
perl-HTML-Parser.x86_64 3.64-2.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-HTML-Tagset.noarch 3.20-4.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-IO-Compress-Base.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-IO-Compress-Bzip2.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-IO-Compress-Zlib.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-IO-Socket-INET6.noarch 2.56-4.el6 @rhel-x86_64-server-6
perl-IO-Socket-SSL.noarch 1.31-3.el6 @rhel-x86_64-server-6
perl-IO-Tty.x86_64 1.08-4.el6 @rhel-x86_64-server-optional-6
perl-IO-Zlib.x86_64 1:1.09-141.el6_7.1 @rhel-x86_64-server-6
perl-IO-stringy.noarch 2.110-10.1.el6 @rhel-x86_64-server-optional-6
perl-IPC-Cmd.x86_64 1:0.56-141.el6_7.1 @rhel-x86_64-server-6
perl-List-MoreUtils.x86_64 0.22-10.el6 @rhel-x86_64-server-6
perl-Locale-Maketext-Simple.x86_64 1:0.18-141.el6_7.1 @rhel-x86_64-server-6
perl-Log-Message.x86_64 1:0.02-141.el6_7.1 @rhel-x86_64-server-6
perl-Log-Message-Simple.x86_64 0.04-141.el6_7.1 @rhel-x86_64-server-6
perl-Mail-IMAPClient.noarch 3.37-1.el6 @rhel-x86_64-6-epel
perl-Mail-POP3Client.noarch 2.18-6.el6 @epel
perl-Math-Calc-Units.noarch 1.07-6.el6 @bose-prod-rhel-x86_64-6-epel
perl-Module-Build.x86_64 1:0.3500-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-CoreList.x86_64 2.18-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-Load.x86_64 1:0.16-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-Load-Conditional.x86_64 0.30-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-Loaded.x86_64 1:0.02-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1 @rhel-x86_64-server-6
perl-Nagios-Plugin.noarch 0.35-2.el6.rf installed
perl-Net-DNS.x86_64 0.65-5.el6 @rhel-x86_64-server-6
perl-Net-LibIDN.x86_64 0.12-3.el6 @rhel-x86_64-server-6
perl-Net-SMTP-TLS.noarch 0.12-1.el6.rf @rpmforge
perl-Net-SNMP.noarch 5.2.0-4.el6 @epel
perl-Net-SSLeay.x86_64 1.35-10.el6 @rhel-x86_64-server-6
perl-Newt.x86_64 1.08-26.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-Number-Format.noarch 1.73-3.el6 installed
perl-Object-Accessor.x86_64 1:0.34-141.el6_7.1 @rhel-x86_64-server-6
perl-Package-Constants.x86_64 1:0.02-141.el6_7.1 @rhel-x86_64-server-6
perl-Params-Check.x86_64 1:0.26-141.el6_7.1 @rhel-x86_64-server-6
perl-Params-Validate.x86_64 0.92-3.el6 @rhel-x86_64-server-6
perl-Parse-CPAN-Meta.x86_64 1:1.40-141.el6_7.1 @rhel-x86_64-server-6
perl-Parse-RecDescent.noarch 1.965-1.el6 @epel
perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1 @rhel-x86_64-server-6
perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1 @rhel-x86_64-server-6
perl-SGMLSpm.noarch 1.03ii-21.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-SNMP_Session.noarch 1.12-4.el6 @rhel-x86_64-server-6
perl-Socket6.x86_64 0.23-4.el6 @rhel-x86_64-server-6
perl-Term-UI.x86_64 0.20-141.el6_7.1 @rhel-x86_64-server-6
perl-Test-Harness.x86_64 3.17-141.el6_7.1 @rhel-x86_64-server-6
perl-Test-Simple.x86_64 0.92-141.el6_7.1 @rhel-x86_64-server-6
perl-Time-HiRes.x86_64 4:1.9721-141.el6_7.1 @rhel-x86_64-server-6
perl-Time-Piece.x86_64 1.15-141.el6_7.1 @rhel-x86_64-server-6
perl-TimeDate.noarch 1:1.16-13.el6 @Bose-prod-rhel-x86_64-server-6
perl-URI.noarch 1.40-2.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-XML-Dumper.noarch 0.81-8.el6 @rhel-x86_64-server-6
perl-XML-Grove.noarch 0.46alpha-40.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-XML-LibXML.x86_64 1:1.70-5.el6 @rhel-x86_64-server-6
perl-XML-NamespaceSupport.noarch 1.10-3.el6 @rhel-x86_64-server-6
perl-XML-Parser.x86_64 2.36-7.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-XML-SAX.noarch 0.96-7.el6 @rhel-x86_64-server-6
perl-XML-Simple.noarch 2.18-6.el6 @rhel-x86_64-server-optional-6
perl-XML-Twig.noarch 3.34-1.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-core.x86_64 5.10.1-141.el6_7.1 @rhel-x86_64-server-6
perl-devel.x86_64 4:5.10.1-141.el6_7.1 @rhel-x86_64-server-6
perl-hivex.x86_64 1.3.3-4.3.el6 @rhel-x86_64-server-6
perl-libs.x86_64 4:5.10.1-141.el6_7.1 @rhel-x86_64-server-6
perl-libwww-perl.noarch 5.833-3.el6 @rhel-x86_64-server-6
perl-libxml-perl.noarch 0.08-10.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
perl-parent.x86_64 1:0.221-141.el6_7.1 @rhel-x86_64-server-6
perl-version.x86_64 3:0.77-141.el6_7.1 @rhel-x86_64-server-6
rrdtool-perl.x86_64 1.3.8-7.el6 @rhel-x86_64-server-optional-6

Also I followed the instruction in the "https://assets.nagios.com/downloads/nag ... 1478198248" and now every time I try to run "./check_esx3-0.5.pl", it gives me the output which tells me that "VMware Infrastructure (VI) Perl Toolkit' is not installed.

Re: Nagios not showing correct Datastore size

Posted: Wed Feb 08, 2017 1:14 pm
by dwhitfield
Looks like either it's not picking up the 6.0 SDK or it was never installed. You should run through https://www.vmware.com/support/develope ... nstall.pdf and when it gets to the download portion, make sure you get 5.1.

Once you have the 5.1 SDK installed, please report any issues.

Re: Nagios not showing correct Datastore size

Posted: Wed Feb 08, 2017 1:40 pm
by bosecorp
I have already installed VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar.gz and that's when I get those error messages.

Re: Nagios not showing correct Datastore size

Posted: Wed Feb 08, 2017 5:46 pm
by tgriep
Usually the VMWare SDK is installed in this folder.

Code: Select all

/usr/lib/vmware-vcli/
Can you check to see if the files are there?
Can you run the following command and post the /tmp/ls.txt file?

Code: Select all

ls -lR /usr/lib/vmware-vcli/ >/tmp/ls.txt

Re: Nagios not showing correct Datastore size

Posted: Wed Feb 08, 2017 5:48 pm
by dwhitfield
Also, what's the output of rpm -qa | grep uuid?

Our instructions have you install libuuid* but I noticed installing the SDK complained about that. Did you get any error when installing the SDK?

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

UUID 0.03 or newer
which is why I suspect we have you install it via yum, but I just want to double check.

Re: Nagios not showing correct Datastore size

Posted: Thu Feb 09, 2017 10:46 am
by bosecorp
I was not able to find the vmware-vcli/ in /usr/lib/vmware-vcli/. I followed the instruction that was outlined in the below document.
https://assets.nagios.com/downloads/nag ... 1478198248

I do not recall facing any error message during installation.

Below is the output as requested.
# rpm -qa | grep uuid
libuuid-2.17.2-12.24.el6_8.1.x86_64
uuidd-2.17.2-12.24.el6_8.1.x86_64
uuid-1.6.1-10.el6.x86_64
libuuid-devel-2.17.2-12.24.el6_8.1.x86_64

Re: Nagios not showing correct Datastore size

Posted: Thu Feb 09, 2017 11:51 am
by dwhitfield
I spoke with one of the VMWare plugin maintainers and he suggested using https://exchange.nagios.org/directory/P ... pi/details instead. As you can see, it is the replacement for check_esx3. The newer version with the new name fixes a lot of bugs.

Please try that and report any errors you receive.

Re: Nagios not showing correct Datastore size

Posted: Thu Feb 09, 2017 2:17 pm
by bosecorp
I am not able to get the installation document it says Page cannot be found.