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ú..
Help Nagios with vmware
Re: Help Nagios with vmware
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:
I'm thinking your perl-Digest-SHA package version is mis-matched with your perl package version, based on my limited reading.
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
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Help Nagios with vmware
It looks like the perl-Crypt-SSLeay package is missing from your server.
Run this as root to install it.
Then test the plugin again to see if it works.
Run this as root to install it.
Code: Select all
yum install perl-Crypt-SSLeay -y
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Help Nagios with vmware
Dear tgriep,
The output of the indicated files is shared,
Greetings.
The output of the indicated files is shared,
Greetings.
- Attachments
-
- txt.txt
- (196.37 KiB) Downloaded 428 times
Re: Help Nagios with vmware
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.
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
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
Also, is could be caused by an older version of the IO::Compress::Zlib::Extra Perl module.
Make sure you update that.
It should be setup like this
Code: Select all
username=nagiosadmin
password=nagiosadmin
Make sure you update that.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Help Nagios with vmware
For this last you could indicate the command to update ..
Re: Help Nagios with vmware
This command should update that Perl module for you.
You can look at this link on installing Perl modules using cpan.
http://www.cpan.org/modules/INSTALL.html
Code: Select all
cpan -i IO::Compress::Zlib::Extra
http://www.cpan.org/modules/INSTALL.html
Be sure to check out our Knowledgebase for helpful articles and solutions!