Page 1 of 1

Help Nagios with vmware

Posted: Sat Jul 28, 2018 11:16 am
by alex3105
Good morning ... I am following this guide to monitor my vmware

http://www.bujarra.com/nagios-monitorizando-hosts-esxi/

but I get this error:

[root@localhost libexec]# ./check_vmware_api.pl -H 192.168.32.7 -f check_vmware_api.auth -l cpu -s usage -w 80 -c 90
/usr/bin/perl: symbol lookup error: /usr/lib64/perl5/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: Perl_Gthr_key_ptr

I have Centos 7 of 64 bits ... could you indicate that I would be unable to add please ..

Greetings from PerĂº..

Re: Help Nagios with vmware

Posted: Tue Jul 31, 2018 10:05 am
by mcapra
As this is 3rd party documentation and a 3rd party plugin, the support you receive on these forums may be limited. This is not strictly a Nagios Core related problem; I am almost positive this is a problem with your Perl environment.

Can you share the output of the following command executed from the CLI of your Nagios Core machine:

Code: Select all

rpm -qa | grep perl
cpan -l
perl --version
I'm thinking your perl-Digest-SHA package version is mis-matched with your perl package version, based on my limited reading.

Re: Help Nagios with vmware

Posted: Tue Jul 31, 2018 2:05 pm
by tgriep
It looks like the perl-Crypt-SSLeay package is missing from your server.
Run this as root to install it.

Code: Select all

yum install perl-Crypt-SSLeay -y
Then test the plugin again to see if it works.

Re: Help Nagios with vmware

Posted: Tue Jul 31, 2018 10:39 pm
by alex3105
Dear tgriep,

The output of the indicated files is shared,

Greetings.

Re: Help Nagios with vmware

Posted: Tue Jul 31, 2018 10:50 pm
by alex3105
Dear tgriep,

After executing yum install perl-Crypt-SSLeay -y I get this result:

[root@localhost libexec]# ./check_vmware_api.pl -H 192.168.32.7 -f check_vmware_api.auth -l mem -s swap -w 1 -c 10
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198, <AUTH_FILE> line 2.
CHECK_VMWARE_API.PL OK - swap usage=0.00 MB | mem_swap=0.00MB;1;10

Greetings.

Re: Help Nagios with vmware

Posted: Wed Aug 01, 2018 11:55 am
by tgriep
It looks like it could be a formatting issue with the auth file so check that to see it it is correct.
It should be setup like this

Code: Select all

username=nagiosadmin
password=nagiosadmin
Also, is could be caused by an older version of the IO::Compress::Zlib::Extra Perl module.
Make sure you update that.

Re: Help Nagios with vmware

Posted: Wed Aug 01, 2018 9:56 pm
by alex3105
For this last you could indicate the command to update ..

Re: Help Nagios with vmware

Posted: Thu Aug 02, 2018 9:17 am
by tgriep
This command should update that Perl module for you.

Code: Select all

cpan -i  IO::Compress::Zlib::Extra
You can look at this link on installing Perl modules using cpan.
http://www.cpan.org/modules/INSTALL.html