Can't monitor host using Vmware wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Can't monitor host using Vmware wizard

Post by HAL »

Hi,

We are unbale to monitorin any virtual servers using the VMware Wizard. I have already posted this issue and the troubleshooting done till date can be found at this link

http://support.nagios.com/forum/viewtop ... f=6&t=7551
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't monitor host using Vmware wizard

Post by scottwilkerson »

HAL,

Are you saying your the same person as MSPk and would like to move the topic to the customer support forum?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Can't monitor host using Vmware wizard

Post by HAL »

MSPk is a personal account we used till HAL (our project account) was activated. we will document the further troubleshotting here so that my team can have a quick reference

Additional information i would like to share:

OS on the nagios Server : RHEL 6
Nagios XI Version : 2011 R3.3
vmware sdk version : vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64

Please let me know if any other information is required and what other steps to be carried to resolve this issue.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can't monitor host using Vmware wizard

Post by lmiltchev »

Were you able to successfully install the SDK prerequisites? Can you run the following command and show us the output:

Code: Select all

yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML
Be sure to check out our Knowledgebase for helpful articles and solutions!
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Can't monitor host using Vmware wizard

Post by HAL »

I got the below error when i run the command "yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML" as specified in the admin guide(monitoring VMware).

file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-Base-1.04-3.el6.noarch and perl-XML-SAX-0.96-7.el6.noarch
file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-Base-1.04-3.el6.noarch and perl-XML-SAX-0.96-7.el6.noarch

what we have tried here is installing these packages individually - first Nagos-Plugin, second libuuid* and the at the end installed XML-LibXML - using YUM. But when we install the package perl-XML-LibXML, we got the error msg again. Here we have tried installing the dependencies first to check if we get any error in return, we started off installing Perl-SAX-Ba this installed Perl-XML-LibXML as well (this being one of the dependencies). At this point i have run the command "yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML" and got message saying each of packages are already installed and nothing to do.
After this we have installed the VMware SDK successfully (got a message at the end saying enjoy – Vmware), but we were unable to run the wizard.

I did run the plugin check_esx3.pl and the output we received is
Usage: check_esx3.pl -D <data center> | -H <host name> [ -N <vm_name> ] -u <user> -p <pass> | -f <authfile> -l <command> [ -S <subcommand> ] [ -t <timeout> ] [ -W <warn_range> ] [ -c <crit_range> ] [-V ] [ -h ]
Missing argument: commandMSPk

We have run the below command as suggested in a query and the output was 1
/usr/local/nagios/libexec/check_esx3.pl | head --lines=1 2&>1
echo $?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't monitor host using Vmware wizard

Post by scottwilkerson »

I believe we may have a bug in the current version.

Can you please install the attached wizard through Admin -> Manage Config Wizards and see if it resolves the issue?

Please let us know if this works.

thanks
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Can't monitor host using Vmware wizard

Post by HAL »

Hi,

Thanks for the wizard, we are now able to open the wizard sucessfully. however we have an issue in monitoring the Guest VM's on a vmware host, when we click on the tab which says "guest selection" we see a message saying "Error : It appears as though the VMware SDK has not yet been installed on your Nagios XI server. You must install the SDK before you are able to use this wizard."

the other question we have is username and password fields in the step-2 of the wizard, should it always be the username and password to login to the vmware server(which hosts guest vm's) or should we use the credentails of the guest vm we intend to monitor?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can't monitor host using Vmware wizard

Post by lmiltchev »

I am not sure if SDK was installed properly. Try running:

Code: Select all

yum clean all
yum erase perl-XML-SAX-Base-1.04-3.el6.noarch
yum install perl-XML-SAX -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
After this, try to re-install the SDK.

You need to enter the username/password of the host. You should be able to see guests, provided SDK was installed, and the permissions on "/usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl" are correct.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Can't monitor host using Vmware wizard

Post by HAL »

We did it.
Thread can be closed
Locked