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.
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 »

Maybe try installing libxml through yum:

Code: Select all

yum install -y perl-libxml-perl
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 »

okay perfect, looks like that inslled the folowoing:
Installed:
perl-libxml-perl.noarch 0:0.08-19.el7

Dependency Installed:
perl-XML-Parser.x86_64 0:2.41-10.el7

now do i need to go back and run ./vmware-install.pl, how do i know this has been installed, ran through many steps just trying to put this together.
the origonal command/issue is still present

Code: Select all

#/usr/local/nagios/libexec/check_vmfs.sh -S #.#.#.81 -V /vmfs/volumes/VM-10GDATASTORE-1
which: no vmkfstools in (/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
CRITICAL - /usr/local/nagios/libexec/check_vmfs.sh: line 161: --username: command not found
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 »

Yes, you need to rerun ./vmware-install.pl. The which error is telling you it can't find the application.

It's possible that it would be installed and not in path, but it sounds like we still need to install. If you still have the issue once you get through ./vmware-install.pl, we'll start digging for the actual install path.
scheema31
Posts: 90
Joined: Wed Jun 06, 2012 1:11 pm

Re: check_vmfs command

Post by scheema31 »

okay re-ran the ./vmware-install.pl command, it installed most of the pre-requisite Perl modules but still getting error on following:

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

Class::MethodMaker 2.10 or newer
UUID 0.03 or newer
XML::LibXML::Common 0.13 or newer
XML::LibXML 1.63 or newer

ive already tried installing using
#cpan App::cpanminus
#cpanm Module::Name
also through yum
#yum install -y perl-libxml-perl
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_vmfs command

Post by tgriep »

What OS and version is the Nagios server running?

Run these commands to install the Perl Modules and see if the VMWare PERL SDK will install now.

Code: Select all

yum erase perl-XML-SAX-Base -y
yum install perl-XML-SAX --exclude=perl-XML-SAX-Base -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML
Be sure to check out our Knowledgebase for helpful articles and solutions!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: check_vmfs command

Post by avandemore »

You got about as far as I did originally but at that point it really became apparent the VCLI isn't meant to run on RHEL/CentOS 6/7. So my next question would have been does the Nagios plugin work with a newer version of VCLI as they are available and apparently easier to install. Since this plugin is not in the scope of support, I would say either try the installation with a newer CLI or an old OS eg CentOS 5.
Previous Nagios employee
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 »

But note that CentOS 5 loses support in March.
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 »

Or you could try another plugin like box293_check_vmware. It uses a vMA appliance that already has all the pre-requisites loaded and saves all of this hassle.

box293_check_vmware can be downloaded here:
http://exchange.nagios.org/directory/Pl ... re/details

Detailed manual will get you up and running fast.
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 »

thanks Box293, im using your plugin suggestion.
i have installed the plugin and now im just stuck on Step:
Configure vMA Credentials > vCenter Server Credentials,
Type
~/box293_check_vmware.pl --server 192.168.1.211 --check
vCenter_Name_Version
and press Enter

after issuing this command on my vMA the cosole just shuts down :o
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 »

I'm not sure what is going on here.
scheema31 wrote:Type
~/box293_check_vmware.pl --server 192.168.1.211 --check
vCenter_Name_Version
and press Enter
Perhaps the minus sign you are using is the cause. It's a tilde ~ symbol which is usually on the key next to the 1 key on your keyboard. Or maybe you typed it correctly and it's the forum that is not correctly displaying the symbol.

Before you press Enter to execute the command perhaps take a screenshot so we can see exactly what is going on.

You may also want to try directly on the console instead of inside an ssh session.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked