Unable to add ESXi host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
snakekick
Posts: 8
Joined: Tue Mar 27, 2018 4:19 am

Unable to add ESXi host

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to add ESXi host

Post 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
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
snakekick
Posts: 8
Joined: Tue Mar 27, 2018 4:19 am

Re: Unable to add ESXi host

Post 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
You do not have the required permissions to view the files attached to this post.
snakekick
Posts: 8
Joined: Tue Mar 27, 2018 4:19 am

Re: Unable to add ESXi host

Post 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]
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to add ESXi host

Post by scottwilkerson »

Did you follow every step of this guide?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
snakekick
Posts: 8
Joined: Tue Mar 27, 2018 4:19 am

Re: Unable to add ESXi host

Post 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
.....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to add ESXi host

Post by scottwilkerson »

Glad to hear you found the problem! Closing the thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked