Page 1 of 3
VMWare Monitoring
Posted: Mon Jan 25, 2016 1:37 am
by raamardhani7
Hi Team,
I have followed the document:
https://assets.nagios.com/downloads/na ... os-XI.pdf
Have installed the code and the output I had at the end is as below:
Code: Select all
This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl.
The following Perl modules were found on the system but may be too old to work
with vSphere CLI:
MIME::Base64 3.14 or newer
Compress::Zlib 2.037 or newer
Compress::Raw::Zlib 2.037 or newer
version 0.78 or newer
IO::Compress::Base 2.037 or newer
IO::Compress::Zlib::Constants 2.037 or newer
LWP::Protocol::https 5.805 or newer
Socket6 0.23 or newer
IO::Socket::INET6 2.71 or newer
Enjoy,
--the VMware team
But when I a trying to run the VMware wizard from the servers, I am getting the below error. Please help me with this, thanks.
Code: Select all
Error: It appears as though you have not installed the VMware SDK or ESX plugins on your Nagios XI server. You must have these components properly installed on your system before using this wizard.
To complete the installation of the required components please follow the Monitoring VMware with Nagios XI documentation.
Re: VMWare Monitoring
Posted: Mon Jan 25, 2016 10:14 am
by lmiltchev
Run the following command:
Code: Select all
yum list installed | grep perl > /tmp/perl.txt
then post the "perl.txt" that was generated in the "/tmp/" directory.
Also, run the following command and show the output:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -V
Re: VMWare Monitoring
Posted: Mon Jan 25, 2016 11:52 am
by raamardhani7
lmiltchev wrote:Run the following command:
Code: Select all
yum list installed | grep perl > /tmp/perl.txt
then post the "perl.txt" that was generated in the "/tmp/" directory.
Also, run the following command and show the output:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -V
Please find the output's asked for:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -V
check_esx3.pl 0.2.0
Code: Select all
more /tmp/perl.txt
mod_perl.x86_64 2.0.4-11.el6_5 @rhel-x86_64-server-6
net-snmp-perl.x86_64 1:5.5-54.el6_7.1 @rhel-x86_64-server-6
perl.x86_64 4:5.10.1-141.el6_7.1 @rhel-x86_64-server-6
perl-Archive-Extract.x86_64 1:0.38-141.el6_7.1 @rhel-x86_64-server-6
perl-Archive-Tar.x86_64 1.58-141.el6_7.1 @rhel-x86_64-server-6
perl-BSD-Resource.x86_64 1.29.03-3.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-CGI.x86_64 3.51-141.el6_7.1 @rhel-x86_64-server-6
perl-CGI-Simple.noarch 1.113-1.el6 @epel
perl-CPAN.x86_64 1.9402-141.el6_7.1 @rhel-x86_64-server-6
perl-CPANPLUS.x86_64 0.88-141.el6_7.1 @rhel-x86_64-server-6
perl-Class-Accessor.noarch 0.31-6.1.el6 @rhel-x86_64-server-optional-6
perl-Class-Singleton.noarch 1.4-6.el6 @rhel-x86_64-server-6
perl-Compress-Raw-Bzip2.x86_64 2.052-1.el6.rf @rpmforge
perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-Compress-Zlib.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-Config-General.noarch 2.52-1.el6 @rhel-x86_64-server-6
perl-Config-IniFiles.noarch 2.72-2.el6 @epel
perl-Config-Tiny.noarch 2.12-7.1.el6 @rhel-x86_64-server-optional-6
perl-Crypt-DES.x86_64 2.05-9.el6 @epel
perl-Crypt-Rijndael.x86_64 1.09-2.el6 @epel
perl-Crypt-SSLeay.x86_64 0.57-17.el6 @rhel-x86_64-server-6
perl-DBD-MySQL.x86_64 4.013-3.el6 @rhel-x86_64-server-6
perl-DBD-SQLite.x86_64 1.27-3.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-DBI.x86_64 1.609-4.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-DBIx-Simple.noarch 1.32-3.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-Date-Manip.noarch 6.24-1.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-DateTime.x86_64 1:0.5300-2.el6 @rhel-x86_64-server-6
perl-Digest-HMAC.noarch 1.01-22.el6 @rhel-x86_64-server-6
perl-Digest-SHA.x86_64 1:5.47-141.el6_7.1 @rhel-x86_64-server-6
perl-Digest-SHA1.x86_64 2.12-2.el6 @rhel-x86_64-server-6
perl-Email-Date-Format.noarch 1.002-5.el6 @rhel-x86_64-server-optional-6
perl-Error.noarch 1:0.17015-4.el6 @rhel-x86_64-server-6
perl-ExtUtils-CBuilder.x86_64 1:0.27-141.el6_7.1 @rhel-x86_64-server-6
perl-ExtUtils-Embed.x86_64 1.28-141.el6_7.1 @rhel-x86_64-server-6
perl-ExtUtils-MakeMaker.x86_64 6.55-141.el6_7.1 @rhel-x86_64-server-6
perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-141.el6_7.1 @rhel-x86_64-server-6
perl-File-Fetch.x86_64 0.26-141.el6_7.1 @rhel-x86_64-server-6
perl-HTML-Parser.x86_64 3.64-2.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-HTML-Tagset.noarch 3.20-4.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-IO-Compress-Base.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-IO-Compress-Bzip2.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-IO-Compress-Zlib.x86_64 2.021-141.el6_7.1 @rhel-x86_64-server-6
perl-IO-Socket-INET6.noarch 2.56-4.el6 @rhel-x86_64-server-6
perl-IO-Socket-SSL.noarch 1.31-2.el6 @rhel-x86_64-server-6
perl-IO-Zlib.x86_64 1:1.09-141.el6_7.1 @rhel-x86_64-server-6
perl-IO-stringy.noarch 2.110-10.1.el6 @rhel-x86_64-server-optional-6
perl-IPC-Cmd.x86_64 1:0.56-141.el6_7.1 @rhel-x86_64-server-6
perl-JSON-XS.x86_64 1:2.27-2.el6 @epel
perl-JSON-XS-VersionOneAndTwo.noarch
perl-List-MoreUtils.x86_64 0.22-10.el6 @rhel-x86_64-server-6
perl-Locale-Maketext-Simple.x86_64 1:0.18-141.el6_7.1 @rhel-x86_64-server-6
perl-Log-Message.x86_64 1:0.02-141.el6_7.1 @rhel-x86_64-server-6
perl-Log-Message-Simple.x86_64 0.04-141.el6_7.1 @rhel-x86_64-server-6
perl-MIME-Lite.noarch 3.027-2.el6 @epel
perl-MIME-Types.noarch 1.28-2.el6 @epel
perl-Mail-IMAPClient.noarch 3.34-1.el6 @epel
perl-Mail-POP3Client.noarch 2.18-6.el6 @epel
perl-MailTools.noarch 2.04-4.el6 @rhel-x86_64-server-6
perl-Math-Calc-Units.noarch 1.07-6.el6 @epel
perl-Module-Build.x86_64 1:0.3500-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-CoreList.x86_64 2.18-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-Load.x86_64 1:0.16-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-Load-Conditional.x86_64
perl-Module-Loaded.x86_64 1:0.02-141.el6_7.1 @rhel-x86_64-server-6
perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1 @rhel-x86_64-server-6
perl-Nagios-Plugin.noarch 0.35-2.el6.rf @rpmforge
perl-Net-DNS.x86_64 0.65-5.el6 @rhel-x86_64-server-6
perl-Net-LibIDN.x86_64 0.12-3.el6 @rhel-x86_64-server-6
perl-Net-SMTP-TLS.noarch 0.12-1.el6.rf @nagiosxi-deps
perl-Net-SNMP.noarch 5.2.0-4.el6 @epel
perl-Net-SSLeay.x86_64 1.35-9.el6 @rhel-x86_64-server-6
perl-Newt.x86_64 1.08-26.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-Number-Format.noarch 1.73-3.el6 @epel
perl-Object-Accessor.x86_64 1:0.34-141.el6_7.1 @rhel-x86_64-server-6
perl-Package-Constants.x86_64 1:0.02-141.el6_7.1 @rhel-x86_64-server-6
perl-Params-Check.x86_64 1:0.26-141.el6_7.1 @rhel-x86_64-server-6
perl-Params-Validate.x86_64 0.92-3.el6 @rhel-x86_64-server-6
perl-Parse-CPAN-Meta.x86_64 1:1.40-141.el6_7.1 @rhel-x86_64-server-6
perl-Parse-RecDescent.noarch 1.965-1.el6 @epel
perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1 @rhel-x86_64-server-6
perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1 @rhel-x86_64-server-6
perl-RRD-Simple.noarch 1.44-1.el6.rf @rpmforge
perl-SNMP_Session.noarch 1.12-4.el6 @rhel-x86_64-server-6
perl-SOAP-Lite.noarch 0.710.10-3.el6 @rhel-x86_64-server-optional-6
perl-Socket6.x86_64 0.23-4.el6 @rhel-x86_64-server-6
perl-Term-UI.x86_64 0.20-141.el6_7.1 @rhel-x86_64-server-6
perl-Test-Harness.x86_64 3.17-141.el6_7.1 @rhel-x86_64-server-6
perl-Test-Simple.x86_64 0.92-141.el6_7.1 @rhel-x86_64-server-6
perl-Time-HiRes.x86_64 4:1.9721-141.el6_7.1 @rhel-x86_64-server-6
perl-Time-Piece.x86_64 1.15-141.el6_7.1 @rhel-x86_64-server-6
perl-TimeDate.noarch 1:1.16-13.el6 @rhel-x86_64-server-6
perl-URI.noarch 1.40-2.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-XML-Dumper.noarch 0.81-8.el6 @rhel-x86_64-server-6
perl-XML-Grove.noarch 0.46alpha-40.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-XML-LibXML.x86_64 1:1.70-5.el6 @rhel-x86_64-server-6
perl-XML-NamespaceSupport.noarch 1.10-3.el6 @rhel-x86_64-server-6
perl-XML-Parser.x86_64 2.36-7.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-XML-SAX.noarch 0.96-7.el6 @rhel-x86_64-server-6
perl-XML-Simple.noarch 2.18-6.el6 @rhel-x86_64-server-optional-6
perl-XML-Twig.noarch 3.34-1.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-YAML.noarch 0.70-4.el6 @rhel-x86_64-server-optional-6
perl-YAML-Syck.x86_64 1.07-4.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-common-sense.noarch 3.5-1.el6 @epel
perl-core.x86_64 5.10.1-141.el6_7.1 @rhel-x86_64-server-6
perl-devel.x86_64 4:5.10.1-141.el6_7.1 @rhel-x86_64-server-6
perl-libs.x86_64 4:5.10.1-141.el6_7.1 @rhel-x86_64-server-6
perl-libwww-perl.noarch 5.833-2.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-libxml-perl.noarch 0.08-10.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-parent.x86_64 1:0.221-141.el6_7.1 @rhel-x86_64-server-6
perl-version.x86_64 3:0.77-141.el6_7.1 @rhel-x86_64-server-6
rrdtool-perl.x86_64 1.3.8-7.el6 @rhel-x86_64-server-optional-6
Re: VMWare Monitoring
Posted: Mon Jan 25, 2016 5:34 pm
by hsmith
Can you attempt to restart the httpd and nagios services, and see if it works? I just followed the documentation and it worked from start to finish.
Code: Select all
service nagios restart
service httpd restart
Also, what version of XI are you running? It looks like I have version 0.2.1 of the plugin, and you only have 0.2.0.
Re: VMWare Monitoring
Posted: Mon Jan 25, 2016 7:58 pm
by raamardhani7
hsmith wrote:Can you attempt to restart the httpd and nagios services, and see if it works? I just followed the documentation and it worked from start to finish.
Code: Select all
service nagios restart
service httpd restart
Also, what version of XI are you running? It looks like I have version 0.2.1 of the plugin, and you only have 0.2.0.
I am really sorry, I uploaded the output from other production server which is working fine.
Please find the update.
Code: Select all
cat /tmp/perl.txt
mod_perl.x86_64 2.0.4-11.el6_5 @rhel-x86_64-server-6
net-snmp-perl.x86_64 1:5.5-54.el6_7.1 @rhel-x86_64-server-6
perl.x86_64 4:5.10.1-141.el6 @rhel-x86_64-server-6
perl-Archive-Extract.x86_64 1:0.38-141.el6 @rhel-x86_64-server-6
perl-Archive-Tar.x86_64 1.58-141.el6 @rhel-x86_64-server-6
perl-BSD-Resource.x86_64 1.29.03-3.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-CGI.x86_64 3.51-141.el6 @rhel-x86_64-server-6
perl-CPAN.x86_64 1.9402-141.el6 @rhel-x86_64-server-6
perl-CPANPLUS.x86_64 0.88-141.el6 @rhel-x86_64-server-6
perl-Class-Accessor.noarch 0.31-6.1.el6 @rhel-x86_64-server-optional-6
perl-Class-Singleton.noarch 1.4-6.el6 @rhel-x86_64-server-6
perl-Compress-Raw-Bzip2.x86_64 2.052-1.el6.rf @rpmforge
perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6 @rhel-x86_64-server-6
perl-Compress-Zlib.x86_64 2.021-141.el6 @rhel-x86_64-server-6
perl-Config-IniFiles.noarch 2.72-2.el6 @epel
perl-Config-Tiny.noarch 2.12-7.1.el6 @rhel-x86_64-server-optional-6
perl-Crypt-DES.x86_64 2.05-9.el6 @epel
perl-Crypt-Rijndael.x86_64 1.09-2.el6 @epel
perl-Crypt-SSLeay.x86_64 0.57-17.el6 @rhel-x86_64-server-6
perl-DBD-MySQL.x86_64 4.013-3.el6 @rhel-x86_64-server-6
perl-DBD-SQLite.x86_64 1.27-3.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-DBI.x86_64 1.609-4.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-DBIx-Simple.noarch 1.32-3.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-Date-Manip.noarch 6.24-1.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-DateTime.x86_64 1:0.5300-2.el6 @rhel-x86_64-server-6
perl-Digest-HMAC.noarch 1.01-22.el6 @rhel-x86_64-server-6
perl-Digest-SHA.x86_64 1:5.47-141.el6 @rhel-x86_64-server-6
perl-Digest-SHA1.x86_64 2.12-2.el6 @rhel-x86_64-server-6
perl-Error.noarch 1:0.17015-4.el6 @rhel-x86_64-server-6
perl-ExtUtils-CBuilder.x86_64 1:0.27-141.el6 @rhel-x86_64-server-6
perl-ExtUtils-Embed.x86_64 1.28-141.el6 @rhel-x86_64-server-6
perl-ExtUtils-MakeMaker.x86_64 6.55-141.el6 @rhel-x86_64-server-6
perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-141.el6 @rhel-x86_64-server-6
perl-File-Fetch.x86_64 0.26-141.el6 @rhel-x86_64-server-6
perl-HTML-Parser.x86_64 3.64-2.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-HTML-Tagset.noarch 3.20-4.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-IO-Compress-Base.x86_64 2.021-141.el6 @rhel-x86_64-server-6
perl-IO-Compress-Bzip2.x86_64 2.021-141.el6 @rhel-x86_64-server-6
perl-IO-Compress-Zlib.x86_64 2.021-141.el6 @rhel-x86_64-server-6
perl-IO-Socket-INET6.noarch 2.56-4.el6 @rhel-x86_64-server-6
perl-IO-Socket-SSL.noarch 1.31-2.el6 @rhel-x86_64-server-6
perl-IO-Zlib.x86_64 1:1.09-141.el6 @rhel-x86_64-server-6
perl-IO-stringy.noarch 2.110-10.1.el6 @rhel-x86_64-server-optional-6
perl-IPC-Cmd.x86_64 1:0.56-141.el6 @rhel-x86_64-server-6
perl-List-MoreUtils.x86_64 0.22-10.el6 @rhel-x86_64-server-6
perl-Locale-Maketext-Simple.x86_64 1:0.18-141.el6 @rhel-x86_64-server-6
perl-Log-Message.x86_64 1:0.02-141.el6 @rhel-x86_64-server-6
perl-Log-Message-Simple.x86_64 0.04-141.el6 @rhel-x86_64-server-6
perl-Mail-IMAPClient.noarch 3.34-1.el6 @epel
perl-Mail-POP3Client.noarch 2.18-6.el6 @epel
perl-Math-Calc-Units.noarch 1.07-6.el6 @epel
perl-Module-Build.x86_64 1:0.3500-141.el6 @rhel-x86_64-server-6
perl-Module-CoreList.x86_64 2.18-141.el6 @rhel-x86_64-server-6
perl-Module-Load.x86_64 1:0.16-141.el6 @rhel-x86_64-server-6
perl-Module-Load-Conditional.x86_64
perl-Module-Loaded.x86_64 1:0.02-141.el6 @rhel-x86_64-server-6
perl-Module-Pluggable.x86_64 1:3.90-141.el6 @rhel-x86_64-server-6
perl-Nagios-Plugin.noarch 0.35-2.el6.rf @rpmforge
perl-Net-DNS.x86_64 0.65-5.el6 @rhel-x86_64-server-6
perl-Net-LibIDN.x86_64 0.12-3.el6 @rhel-x86_64-server-6
perl-Net-SMTP-TLS.noarch 0.12-1.el6.rf @nagiosxi-deps
perl-Net-SNMP.noarch 5.2.0-4.el6 @epel
perl-Net-SSLeay.x86_64 1.35-9.el6 @rhel-x86_64-server-6
perl-Newt.x86_64 1.08-26.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-Number-Format.noarch 1.73-3.el6 @epel
perl-Object-Accessor.x86_64 1:0.34-141.el6 @rhel-x86_64-server-6
perl-Package-Constants.x86_64 1:0.02-141.el6 @rhel-x86_64-server-6
perl-Params-Check.x86_64 1:0.26-141.el6 @rhel-x86_64-server-6
perl-Params-Validate.x86_64 0.92-3.el6 @rhel-x86_64-server-6
perl-Parse-CPAN-Meta.x86_64 1:1.40-141.el6 @rhel-x86_64-server-6
perl-Parse-RecDescent.noarch 1.965-1.el6 @epel
perl-Pod-Escapes.x86_64 1:1.04-141.el6 @rhel-x86_64-server-6
perl-Pod-Simple.x86_64 1:3.13-141.el6 @rhel-x86_64-server-6
perl-SNMP_Session.noarch 1.12-4.el6 @rhel-x86_64-server-6
perl-Socket6.x86_64 0.23-4.el6 @rhel-x86_64-server-6
perl-Term-UI.x86_64 0.20-141.el6 @rhel-x86_64-server-6
perl-Test-Harness.x86_64 3.17-141.el6 @rhel-x86_64-server-6
perl-Test-Simple.x86_64 0.92-141.el6 @rhel-x86_64-server-6
perl-Time-HiRes.x86_64 4:1.9721-141.el6 @rhel-x86_64-server-6
perl-Time-Piece.x86_64 1.15-141.el6 @rhel-x86_64-server-6
perl-TimeDate.noarch 1:1.16-13.el6 @rhel-x86_64-server-6
perl-URI.noarch 1.40-2.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-XML-Dumper.noarch 0.81-8.el6 @rhel-x86_64-server-6
perl-XML-Grove.noarch 0.46alpha-40.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-XML-LibXML.x86_64 1:1.70-5.el6 @rhel-x86_64-server-6
perl-XML-NamespaceSupport.noarch 1.10-3.el6 @rhel-x86_64-server-6
perl-XML-Parser.x86_64 2.36-7.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-XML-SAX.noarch 0.96-7.el6 @rhel-x86_64-server-6
perl-XML-Simple.noarch 2.18-6.el6 @rhel-x86_64-server-optional-6
perl-XML-Twig.noarch 3.34-1.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-YAML.noarch 0.70-4.el6 @rhel-x86_64-server-optional-6
perl-YAML-Syck.x86_64 1.07-4.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-core.x86_64 5.10.1-141.el6 @rhel-x86_64-server-6
perl-devel.x86_64 4:5.10.1-141.el6 @rhel-x86_64-server-6
perl-libs.x86_64 4:5.10.1-141.el6 @rhel-x86_64-server-6
perl-libwww-perl.noarch 5.833-2.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-libxml-perl.noarch 0.08-10.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
perl-parent.x86_64 1:0.221-141.el6 @rhel-x86_64-server-6
perl-version.x86_64 3:0.77-141.el6 @rhel-x86_64-server-6
rrdtool-perl.x86_64 1.3.8-7.el6 @rhel-x86_64-server-optional-6
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -V
check_esx3.pl 0.2.1
Re: VMWare Monitoring
Posted: Tue Jan 26, 2016 12:36 pm
by lmiltchev
Can you run a couple of check from the command line, and show the output?
vmware host cpu check:
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"
vmware guest cpu check:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H <ip address> -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt" -N "<VM name>" -l "CPU"
Note: The "xxx_auth.txt" file needs to have the following format:
Examples:
Code: Select all
[root@localhost scripts]# /usr/local/nagios/libexec/check_esx3.pl -H x.x.x.x -f "/usr/local/nagiosxi/etc/components/vmware/VMwareHost_auth.txt" -l "CPU"
ESX3 OK - cpu usage=9887.00 MHz (29.50%) | cpu_usagemhz=9887.00Mhz;; cpu_usage=29.50%;;
[root@localhost scripts]# /usr/local/nagios/libexec/check_esx3.pl -H x.x.x.x -f "/usr/local/nagiosxi/etc/components/vmware/VMWare_Guest_auth.txt" -N "Ludmil_Debian-6_32" -l "CPU"
ESX3 OK - "Ludmil_Debian-6_32" cpu usage=12.00 MHz(0.43%) wait=19856.00 ms | cpu_usagemhz=12.00Mhz;; cpu_usage=0.43%;; cpu_wait=19856.00ms;;
Re: VMWare Monitoring
Posted: Wed Jan 27, 2016 12:15 am
by raamardhani7
lmiltchev wrote:Can you run a couple of check from the command line, and show the output?
vmware host cpu check:
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"
vmware guest cpu check:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H <ip address> -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt" -N "<VM name>" -l "CPU"
Note: The "xxx_auth.txt" file needs to have the following format:
Examples:
Code: Select all
[root@localhost scripts]# /usr/local/nagios/libexec/check_esx3.pl -H x.x.x.x -f "/usr/local/nagiosxi/etc/components/vmware/VMwareHost_auth.txt" -l "CPU"
ESX3 OK - cpu usage=9887.00 MHz (29.50%) | cpu_usagemhz=9887.00Mhz;; cpu_usage=29.50%;;
[root@localhost scripts]# /usr/local/nagios/libexec/check_esx3.pl -H x.x.x.x -f "/usr/local/nagiosxi/etc/components/vmware/VMWare_Guest_auth.txt" -N "Ludmil_Debian-6_32" -l "CPU"
ESX3 OK - "Ludmil_Debian-6_32" cpu usage=12.00 MHz(0.43%) wait=19856.00 ms | cpu_usagemhz=12.00Mhz;; cpu_usage=0.43%;; cpu_wait=19856.00ms;;
Hi Lmiltchev,
Do we need to have same ID and password created on Guests as well, or the ID created in VC is fine in pulling the information for ESX hosts.
When I am running the command for CPU on VC, i am getting this below error.
ESX3 CRITICAL - Error: Cannot complete login due to an incorrect user name or password.
Checking with our windows team on the same. User ID is a domain account, they usually use the domain followed by user ID and then enters into the server. When trying remote is the same command what we are using above is correct, just wanted to know.
Re: VMWare Monitoring
Posted: Wed Jan 27, 2016 11:44 am
by lmiltchev
The "auth" file is created when you run the vmware wizard. You don't need to use it while testing. You can test the check from the CLI by using "-u" and "-p" (for username & password).
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H <ip address> -u <'username'> -p <'password'> -l "CPU"
Since you are using a domain user, you will need to play around with the "username" to figure out what will work. Try something like this for username:
Code: Select all
'domain/user'
'domain\user'
"domain\/user"
"domain\\user"
'user@domain'
Let me know if any of these scenarios worked for you.
Re: VMWare Monitoring
Posted: Wed Jan 27, 2016 12:30 pm
by raamardhani7
lmiltchev wrote:The "auth" file is created when you run the vmware wizard. You don't need to use it while testing. You can test the check from the CLI by using "-u" and "-p" (for username & password).
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H <ip address> -u <'username'> -p <'password'> -l "CPU"
Since you are using a domain user, you will need to play around with the "username" to figure out what will work. Try something like this for username:
Code: Select all
'domain/user'
'domain\user'
"domain\/user"
"domain\\user"
'user@domain'
Let me know if any of these scenarios worked for you.
domain\user is working.. Now new error
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "CPU"
ESX3 CRITICAL - HOST CPU Unknown error
Re: VMWare Monitoring
Posted: Wed Jan 27, 2016 5:11 pm
by rkennedy
You may be missing a dependency, can you verify these are installed?
once it opens, enter -
Code: Select all
install GAAS/libwww-perl-5.837.tar.gz
What is the result now?