Page 1 of 1

Unable to add ESXi host

Posted: Tue Mar 27, 2018 5:49 am
by snakekick
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... =6&t=47902

In the future, please create a new thread and link to the old one instead of adding on.


hello, i have the same problem and hope it´s ok to post here.

i modify the check_esx3.pl with use Nagios::Monitoring::Plugin
i reinstall cpan -f -i Nagios::Monitoring::Plugin ( Nagios-Monitoring-Plugin-0.51.)
and get the same error message :


./check_esx3.pl -H xxx -u xxx -p xxx -l cpu
Can't locate Nagios/Plugin/Functions.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_esx3.pl line 40.
BEGIN failed--compilation aborted at ./check_esx3.pl line 40.

i hope you can help me

Re: Unable to add ESXi host

Posted: Tue Mar 27, 2018 9:27 am
by scottwilkerson
snakekick wrote:i modify the check_esx3.pl with use Nagios::Monitoring::Plugin
If you did, you shouldn't be getting the error you describe..

Attached is a modified version please try that and report back
check_esx3.pl

Re: Unable to add ESXi host

Posted: Wed Mar 28, 2018 12:18 am
by snakekick
please see screenshot

edit:

you are right, i put "use Nagios::Monitoring::Plugin;" on the wrong place.
with your file i get a new error ;)

/usr/bin/perl: symbol lookup error: /usr/lib64/perl5/auto/HTML/Parser/Parser.so: undefined symbol: Perl_Istack_sp_ptr

Re: Unable to add ESXi host

Posted: Wed Mar 28, 2018 2:27 am
by snakekick
in a second vm i try it with the vmware 6.0 sdk and i get another error: (another try with sdk 5.5 with the same problem;(



CHECK_ESX3.PL CRITICAL - Server version unavailable at 'https://xxx:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 726.



for me it does not matter which vmware sdk version I take
so i can use the vmware with sdk 6.5 or 6.0


cpan -D LWP
Reading '/root/.cpan/Metadata'
Database was generated on Wed, 28 Mar 2018 02:17:02 GMT
LWP
-------------------------------------------------------------------------
(no description)
O/OA/OALDERS/libwww-perl-6.33.tar.gz
/root/perl5/lib/perl5/LWP.pm
Installed: 5.837
CPAN: 6.33 Not up to date
Olaf Alders (OALDERS)
[email protected]

Re: Unable to add ESXi host

Posted: Wed Mar 28, 2018 8:14 am
by scottwilkerson
Did you follow every step of this guide?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: Unable to add ESXi host

Posted: Thu Mar 29, 2018 12:47 am
by snakekick
ok, i found the problem.
the server is behind a firewall ping und ssh to the esxi host works
but after i check with elinks i see there is a another problem
in the firewall was a webfilter active.. that denied the Communication with check_esx3.pl
.....

Re: Unable to add ESXi host

Posted: Thu Mar 29, 2018 9:06 am
by scottwilkerson
Glad to hear you found the problem! Closing the thread