VMware wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

VMware wizard

Post by emartine »

I followed the documentation for instaling the vmware monitoring wizard here and I ran into an issue:


https://assets.nagios.com/downloads/nag ... ios-XI.pdf

./vmware-install.pl EULA_AGREED=yes
A previous installation of vSphere CLI has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of vSphere CLI installed. Continuing will remove it in
preparation for installing a new vSphere CLI. Do you want to continue?
[yes]

Uninstalling the tar installation of vSphere CLI.

The removal of vSphere CLI 6.7.0 build-8156551 for Linux completed
successfully.

Installing vSphere CLI 6.7.0 build-8156551 for Linux.

WARNING: The http_proxy environment variable is not set. If your system is
using a proxy for Internet access, you must set the http_proxy environment
variable .

If your system has direct Internet access, you can ignore this warning .

WARNING: The ftp_proxy environment variable is not set. If your system is
using a proxy for Internet access, you must set the ftp_proxy environment
variable .

If your system has direct Internet access, you can ignore this warning .

Please wait while configuring CPAN ...

Below mentioned modules with their version needed to be installed,
these modules are available in your system but vCLI need specific
version to run properly

Module: Module::Build, Version: 0.4205
Do you want to continue? (yes/no) yes

Please wait while configuring perl modules using CPAN ...

CPAN is downloading and installing pre-requisite Perl module "Archive::Zip" .

CPAN is downloading and installing pre-requisite Perl module "Path::Class" .

CPAN is downloading and installing pre-requisite Perl module "Try::Tiny" .

CPAN is downloading and installing pre-requisite Perl module "UUID" .

CPAN is downloading and installing pre-requisite Perl module "LWP" .

CPAN is downloading and installing pre-requisite Perl module
"LWP::Protocol::https" .

CPAN is downloading and installing pre-requisite Perl module "Text::Template" .


CPAN is downloading and installing pre-requisite Perl module "Net::INET6Glue" .


In which directory do you want to install the executable files?
[/usr/bin]

Please wait while copying vSphere CLI files...

The file /lib/libgcc_s.so.1 that this program was about to install already
exists. Overwrite? [yes] yes

Unable to get the access rights of source file "./lib/5.10/Socket6-0.23-rhel6".


Execution aborted.


The file /lib/libgcc_s.so.1 that this program was about to install already
exists. Overwrite? [yes] yes

Unable to get the access rights of source file "./lib/5.10/Socket6-0.23-rhel6".


Execution aborted.








Is this really a permissions problem? I ran this as root.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMware wizard

Post by lmiltchev »

Is this a 64- or 32-bit system?

Some users reported a similar/same error here:
https://communities.vmware.com/thread/589430

Run the following commands and show the output:

Code: Select all

uname -a
cat /etc/*release
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: VMware wizard

Post by emartine »

64bit and RHEL 6.9
VMware-vSphere-Perl-SDK-6.7.0-8156551.x86_64.tar.gz
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: VMware wizard

Post by emartine »

Looks like it installed properly after I created the directory

Socket6-0.23-rhel6

under the re-extracted package:

/tmp/vmware-vsphere-cli-distrib/lib/5.10/Socket6-0.23-rhel6
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMware wizard

Post by lmiltchev »

Ah, this is what the SupreetK user suggested. I am glad your issue has been resolved! Let us know if you have any further questions. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: VMware wizard

Post by emartine »

This wizard seem to be more informational and doesn't provide thresholds.
Is that correct? Is this informational only?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMware wizard

Post by lmiltchev »

I believe adding the thresholds to the wizard would be very difficult and it would not make much sense. That's why they were left out. Many of the vmware checks return more than one metric. Sometimes, even the units of measurement are different. So, unless you specify a metric, adding warning/critical thresholds don't make any sense.

Example:

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H "x.x.x.x" -f "/usr/local/nagiosxi/etc/components/vmware/VMWARE_HOST_auth.txt" -l "CPU" -w 10% -c 20%
CHECK_VMWARE_API.PL OK - cpu usage=10375.00 MHz (25.43%) | cpu_usagemhz=10375.00;10;20 cpu_usage=25.43%;10;20
Using thresholds here doesn't make sense, and it doesn't work. One metric (usage) is measured in percentage, but the other one (usagemhz) is measured in MHz... You could use thresholds if you used a "sub-command" (-s).

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H "x.x.x.x" -f "/usr/local/nagiosxi/etc/components/vmware/VMWARE_HOST_auth.txt" -l "CPU" -s usage -w 10% -c 20%
CHECK_VMWARE_API.PL CRITICAL - cpu usage=25.43 % | cpu_usage=25.43%;10;20
Hope this makes sense.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: VMware wizard

Post by emartine »

I can see that there is a way to monitor the datastore vmfs. Is there a way to monitor the host local disk?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMware wizard

Post by lmiltchev »

I don't see any such option built in the plugin. You may need to use some custom plugin/script for that. If you want to monitor a disk on a specific VM, you could just install an agent, e.g. NCPA. If however you need to monitor a disk on the ESX server itself, then this won't work. You would have to setup some custom script, that sends passive check results to Nagios XI.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked