Page 2 of 2
Re: Check_esx3.pl timeout - 07/14/16
Posted: Fri Jul 15, 2016 12:10 pm
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
Re: Check_esx3.pl timeout - 07/14/16
Posted: Fri Jul 15, 2016 3:53 pm
by brian.diedrich
I went through that link too, and even went as far as downgrading LWP to 5.837. Still no change.
Re: Check_esx3.pl timeout - 07/14/16
Posted: Sun Jul 17, 2016 6:50 pm
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
Re: Check_esx3.pl timeout - 07/14/16
Posted: Mon Jul 18, 2016 12:04 pm
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.
Re: Check_esx3.pl timeout - 07/14/16
Posted: Mon Jul 18, 2016 1:02 pm
by brian.diedrich
Apparently I am not alone. I am perusing this for potentially useful information.
http://morgajel.net/2015/05/20/1676
Re: Check_esx3.pl timeout - 07/14/16
Posted: Mon Jul 18, 2016 1:19 pm
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.
Re: Check_esx3.pl timeout - 07/14/16
Posted: Mon Jul 18, 2016 4:43 pm
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.
Re: Check_esx3.pl timeout - 07/14/16
Posted: Mon Jul 18, 2016 4:46 pm
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.