VMware ESXi monitoring (Service check timed out after 60.01

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
swethog
Posts: 28
Joined: Wed Sep 18, 2013 7:41 pm

VMware ESXi monitoring (Service check timed out after 60.01

Post by swethog »

Originally posted in General Support, moving to Customer Support.

Nagios XI 5.3.2 running on CentOS 5.9 virtual machine
VMware SDK VMware-vSphere-Perl-SDK-6.0.0-3561779.x86_64.tar.gz
hosts: VMware ESXi, 6.0.0, 4600944

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

perl-XML-SAX-Base was not installed to remove.

The second yum install ran corerctly:

Code: Select all

yum install perl-XML-SAX --exclude=perl-XML-SAX-Base -y
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: dist1.800hosting.com
 * epel: mirror.compevo.com
 * extras: pubmirrors.dal.corespace.com
 * updates: mirror.oss.ou.edu
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-XML-SAX.noarch 0:0.14-13.el5 set to be updated
--> Processing Dependency: perl(XML::NamespaceSupport) for package: perl-XML-SAX
--> Running transaction check
---> Package perl-XML-NamespaceSupport.noarch 0:1.09-1.2.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
 Package                                Arch                Version                   Repository         Size
==============================================================================================================
Installing:
 perl-XML-SAX                           noarch              0.14-13.el5               base               77 k
Installing for dependencies:
 perl-XML-NamespaceSupport              noarch              1.09-1.2.1                base               15 k

Transaction Summary
==============================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 93 k
Downloading Packages:
(1/2): perl-XML-NamespaceSupport-1.09-1.2.1.noarch.rpm                                 |  15 kB     00:00     
(2/2): perl-XML-SAX-0.14-13.el5.noarch.rpm                                             |  77 kB     00:00     
--------------------------------------------------------------------------------------------------------------
Total                                                                         104 kB/s |  93 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-XML-NamespaceSupport                                                              1/2 
  Installing     : perl-XML-SAX                                                                           2/2 

Installed:
  perl-XML-SAX.noarch 0:0.14-13.el5                                                                           

Dependency Installed:
  perl-XML-NamespaceSupport.noarch 0:1.09-1.2.1                                                               

Complete!
The libuuid* failed but the others installed

Code: Select all

yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: dist1.800hosting.com
 * epel: mirror.compevo.com
 * extras: pubmirrors.dal.corespace.com
 * updates: mirror.oss.ou.edu
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package libuuid* available.
Resolving Dependencies
--> Running transaction check
---> Package perl-Nagios-Plugin.noarch 0:0.34-1.el5 set to be updated
---> Package perl-XML-LibXML.x86_64 0:1.58-6 set to be updated
--> Processing Dependency: perl-XML-LibXML-Common for package: perl-XML-LibXML
--> Processing Dependency: perl(XML::LibXML::Common) for package: perl-XML-LibXML
--> Running transaction check
---> Package perl-XML-LibXML-Common.x86_64 0:0.13-8.2.2 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
 Package                              Arch                 Version                   Repository          Size
==============================================================================================================
Installing:
 perl-Nagios-Plugin                   noarch               0.34-1.el5                epel                60 k
 perl-XML-LibXML                      x86_64               1.58-6                    base               229 k
Installing for dependencies:
 perl-XML-LibXML-Common               x86_64               0.13-8.2.2                base                16 k

Transaction Summary
==============================================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total download size: 305 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): perl-XML-LibXML-Common-0.13-8.2.2.x86_64.rpm                                    |  16 kB     00:00     
(2/3): perl-Nagios-Plugin-0.34-1.el5.noarch.rpm                                        |  60 kB     00:00     
(3/3): perl-XML-LibXML-1.58-6.x86_64.rpm                                               | 229 kB     00:00     
--------------------------------------------------------------------------------------------------------------
Total                                                                         946 kB/s | 305 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-XML-LibXML-Common                                                                 1/3 
  Installing     : perl-Nagios-Plugin                                                                     2/3 
  Installing     : perl-XML-LibXML                                                                        3/3 

Installed:
  perl-Nagios-Plugin.noarch 0:0.34-1.el5                    perl-XML-LibXML.x86_64 0:1.58-6                   

Dependency Installed:
  perl-XML-LibXML-Common.x86_64 0:0.13-8.2.2 
Complete! 
I found another post on here (lost the link) saying to manually download the UUID and install.

Code: Select all

wget --directory-prefix=/tmp http://search.cpan.org/CPAN/authors/id/J/JN/JNH/UUID-0.04.tar.gz
--2017-01-19 16:01:26--  http://search.cpan.org/CPAN/authors/id/J/JN/JNH/UUID-0.04.tar.gz
Resolving search.cpan.org... tar xzf UUID-0.04.tar.gz -C /tmp
cd /UUID-0.04207.171.7.49, 207.171.7.59
Connecting to search.cpan.org|207.171.7.49|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.cpan.org/authors/id/J/JN/JNH/UUID-0.04.tar.gz [following]
--2017-01-19 16:01:26--  http://www.cpan.org/authors/id/J/JN/JNH/UUID-0.04.tar.gz
Resolving www.cpan.org... 151.101.44.249
Connecting to www.cpan.org|151.101.44.249|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4982 (4.9K) [application/x-gzip]
Saving to: `/tmp/UUID-0.04.tar.gz'

100%[====================================================================>] 4,982       --.-K/s   in 0.001s  

2017-01-19 16:01:27 (6.80 MB/s) - `/tmp/UUID-0.04.tar.gz' saved [4982/4982]
cd UUID-0.04 
perl Makefile.PL
make
make install 
(saved space - compiled fine)
No proxies for server so I ran

Code: Select all

export http_proxy=
export ftp_proxy=
This is the end of the SDK install:

Code: Select all

Please wait while copying vSphere CLI files...

The installation of vSphere CLI 6.0.0 build-3561779 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: 
"/usr/bin/vmware-uninstall-vSphere-CLI.pl".

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:

Convert::ASN1 0.26 or newer 
MIME::Base64 3.14 or newer 
ExtUtils::Installed 1.54 or newer 
Try::Tiny 0.22 or newer 
version 0.78 or newer 
Data::Dump 1.15 or newer 
URI 1.37 or newer 
XML::SAX 0.16 or newer 
XML::LibXML 1.63 or newer 
Socket6  0.23 or newer 

Enjoy,

--the VMware team
The problem I have is all of my ESX checks are coming back with a timeout and I am not finding anything to go on in the forums here. looking for some guidance.

Code: Select all

	Datastore usage for VMHost	Critical	1h 9m 45s	5/5	2017-01-19 16:45:18	(Service check timed out after 60.01 seconds)
Input / Output for VMHost	Critical	1h 9m 12s	5/5	2017-01-19 16:46:02	(Service check timed out after 60.01 seconds)
Memory for VMHost	Critical	1h 8m 39s	5/5	2017-01-19 16:46:04	(Service check timed out after 60.01 seconds)
Networking for VMHost	Critical	1h 8m 4s	5/5	2017-01-19 16:46:23	(Service check timed out after 60.01 seconds)
Services for VMHost	Critical	1h 7m 31s	5/5	2017-01-19 16:46:54	(Service check timed out after 60.01 seconds)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: VMware ESXi monitoring (Service check timed out after 60

Post by rkennedy »

The package you'll want to install is actually libuuid (no star) - I don't think this would affect it, but it could if there are sanity checks somewhere.

As for the issue at hand, I've seen VMware checks take a couple minutes to run sometimes. Are you able to test over the CLI with a higher timeout, and also by running -v for verbosity? Please post the results for us to review.

The other part I'd be interested in making sure, is there isn't a firewall communicating between the machines. What is the output of nmap <vmhost</icode>?
Former Nagios Employee
swethog
Posts: 28
Joined: Wed Sep 18, 2013 7:41 pm

Re: VMware ESXi monitoring (Service check timed out after 60

Post by swethog »

for libuuid I get no package available:

Code: Select all

 yum install perl-Nagios-Plugin libuuid perl-XML-LibXML 
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centos.host-engine.com
 * epel: mirror.compevo.com
 * extras: mirror.steadfast.net
 * updates: denver.gaminghost.co
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package perl-Nagios-Plugin-0.34-1.el5.noarch already installed and latest version
No package libuuid available.
Package perl-XML-LibXML-1.58-6.x86_64 already installed and latest version
Nothing to do
This is what I got from a CLI test using -vvv

Code: Select all

./check_esx3.pl -V
check_esx3.pl 0.2.1

[root@<nag_host> libexec]#./check_esx3.pl -H <host> -u root -p <pwd> -l cpu -s usage -w 80 -c 90 -vvv
[extra-opts] check_esx3.pl -H <host> -u root -p <pwd> -l cpu -s usage -w 80 -c 90 -vvv
ESX3 CRITICAL - HOST CPU Unknown error
As for firewall, from what I've seen I need 443 and 5989 open, which they are. The Nagios XI and ESX server are on the same subnet, no hardware firewall between them.

Code: Select all

Starting Nmap 6.47 ( http://nmap.org ) at 2017-01-20 11:20 CST
Nmap scan report for <host> (<IP>)
Host is up (0.00028s latency).
Not shown: 989 filtered ports
PORT     STATE  SERVICE
22/tcp   open   ssh
80/tcp   open   http
427/tcp  open   svrloc
443/tcp  open   https
902/tcp  open   iss-realsecure
5988/tcp closed wbem-http
5989/tcp open   wbem-https
8000/tcp open   http-alt
8080/tcp closed http-proxy
8100/tcp open   xprint-server
8300/tcp open   tmi
MAC Address: A0:36:9F:C4:26:98 (Intel Corporate)

Nmap done: 1 IP address (1 host up) scanned in 5.18 seconds
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: VMware ESXi monitoring (Service check timed out after 60

Post by tgriep »

Try this, re-install the VMWare Perl SDK, when it asks to use the built in perl modules, select no and have it download the latest ones from the internet. That will make sure you have the latest ones installed on your server.
Let us know if that fixes the issue or not.
Be sure to check out our Knowledgebase for helpful articles and solutions!
swethog
Posts: 28
Joined: Wed Sep 18, 2013 7:41 pm

Re: VMware ESXi monitoring (Service check timed out after 60

Post by swethog »

Thanks. I had to update CPAN first to get the downloaded modules to install. the SDK downloaded and installed the modules fine but I'm still stuck with the timeouts.

Code: Select all

<snip>
Do you accept? (yes/no) yes

Thank you.

This vSphere CLI installer includes precompiled Perl modules for RHEL.
Answering yes will install the precompiled modules, and answering no will 
install from CPAN.
Do you want to install precompiled Perl modules for RHEL?
[yes] no

Bareword found where operator expected at (eval 231) line 1, near "$Socket6 ::VERSION"
        (Missing operator before ::VERSION?)
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: ExtUtils::MakeMaker, Version: 6.96 
Module: Module::Build, Version: 0.4205 
Module: Net::FTP, Version: 2.77 
Module: LWP, Version: 5.837 
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 
"Devel::StackTrace" .

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

CPAN is downloading and installing pre-requisite Perl module 
"Crypt::OpenSSL::RSA" .

CPAN is downloading and installing pre-requisite Perl module "Crypt::X509" .

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

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

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

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 installation of vSphere CLI 6.0.0 build-3561779 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: 
"/usr/bin/vmware-uninstall-vSphere-CLI.pl".

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:

Convert::ASN1 0.26 or newer 
MIME::Base64 3.14 or newer 
Try::Tiny 0.22 or newer 
Data::Dump 1.15 or newer 
URI 1.37 or newer 
XML::SAX 0.16 or newer 
XML::LibXML 1.63 or newer 
Socket6  0.23 or newer 

Enjoy,

--the VMware team
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: VMware ESXi monitoring (Service check timed out after 60

Post by tgriep »

Lets upgrade the plugin to version 0.7.1 and see if that fixes the error.

First, login to the XI server as root and make a backup of the existing one by running the following.

Code: Select all

cp /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3.pl.old
Then run the following to install a required Perl Module for the new plugin.

Code: Select all

yum install perl-Nagios-Plugin
Then download this updated plugin to your PC.
https://github.com/shinken-monitoring/p ... ck_esx3.pl

After it is downloaded, login to the XI GUI and go to the Admin > Manage Plugins menu
Browse to the new plugin and then click on the Upload Button.

Run the plugin and see if the error is gone. If not, post how you ran the plugin and it's output.
Be sure to check out our Knowledgebase for helpful articles and solutions!
swethog
Posts: 28
Joined: Wed Sep 18, 2013 7:41 pm

Re: VMware ESXi monitoring (Service check timed out after 60

Post by swethog »

backup of script and yum run with no updates.

Code: Select all

[root@<nag_xi_host>~]# cp /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3.pl.old
[root@<nag_xi_host> ~]# yum install perl-Nagios-Plugin
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: mirror.compevo.com
 * extras: mirror.raystedman.net
 * updates: mirror.steadfast.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package perl-Nagios-Plugin-0.34-1.el5.noarch already installed and latest version
Nothing to do
New plugin downloaded and uploaded.

Manage Plugins
New plugin was installed successfully.

From Manage Plug-Ins page

Code: Select all

check_esx3.pl	apache	apache	rwxr-xr-x	2017-01-23 10:15:36
The checks still timeout after about a minute.

When I run it from the console I get a SOAP error. I did not paste all of it because a massive amount of text flew by. Way too much to post here, unless you really want it. Here are the first few lines.

Code: Select all

[root@<nag_xi_host>tmp]# ./check_esx3.pl -H <esxi6_host>-u root -p <esxi6_host_pwd> -l cpu -s usage -w 80 -c 90 -vvv
[extra-opts] check_esx3.pl -H <esxi6_host>-u root -p  <esxi6_host_pwd> -l cpu -s usage -w 80 -c 90 -vvv
CHECK_ESX3.PL CRITICAL - SOAP request error - possibly a protocol issue: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>

Hope some of that helps.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: VMware ESXi monitoring (Service check timed out after 60

Post by tgriep »

One fix for that error is to downgrade the libwww perl module to an older version.
Follow the steps below to do that.

Code: Select all

cd /tmp
wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.837.tar.gz
tar xvfz libwww-perl-5.837.tar.gz
cd libwww-perl-5.837
perl Makefile.PL -l
make
make install
Post back if this fixes the issue for you or not.
Be sure to check out our Knowledgebase for helpful articles and solutions!
swethog
Posts: 28
Joined: Wed Sep 18, 2013 7:41 pm

Re: VMware ESXi monitoring (Service check timed out after 60

Post by swethog »

Code: Select all


[root@<nag_xi_host> tmp]# wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.837.tar.gz
--2017-01-23 11:47:52--  http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.837.tar.gz
Resolving search.cpan.org... 207.171.7.59, 207.171.7.49
Connecting to search.cpan.org|207.171.7.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-5.837.tar.gz [following]
--2017-01-23 11:48:02--  http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-5.837.tar.gz
Resolving www.cpan.org... 151.101.44.249
Connecting to www.cpan.org|151.101.44.249|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 270223 (264K) [application/x-gzip]
Saving to: `libwww-perl-5.837.tar.gz'

100%[====================================================================>] 270,223      177K/s   in 1.5s    

2017-01-23 11:48:03 (177 KB/s) - `libwww-perl-5.837.tar.gz' saved [270223/270223]

[root@<nag_xi_host> tmp]# tar zxvf libwww-perl-5.837.tar.gz 
libwww-perl-5.837/
libwww-perl-5.837/AUTHORS
libwww-perl-5.837/bin/
libwww-perl-5.837/Changes
libwww-perl-5.837/lib/
libwww-perl-5.837/lwpcook.pod
libwww-perl-5.837/lwptut.pod
libwww-perl-5.837/Makefile.PL
libwww-perl-5.837/MANIFEST
libwww-perl-5.837/META.yml
libwww-perl-5.837/README
libwww-perl-5.837/README.SSL
libwww-perl-5.837/t/
libwww-perl-5.837/talk-to-ourself
libwww-perl-5.837/t/base/
libwww-perl-5.837/t/html/
libwww-perl-5.837/t/live/
libwww-perl-5.837/t/local/
libwww-perl-5.837/t/net/
libwww-perl-5.837/t/README
libwww-perl-5.837/t/robot/
libwww-perl-5.837/t/TEST
libwww-perl-5.837/t/robot/rules-dbm.t
libwww-perl-5.837/t/robot/rules.t
libwww-perl-5.837/t/robot/ua-get.t
libwww-perl-5.837/t/robot/ua.t
libwww-perl-5.837/t/net/cgi-bin/
libwww-perl-5.837/t/net/config.pl.dist
libwww-perl-5.837/t/net/http-get.t
libwww-perl-5.837/t/net/http-post.t
libwww-perl-5.837/t/net/http-timeout.t
libwww-perl-5.837/t/net/mirror.t
libwww-perl-5.837/t/net/moved.t
libwww-perl-5.837/t/net/proxy.t
libwww-perl-5.837/t/net/cgi-bin/moved
libwww-perl-5.837/t/net/cgi-bin/nph-slowdata
libwww-perl-5.837/t/net/cgi-bin/slowread
libwww-perl-5.837/t/net/cgi-bin/test
libwww-perl-5.837/t/net/cgi-bin/timeout
libwww-perl-5.837/t/local/autoload-get.t
libwww-perl-5.837/t/local/autoload.t
libwww-perl-5.837/t/local/chunked.t
libwww-perl-5.837/t/local/get.t
libwww-perl-5.837/t/local/http.t
libwww-perl-5.837/t/local/protosub.t
libwww-perl-5.837/t/live/apache-listing.t
libwww-perl-5.837/t/live/apache.t
libwww-perl-5.837/t/live/https.t
libwww-perl-5.837/t/live/jigsaw-auth-b.t
libwww-perl-5.837/t/live/jigsaw-auth-d.t
libwww-perl-5.837/t/live/jigsaw-chunk.t
libwww-perl-5.837/t/live/jigsaw-md5-get.t
libwww-perl-5.837/t/live/jigsaw-md5.t
libwww-perl-5.837/t/live/jigsaw-neg-get.t
libwww-perl-5.837/t/live/jigsaw-neg.t
libwww-perl-5.837/t/live/jigsaw-te.t
libwww-perl-5.837/t/html/form-maxlength.t
libwww-perl-5.837/t/html/form-multi-select.t
libwww-perl-5.837/t/html/form-param.t
libwww-perl-5.837/t/html/form-selector.t
libwww-perl-5.837/t/html/form.t
libwww-perl-5.837/t/base/common-req.t
libwww-perl-5.837/t/base/cookies.t
libwww-perl-5.837/t/base/date.t
libwww-perl-5.837/t/base/headers-auth.t
libwww-perl-5.837/t/base/headers-etag.t
libwww-perl-5.837/t/base/headers-util.t
libwww-perl-5.837/t/base/headers.t
libwww-perl-5.837/t/base/http-config.t
libwww-perl-5.837/t/base/http.t
libwww-perl-5.837/t/base/listing.t
libwww-perl-5.837/t/base/mediatypes.t
libwww-perl-5.837/t/base/message-charset.t
libwww-perl-5.837/t/base/message-old.t
libwww-perl-5.837/t/base/message-parts.t
libwww-perl-5.837/t/base/message.t
libwww-perl-5.837/t/base/negotiate.t
libwww-perl-5.837/t/base/protocols.t
libwww-perl-5.837/t/base/request.t
libwww-perl-5.837/t/base/response.t
libwww-perl-5.837/t/base/status-old.t
libwww-perl-5.837/t/base/status.t
libwww-perl-5.837/t/base/ua.t
libwww-perl-5.837/lib/Bundle/
libwww-perl-5.837/lib/File/
libwww-perl-5.837/lib/HTML/
libwww-perl-5.837/lib/HTTP/
libwww-perl-5.837/lib/LWP/
libwww-perl-5.837/lib/LWP.pm
libwww-perl-5.837/lib/Net/
libwww-perl-5.837/lib/WWW/
libwww-perl-5.837/lib/WWW/RobotRules/
libwww-perl-5.837/lib/WWW/RobotRules.pm
libwww-perl-5.837/lib/WWW/RobotRules/AnyDBM_File.pm
libwww-perl-5.837/lib/Net/HTTP/
libwww-perl-5.837/lib/Net/HTTP.pm
libwww-perl-5.837/lib/Net/HTTPS.pm
libwww-perl-5.837/lib/Net/HTTP/Methods.pm
libwww-perl-5.837/lib/Net/HTTP/NB.pm
libwww-perl-5.837/lib/LWP/Authen/
libwww-perl-5.837/lib/LWP/ConnCache.pm
libwww-perl-5.837/lib/LWP/Debug.pm
libwww-perl-5.837/lib/LWP/DebugFile.pm
libwww-perl-5.837/lib/LWP/media.types
libwww-perl-5.837/lib/LWP/MediaTypes.pm
libwww-perl-5.837/lib/LWP/MemberMixin.pm
libwww-perl-5.837/lib/LWP/Protocol/
libwww-perl-5.837/lib/LWP/Protocol.pm
libwww-perl-5.837/lib/LWP/RobotUA.pm
libwww-perl-5.837/lib/LWP/Simple.pm
libwww-perl-5.837/lib/LWP/UserAgent.pm
libwww-perl-5.837/lib/LWP/Protocol/cpan.pm
libwww-perl-5.837/lib/LWP/Protocol/data.pm
libwww-perl-5.837/lib/LWP/Protocol/file.pm
libwww-perl-5.837/lib/LWP/Protocol/ftp.pm
libwww-perl-5.837/lib/LWP/Protocol/GHTTP.pm
libwww-perl-5.837/lib/LWP/Protocol/gopher.pm
libwww-perl-5.837/lib/LWP/Protocol/http.pm
libwww-perl-5.837/lib/LWP/Protocol/http10.pm
libwww-perl-5.837/lib/LWP/Protocol/https.pm
libwww-perl-5.837/lib/LWP/Protocol/https10.pm
libwww-perl-5.837/lib/LWP/Protocol/loopback.pm
libwww-perl-5.837/lib/LWP/Protocol/mailto.pm
libwww-perl-5.837/lib/LWP/Protocol/nntp.pm
libwww-perl-5.837/lib/LWP/Protocol/nogo.pm
libwww-perl-5.837/lib/LWP/Authen/Basic.pm
libwww-perl-5.837/lib/LWP/Authen/Digest.pm
libwww-perl-5.837/lib/LWP/Authen/Ntlm.pm
libwww-perl-5.837/lib/HTTP/Config.pm
libwww-perl-5.837/lib/HTTP/Cookies/
libwww-perl-5.837/lib/HTTP/Cookies.pm
libwww-perl-5.837/lib/HTTP/Daemon.pm
libwww-perl-5.837/lib/HTTP/Date.pm
libwww-perl-5.837/lib/HTTP/Headers/
libwww-perl-5.837/lib/HTTP/Headers.pm
libwww-perl-5.837/lib/HTTP/Message.pm
libwww-perl-5.837/lib/HTTP/Negotiate.pm
libwww-perl-5.837/lib/HTTP/Request/
libwww-perl-5.837/lib/HTTP/Request.pm
libwww-perl-5.837/lib/HTTP/Response.pm
libwww-perl-5.837/lib/HTTP/Status.pm
libwww-perl-5.837/lib/HTTP/Request/Common.pm
libwww-perl-5.837/lib/HTTP/Headers/Auth.pm
libwww-perl-5.837/lib/HTTP/Headers/ETag.pm
libwww-perl-5.837/lib/HTTP/Headers/Util.pm
libwww-perl-5.837/lib/HTTP/Cookies/Microsoft.pm
libwww-perl-5.837/lib/HTTP/Cookies/Netscape.pm
libwww-perl-5.837/lib/HTML/Form.pm
libwww-perl-5.837/lib/File/Listing.pm
libwww-perl-5.837/lib/Bundle/LWP.pm
libwww-perl-5.837/bin/lwp-download
libwww-perl-5.837/bin/lwp-dump
libwww-perl-5.837/bin/lwp-mirror
libwww-perl-5.837/bin/lwp-request
libwww-perl-5.837/bin/lwp-rget

[root@<nag_xi_host> tmp]# cd libwww-perl-5.837

[root@<nag_xi_host> libwww-perl-5.837]# perl Makefile.PL -l
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for LWP
Writing MYMETA.yml and MYMETA.json

[root@<nag_xi_host> libwww-perl-5.837]# make
cp lib/LWP/RobotUA.pm blib/lib/LWP/RobotUA.pm
cp lib/LWP/Authen/Ntlm.pm blib/lib/LWP/Authen/Ntlm.pm
cp lib/LWP.pm blib/lib/LWP.pm
cp lib/HTTP/Headers/ETag.pm blib/lib/HTTP/Headers/ETag.pm
cp lib/LWP/Protocol.pm blib/lib/LWP/Protocol.pm
cp lwptut.pod blib/lib/lwptut.pod
cp lib/HTTP/Request/Common.pm blib/lib/HTTP/Request/Common.pm
cp lib/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm
cp lib/HTTP/Message.pm blib/lib/HTTP/Message.pm
cp lib/HTML/Form.pm blib/lib/HTML/Form.pm
cp lib/HTTP/Cookies/Netscape.pm blib/lib/HTTP/Cookies/Netscape.pm
cp lib/LWP/Authen/Digest.pm blib/lib/LWP/Authen/Digest.pm
cp lib/LWP/Protocol/gopher.pm blib/lib/LWP/Protocol/gopher.pm
cp lib/Net/HTTP/NB.pm blib/lib/Net/HTTP/NB.pm
cp lib/HTTP/Status.pm blib/lib/HTTP/Status.pm
cp lib/LWP/Protocol/cpan.pm blib/lib/LWP/Protocol/cpan.pm
cp lib/Net/HTTPS.pm blib/lib/Net/HTTPS.pm
cp lib/HTTP/Headers/Util.pm blib/lib/HTTP/Headers/Util.pm
cp lib/LWP/Authen/Basic.pm blib/lib/LWP/Authen/Basic.pm
cp lib/HTTP/Cookies/Microsoft.pm blib/lib/HTTP/Cookies/Microsoft.pm
cp lib/LWP/UserAgent.pm blib/lib/LWP/UserAgent.pm
cp lib/LWP/Protocol/nntp.pm blib/lib/LWP/Protocol/nntp.pm
cp lib/LWP/Protocol/loopback.pm blib/lib/LWP/Protocol/loopback.pm
cp lib/LWP/Protocol/mailto.pm blib/lib/LWP/Protocol/mailto.pm
cp lib/LWP/Protocol/https10.pm blib/lib/LWP/Protocol/https10.pm
cp lib/LWP/Protocol/http.pm blib/lib/LWP/Protocol/http.pm
cp lib/LWP/MemberMixin.pm blib/lib/LWP/MemberMixin.pm
cp lib/HTTP/Headers/Auth.pm blib/lib/HTTP/Headers/Auth.pm
cp lib/LWP/Debug.pm blib/lib/LWP/Debug.pm
cp lib/Net/HTTP.pm blib/lib/Net/HTTP.pm
cp lib/LWP/media.types blib/lib/LWP/media.types
cp lib/HTTP/Daemon.pm blib/lib/HTTP/Daemon.pm
cp lib/HTTP/Cookies.pm blib/lib/HTTP/Cookies.pm
cp lib/LWP/ConnCache.pm blib/lib/LWP/ConnCache.pm
cp lib/File/Listing.pm blib/lib/File/Listing.pm
cp lib/WWW/RobotRules/AnyDBM_File.pm blib/lib/WWW/RobotRules/AnyDBM_File.pm
cp lwpcook.pod blib/lib/lwpcook.pod
cp lib/LWP/MediaTypes.pm blib/lib/LWP/MediaTypes.pm
cp lib/LWP/Protocol/http10.pm blib/lib/LWP/Protocol/http10.pm
cp lib/HTTP/Date.pm blib/lib/HTTP/Date.pm
cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.pm
cp lib/LWP/Protocol/GHTTP.pm blib/lib/LWP/Protocol/GHTTP.pm
cp lib/WWW/RobotRules.pm blib/lib/WWW/RobotRules.pm
cp lib/HTTP/Request.pm blib/lib/HTTP/Request.pm
cp lib/HTTP/Negotiate.pm blib/lib/HTTP/Negotiate.pm
cp lib/LWP/DebugFile.pm blib/lib/LWP/DebugFile.pm
cp lib/LWP/Protocol/data.pm blib/lib/LWP/Protocol/data.pm
cp lib/HTTP/Config.pm blib/lib/HTTP/Config.pm
cp lib/LWP/Protocol/nogo.pm blib/lib/LWP/Protocol/nogo.pm
cp lib/HTTP/Response.pm blib/lib/HTTP/Response.pm
cp lib/LWP/Simple.pm blib/lib/LWP/Simple.pm
cp lib/HTTP/Headers.pm blib/lib/HTTP/Headers.pm
cp lib/LWP/Protocol/https.pm blib/lib/LWP/Protocol/https.pm
cp lib/Net/HTTP/Methods.pm blib/lib/Net/HTTP/Methods.pm
cp lib/Bundle/LWP.pm blib/lib/Bundle/LWP.pm
cp bin/lwp-download blib/script/lwp-download
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-download
cp bin/lwp-dump blib/script/lwp-dump
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-dump
cp bin/lwp-mirror blib/script/lwp-mirror
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-mirror
cp bin/lwp-request blib/script/lwp-request
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-request
cp bin/lwp-rget blib/script/lwp-rget
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-rget
Manifying 5 pod documents
Manifying 33 pod documents

[root@<nag_xi_host> libwww-perl-5.837]# make install
Manifying 5 pod documents
Manifying 33 pod documents
Installing /usr/lib/perl5/site_perl/5.8.8/lwptut.pod
Installing /usr/lib/perl5/site_perl/5.8.8/lwpcook.pod
Installing /usr/lib/perl5/site_perl/5.8.8/LWP.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/RobotUA.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/MediaTypes.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/ConnCache.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/media.types
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/Simple.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/Authen/Ntlm.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol/http.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol/https10.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol/http10.pm
Installing /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol/https.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTML/Form.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Bundle/LWP.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/HTTP.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/HTTPS.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/HTTP/NB.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Net/HTTP/Methods.pm
Installing /usr/lib/perl5/site_perl/5.8.8/File/Listing.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Request.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Date.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Cookies.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Headers.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Status.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Message.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Daemon.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Response.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Negotiate.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Config.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Request/Common.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Cookies/Microsoft.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Cookies/Netscape.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Headers/Auth.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Headers/ETag.pm
Installing /usr/lib/perl5/site_perl/5.8.8/HTTP/Headers/Util.pm
Installing /usr/lib/perl5/site_perl/5.8.8/WWW/RobotRules.pm
Installing /usr/lib/perl5/site_perl/5.8.8/WWW/RobotRules/AnyDBM_File.pm
Installing /usr/share/man/man1/lwp-mirror.1
Installing /usr/share/man/man1/lwp-rget.1
Installing /usr/share/man/man1/lwp-request.1
Installing /usr/share/man/man1/lwp-download.1
Installing /usr/share/man/man1/lwp-dump.1
Installing /usr/share/man/man3/LWP.3pm
Installing /usr/share/man/man3/WWW::RobotRules::AnyDBM_File.3pm
Installing /usr/share/man/man3/LWP::MemberMixin.3pm
Installing /usr/share/man/man3/HTTP::Cookies::Microsoft.3pm
Installing /usr/share/man/man3/LWP::Protocol.3pm
Installing /usr/share/man/man3/HTTP::Date.3pm
Installing /usr/share/man/man3/Net::HTTP::NB.3pm
Installing /usr/share/man/man3/HTTP::Daemon.3pm
Installing /usr/share/man/man3/HTTP::Config.3pm
Installing /usr/share/man/man3/HTTP::Request::Common.3pm
Installing /usr/share/man/man3/LWP::RobotUA.3pm
Installing /usr/share/man/man3/LWP::Simple.3pm
Installing /usr/share/man/man3/HTTP::Headers.3pm
Installing /usr/share/man/man3/WWW::RobotRules.3pm
Installing /usr/share/man/man3/File::Listing.3pm
Installing /usr/share/man/man3/HTTP::Request.3pm
Installing /usr/share/man/man3/lwptut.3pm
Installing /usr/share/man/man3/HTTP::Response.3pm
Installing /usr/share/man/man3/HTTP::Status.3pm
Installing /usr/share/man/man3/HTTP::Cookies::Netscape.3pm
Installing /usr/share/man/man3/LWP::MediaTypes.3pm
Installing /usr/share/man/man3/LWP::Debug.3pm
Installing /usr/share/man/man3/HTTP::Negotiate.3pm
Installing /usr/share/man/man3/HTTP::Message.3pm
Installing /usr/share/man/man3/lwpcook.3pm
Installing /usr/share/man/man3/Net::HTTP.3pm
Installing /usr/share/man/man3/HTTP::Cookies.3pm
Installing /usr/share/man/man3/LWP::UserAgent.3pm
Installing /usr/share/man/man3/HTTP::Headers::Util.3pm
Installing /usr/share/man/man3/LWP::Authen::Ntlm.3pm
Installing /usr/share/man/man3/LWP::ConnCache.3pm
Installing /usr/share/man/man3/HTML::Form.3pm
Installing /usr/share/man/man3/Bundle::LWP.3pm
Installing /usr/bin/lwp-request
Installing /usr/bin/lwp-download
Installing /usr/bin/lwp-rget
Installing /usr/bin/lwp-mirror
Installing /usr/bin/lwp-dump
Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
[root@<nag_xi_host> libwww-perl-5.837]#

YES!

Code: Select all

[root@<nag_xi_host> libexec]# ./check_esx3.pl -H <esxi6_host> -u root -p <esxi6_host_pwd> -l cpu -s usage -w 80 -c 90
CHECK_ESX3.PL OK - cpu usage=6.93 % | cpu_usage=6.93%;80;90
And all service checks worked:

Code: Select all

<esxi6_host> View service status details for this host	CPU Usage for VM	Ok	3m 5s	1/5	2017-01-23 11:52:09	CHECK_ESX3.PL OK - cpu usage=2539.00 MHz (7.93%)
Datastore usage for VM	Ok	4m 45s	1/5	2017-01-23 11:50:29	CHECK_ESX3.PL OK - Storages : 'SANvol01'(free)=1075947.00 MB (70.06%), 'datastore1'(free)=11907.00 MB (93.02%), 'NFSvol01'(free)=7313753.86 MB (64.86%)
Input / Output for VM	Ok	4m 6s	1/5	2017-01-23 11:51:08	CHECK_ESX3.PL OK - io commands aborted=0, io bus resets=0, io read latency=0 ms, write latency=0 ms, kernel latency=0 ms, device latency=0 ms, queue latency=0 ms
Memory for VM	Ok	4m 5s	1/5	2017-01-23 11:51:09	CHECK_ESX3.PL OK - mem usage=110778.71 MB (28.17%), overhead=0.00 MB, swapped=0.00 MB, memctl=0.00 MB
Networking for VM	Ok	1m 58s	1/5	2017-01-23 11:53:16	CHECK_ESX3.PL OK - net receive=1289.00 KBps, send=1051.00 KBps, all 5 NICs are connected
Services for VM	Ok	1m 57s	1/5	2017-01-23 11:53:17	CHECK_ESX3.PL OK - services : DCUI (up), TSM (up), TSM-SSH (up), lbtd (up), lwsmd (down), ntpd (up), pcscd (down), sfcbd-watchdog (up), snmpd (down), vmsyslogd (up), vmware-fdm (up), vprobed (down), vpxa (up), xorg (down)
Thank you! Now I can delete my snapshot and move on.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: VMware ESXi monitoring (Service check timed out after 60

Post by tgriep »

Glad it is working for you now.
I will close and lock the post as solved but feel free to open a new post for any other issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked