Help Nagios with vmware

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Help Nagios with vmware

Post 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ú..
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Help Nagios with vmware

Post 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.
Former Nagios employee
https://www.mcapra.com/
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Help Nagios with vmware

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Help Nagios with vmware

Post by alex3105 »

Dear tgriep,

The output of the indicated files is shared,

Greetings.
Attachments
txt.txt
(196.37 KiB) Downloaded 428 times
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Help Nagios with vmware

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Help Nagios with vmware

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Help Nagios with vmware

Post by alex3105 »

For this last you could indicate the command to update ..
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Help Nagios with vmware

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked