Trouble monitoring VMWare
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Trouble monitoring VMWare
Hi all.
When I try to select from the guest tab in the VMWare wizard, I get the “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" message even though the SDK is installed and getguests.pl has completely open permissions. Thoughts?
When I try to select from the guest tab in the VMWare wizard, I get the “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" message even though the SDK is installed and getguests.pl has completely open permissions. Thoughts?
Re: Trouble monitoring VMWare
I believe there was a solution, posted by Box293 - I am including it bellow:
Hope this helps.It appears that there are some problems when trying to install the SDK on the Nagios XI 2011R1.7 VM.
These steps will help you resolve these issues. I have tested these steps on a freshly deployed 2011R1.7 VM multiple times so I am confident these will fix your problems.
=====
SDK 4.x
BEFORE you execute the command ./vmware-install.pl do the following at the console/putty session:
yum install perl-XML-LibXML perl-Crypt-SSLeay perl-Class-MethodMaker
Then execute the command ./vmware-install.pl
=====
SDK 5.x
BEFORE you execute the command ./vmware-install.pl do the following at the console/putty session:
yum install perl-XML-LibXML perl-Crypt-SSLeay perl-Class-MethodMaker
export http_proxy=""
export ftp_proxy=""
Then execute the command ./vmware-install.pl as per the steps
./vmware-install.pl
You then get the message:
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
To force/complete the SDK installation type the following:
perl Makefile.PL
make install
=====
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: Trouble monitoring VMWare
No luck; still getting the same message. I followed the instructions for SDK 5.x and never received the CPAN error that's mentioned. Where should I look next?
Re: Trouble monitoring VMWare
What is the version of the Nagios XI that you are running and what is the distro that you are running it on?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: Trouble monitoring VMWare
2011R1.8 CentOS 5 32-bit PAE
Re: Trouble monitoring VMWare
I was not able to re-create this issue. I did a fresh install of Nagios XI 2011R1.8 on CentOS 5 32-bit PAE, installed the VMware Monitoring Wizard and I am able to monitor 15 guest machines on a ESX server.
I assume that either something failed while installing the SDK prerequisites or your permissions are not set right. Can you run the following command in terminal and post the output:
I assume that either something failed while installing the SDK prerequisites or your permissions are not set right. Can you run the following command in terminal and post the output:
Code: Select all
# ll /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Trouble monitoring VMWare
Here's what I did to get things working.
Download the vmware perl SDK module. It'll be either of these two packages.
VMware-vSphere-Perl-SDK-5.0.0-422456.i386.tar.gz
VMware-vSphere-Perl-SDK-5.0.0-422456.x86_64.tar.gz
Next I expanded the tar file and it created a directory.
vmware-vsphere-cli-distrib
I had to install mine manually, but it worked great.
cd vmware-vsphere-cli-distrib
I then had to see which perl modules I was missing by typing perl Makefile.PL.
Usually, those perl modules exist and are installable through yum, If it isn't I just type "cpan" then install the module manually. If you want help with finding the modules, let me know.
After I get all the modules installed, I run ./vmware-install.pl. That did the trick for me and we're monitoring about 50 Vmware servers now.
Download the vmware perl SDK module. It'll be either of these two packages.
VMware-vSphere-Perl-SDK-5.0.0-422456.i386.tar.gz
VMware-vSphere-Perl-SDK-5.0.0-422456.x86_64.tar.gz
Next I expanded the tar file and it created a directory.
vmware-vsphere-cli-distrib
I had to install mine manually, but it worked great.
cd vmware-vsphere-cli-distrib
I then had to see which perl modules I was missing by typing perl Makefile.PL.
Usually, those perl modules exist and are installable through yum, If it isn't I just type "cpan" then install the module manually. If you want help with finding the modules, let me know.
After I get all the modules installed, I run ./vmware-install.pl. That did the trick for me and we're monitoring about 50 Vmware servers now.
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: Trouble monitoring VMWare
Would the permissions on the guests have anything to do with this? I just re-ran the wizard on a VMWare server and the login is failing (wrong u:p). The install completed successfully so maybe that's where the issue lies?
Re: Trouble monitoring VMWare
cwscribner,
In your first post you stated:
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
In your first post you stated:
I assumed you have read our documentation, prior to installing the wizard:When I try to select from the guest tab in the VMWare wizard, I get the “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" message even though the SDK is installed and getguests.pl has completely open permissions. Thoughts?
Here is the whole document (in case you missed it somehow):Common Problems
...
When I try to monitor guests on an ESX host, it populates the checkboxes properly, but under the “Guest Selection” tab it
simply says:
“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. “
As you can guess this can happen when you haven't installed the SDK. However, if you've installed the SDK, make sure you've
properly set the permissions for getguests.pl as this has been an issue for some users.
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: Trouble monitoring VMWare
Read it and followed it.
I'm assuming you're referencing my note on permissions in which I mean login permissions. I've already ran the commands for getguests.pl permissions. The wizard should generate a different error if the u:p for the server/guests is incorrect.
I'm assuming you're referencing my note on permissions in which I mean login permissions. I've already ran the commands for getguests.pl permissions. The wizard should generate a different error if the u:p for the server/guests is incorrect.