Check_esx3.pl timeout - 07/14/16

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_esx3.pl timeout - 07/14/16

Post by tgriep »

Take a look at this link. It looks like this user had the same issue as you and provided the steps they did to resolve it.
https://communities.vmware.com/message/2530043
Be sure to check out our Knowledgebase for helpful articles and solutions!
brian.diedrich
Posts: 21
Joined: Mon Jan 25, 2016 4:45 pm
Location: Phoenix, AZ

Re: Check_esx3.pl timeout - 07/14/16

Post by brian.diedrich »

I went through that link too, and even went as far as downgrading LWP to 5.837. Still no change.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Check_esx3.pl timeout - 07/14/16

Post by Box293 »

brian.diedrich wrote:I did indeed use the doc to install the SDK's, including the sed -i for Centos 7. Our ESXi hosts are running different versions, and when I set it up initially, the 5.5 SDK is the only version I could get to work with all of them. The hostinfo.pl does work, sort of. It just takes an exceedingly long time to return (better than 3 and a half minutes).
It is possible for you to run the hostinfo.pl script using a root user account, or an account with the highest possible privileges. Does this reduce the time it takes to run?

Alternatively you could try the VMware plugin box293_check_vmware which can be downloaded here:
http://exchange.nagios.org/directory/Pl ... re/details

There is also a wizard for it:
http://exchange.nagios.org/directory/Ad ... rd/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
brian.diedrich
Posts: 21
Joined: Mon Jan 25, 2016 4:45 pm
Location: Phoenix, AZ

Re: Check_esx3.pl timeout - 07/14/16

Post by brian.diedrich »

I always test scripts with root access. I still regularly use sudo su - when I login to a server. As far as the wizard goes. I used the wizard initially when creating the checks for the ESXi hosts on the original Nagios XI server. I have even ran it on the new server. It finishes just fine, it is the timeout(due to time required to complete - based on hostinfo.pl taking 3.5 minutes +) that is killing the checks and making them return critical. I will give your VMWare plugin a try and see if anything changes, but the more I play with it, the more I am convinced there is some sort of version incompatibility issue somewhere between what is installed on the CentOS 7.1 server and my new CentOS 7.2 server. I am going to try spinning up another clone of my image, install naked Nagios XI, and then the VMWare SDK and the check_vmware_api.pl and see if anything changes.
brian.diedrich
Posts: 21
Joined: Mon Jan 25, 2016 4:45 pm
Location: Phoenix, AZ

Re: Check_esx3.pl timeout - 07/14/16

Post by brian.diedrich »

Apparently I am not alone. I am perusing this for potentially useful information. http://morgajel.net/2015/05/20/1676
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_esx3.pl timeout - 07/14/16

Post by tgriep »

What you could do is remove the VMWare SDK and try reinstalling with the version 6 VMWare SDK.
Do not install the pre-compiled modules.
Try that and if it fails, downgrade the libwww-perl to 5.837 and see if it works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
brian.diedrich
Posts: 21
Joined: Mon Jan 25, 2016 4:45 pm
Location: Phoenix, AZ

Re: Check_esx3.pl timeout - 07/14/16

Post by brian.diedrich »

the VMWare 6 SDK doesn't change anything. And I already downgraded to LWP 5.837, and that didn't fix it either.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Check_esx3.pl timeout - 07/14/16

Post by Box293 »

The main feature of the box293_check_vmware plugin is that it runs on the vMA appliance and that already has the required SDK modules.

I know it's always a pain to switch from one method to another.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked