Page 1 of 1

Problem with check_esx3.pl on debian 8

Posted: Wed Jan 27, 2016 9:20 am
by viierr
Hello all

I have a strange problem with the check_esx3.pl on a debian 8 host. I have installed the VMware Perl SDK 6.0.0 and I can call the check manualy as user root and as user nagios (the user that runs nagios). For both users I get a response from our ESX-vSphere Host. But if the nagios server calls this check I get the error message

Code: Select all

ESX3 UNKNOWN - Missing perl module VMware::VIRuntime. Download and install 'VMware Infrastructure (VI) Perl Toolkit', available at .......
I've allready red this thread https://support.nagios.com/forum/viewto ... 6&start=10. There is the question what happens with the command

Code: Select all

locate perl | grep -i viruntime
In my case the output is empty allthough the file /usr/shre/perl/5.20/VMware/VIRuntime.pm exists??
Has anyone some tipps for me what could be the reason for this (strange) behavior?

regards
viktor

Re: Problem with check_esx3.pl on debian 8

Posted: Wed Jan 27, 2016 12:38 pm
by rkennedy
This could be related to permissions, can you run a few commands and post the result?

Code: Select all

ls -l /usr/shre/perl/5.20/VMware/
ls -l /usr/shre/perl/5.20/
ls -l /usr/shre/perl/

Re: Problem with check_esx3.pl on debian 8

Posted: Thu Jan 28, 2016 3:45 am
by viierr
All files and folders belong to root:root. Folders

Code: Select all

ls -l /usr/share/perl
lrwxrwxrwx  1 root root     6 Dez 11 08:37 5.20 -> 5.20.2
drwxr-xr-x 60 root root 12288 Jän 27 13:51 5.20.2
We also have an existing nagios-server with debian 8 and there it is working. But this server is pretty old (about 5 or 7 years) and was setup by an external guy. The debian was upgraded many times and for some reasons the company wants to witch to a new installed machine.

Besides the history of the machines the only difference is, that the old one is debian 8 32bit and the new one is debian 64bit.

regards
Vii

Re: Problem with check_esx3.pl on debian 8

Posted: Thu Jan 28, 2016 3:11 pm
by scottwilkerson
Are you sure the SDK installed correctly and didn't list reqiured dependencies at the end?

Re: Problem with check_esx3.pl on debian 8

Posted: Wed Feb 17, 2016 6:09 am
by viierr
After long time I gave it another try and did a "uninstall - new install". The last few lines if I run the install script are:

Code: Select all

The following Perl modules were found on the system but may be too old to work
with vSphere CLI:

LWP::Protocol::https 5.805 or newer
Socket6  0.23 or newer

Enjoy,

--the VMware team
Installed are this versions:

Code: Select all

libsocket6-perl    0.25-1+b1
liblwp-protocol-https-perl    6.06-2
But the problem is still that it works called manually in the shell, but it does not work within nagios.
So at the end I gave up and now I'm using check_vmware.pl. I noticed that I can check the hosts and disks with this script too. I would have prefered check_esx3.pl because of the more informative response, but I can "life" with the check_vmware.pl too ;-)

Thank you for your time and you tipps.

Regards
Viktor

Re: Problem with check_esx3.pl on debian 8

Posted: Wed Feb 17, 2016 11:41 am
by rkennedy
Would you like us to close this, or continue trying to solve the issue?

What are the permissions on the check_esx3.pl file?