Page 1 of 1

Can't monitor host using Vmware wizard

Posted: Tue Oct 02, 2012 11:31 am
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

Re: Can't monitor host using Vmware wizard

Posted: Tue Oct 02, 2012 1:07 pm
by scottwilkerson
HAL,

Are you saying your the same person as MSPk and would like to move the topic to the customer support forum?

Re: Can't monitor host using Vmware wizard

Posted: Wed Oct 03, 2012 8:39 am
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.

Re: Can't monitor host using Vmware wizard

Posted: Wed Oct 03, 2012 2:42 pm
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

Re: Can't monitor host using Vmware wizard

Posted: Wed Oct 03, 2012 11:56 pm
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 $?

Re: Can't monitor host using Vmware wizard

Posted: Thu Oct 04, 2012 7:06 am
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

Re: Can't monitor host using Vmware wizard

Posted: Fri Oct 05, 2012 1:28 am
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?

Re: Can't monitor host using Vmware wizard

Posted: Fri Oct 05, 2012 8:17 am
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.

Re: Can't monitor host using Vmware wizard

Posted: Mon Oct 22, 2012 9:42 am
by HAL
We did it.
Thread can be closed