VMWare Wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
prejeshpatel
Posts: 5
Joined: Wed Jan 09, 2013 10:31 am

VMWare Wizard

Post by prejeshpatel »

Hi All,

I am using the vmware wizard to add a esxi host. The wizard runs through fine but the services checks dose not seem to work. I keep on getting "Status information null"

I have checked the nagios user name and pw on the esx host and all seems to fine.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: VMWare Wizard

Post by slansing »

What version of ESX are you running and trying to monitor?
prejeshpatel
Posts: 5
Joined: Wed Jan 09, 2013 10:31 am

Re: VMWare Wizard

Post by prejeshpatel »

esxi 5.1
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMWare Wizard

Post by lmiltchev »

Can you post the actual command you are running in the command line and the output of it? (Hide sensitive info) For example:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H "IP_address" -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt" -l "CPU"
Be sure to check out our Knowledgebase for helpful articles and solutions!
prejeshpatel
Posts: 5
Joined: Wed Jan 09, 2013 10:31 am

Re: VMWare Wizard

Post by prejeshpatel »

Sorry I am new to nagios and was not aware I had run a command on the command line I was under the impression that the wizard will do it automatically.

I have now run the command


/usr/local/nagios/libexec/check_esx3.pl -H ip of the host -f

and receive the following:

Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_esx3.pl line 32.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_esx3.pl line 32.

It does show the vmware plugins in the nagios xi gui.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: VMWare Wizard

Post by scottwilkerson »

lmiltchev was having you test from the command line to see of the plugin was working and the prereqs were installed.

Your output shows they weren't.

It looks like you didn't run this command from the top of page 2 in the Monitoring VMware with Nagios XI doc

Code: Select all

yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
prejeshpatel
Posts: 5
Joined: Wed Jan 09, 2013 10:31 am

Re: VMWare Wizard

Post by prejeshpatel »

Hi,
I ran the follwing yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML

and here is my output:

[root@localhost ~]# yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
epel/metalink | 17 kB 00:00
* base: mirror01.th.ifl.net
* epel: mirror.affix.me
* extras: mirror01.th.ifl.net
* rpmforge: www.mirrorservice.org
* updates: mirror01.th.ifl.net
base | 3.7 kB 00:00
cr | 3.0 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.0 MB 00:02
extras | 3.5 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.5 kB 00:00
Setting up Install Process
Package libuuid-2.17.2-12.7.el6_3.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libuuid-devel.x86_64 0:2.17.2-12.7.el6_3 will be installed
---> Package perl-Nagios-Plugin.noarch 0:0.35-2.el6.rf will be installed
--> Processing Dependency: perl(Class::Accessor::Fast) for package: perl-Nagios- Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Math::Calc::Units) for package: perl-Nagios-Plug in-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Config::Tiny) for package: perl-Nagios-Plugin-0. 35-2.el6.rf.noarch
--> Processing Dependency: perl(Class::Accessor) for package: perl-Nagios-Plugin -0.35-2.el6.rf.noarch
---> Package perl-XML-LibXML.x86_64 1:1.70-5.el6 will be installed
--> Processing Dependency: perl(XML::SAX::Exception) for package: 1:perl-XML-Lib XML-1.70-5.el6.x86_64
--> Processing Dependency: perl(XML::SAX::DocumentLocator) for package: 1:perl-X ML-LibXML-1.70-5.el6.x86_64
--> Processing Dependency: perl(XML::SAX::Base) for package: 1:perl-XML-LibXML-1 .70-5.el6.x86_64
--> Processing Dependency: perl(XML::NamespaceSupport) for package: 1:perl-XML-L ibXML-1.70-5.el6.x86_64
--> Running transaction check
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 will be installed
---> Package perl-Config-Tiny.noarch 0:2.12-7.1.el6 will be installed
---> Package perl-Math-Calc-Units.noarch 0:1.07-6.el6 will be installed
---> Package perl-XML-NamespaceSupport.noarch 0:1.10-3.el6 will be installed
---> Package perl-XML-SAX.noarch 0:0.96-7.el6 will be installed
---> Package perl-XML-SAX-Base.noarch 0:1.04-1.el6.rf will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libuuid-devel x86_64 2.17.2-12.7.el6_3 updates 82 k
perl-Nagios-Plugin noarch 0.35-2.el6.rf rpmforge 60 k
perl-XML-LibXML x86_64 1:1.70-5.el6 base 364 k
Installing for dependencies:
perl-Class-Accessor noarch 0.31-6.1.el6 base 26 k
perl-Config-Tiny noarch 2.12-7.1.el6 base 23 k
perl-Math-Calc-Units noarch 1.07-6.el6 epel 41 k
perl-XML-NamespaceSupport noarch 1.10-3.el6 base 17 k
perl-XML-SAX noarch 0.96-7.el6 base 78 k
perl-XML-SAX-Base noarch 1.04-1.el6.rf rpmforge 27 k

Transaction Summary
================================================================================
Install 9 Package(s)

Total size: 718 k
Installed size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted ins talls of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noar ch
file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempte d installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf .noarch

Error Summary
-------------

There seems to be a error whilst installing some of the perl plugins.
prejeshpatel
Posts: 5
Joined: Wed Jan 09, 2013 10:31 am

Re: VMWare Wizard

Post by prejeshpatel »

Hi All,

I think i am getting there i reinstalled the per moduals and also the sdk.

I am now getting the following error message.


please help i feel so close but yet so far.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: VMWare Wizard

Post by slansing »

Okay, so this means that you are either unable to contact the remote system, or you are not retrieving correct plugin data. Did you make sure to check the permissions of the local plugin to make it executable? Do you get the same error when running from the command line? We generally suggest first checking with the command line as that removes the whole GUI portion of things and is the purest way to check plugins and changes.
anthony.rabbito
Posts: 17
Joined: Tue Jan 22, 2013 11:31 am

Re: VMWare Wizard

Post by anthony.rabbito »

I followed the instructions to Download and install 'VMware Infrastructure (VI) Perl Toolkit', available at http://www.vmware.com/download/sdk/. I'm still getting the following error when i run ./check_esx3.pl -h

Code: Select all

ESX3 UNKNOWN - Missing perl module VMware::VIRuntime. Download and install 'VMware Infrastructure (VI) Perl Toolkit', available at http://www.vmware.com/download/sdk/
I've tried downloading/installing all 5.x versions which did not help.

Any help would be greatly appreciated as i can't do ESXi host checks.
Locked