Page 1 of 3
Return code of 127 is out of bounds. Check if plugin exists
Posted: Mon Apr 05, 2021 9:38 am
by Mahesh786
Hi Team,
After adding Esxi host, I am getting the below error in service status.
Error code: Return code of 127 is out of bounds. Check if plugin exists)
Please help on this.
Regards,
Venkata Reddy
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Mon Apr 05, 2021 1:52 pm
by vtrac
Hi,
What is the command used for this service check?
To find out:
Nagios XI GUI > Configure > Core Config Manger > Services
Now, select the "CPU Usage for VMHost" > click "Run Check Command" > "Run Check Command"
Now, please copy the whole command as showed and post its here, to this post/ticket.
Could you please run the below ONE line command on your XI command prompt?
Please replace "x.x.x.x" with the IP of your VM Host:
/usr/local/nagios/libexec/check_vmware_api.pl -H "x.x.x.x" -f "/usr/local/nagiosxi/etc/components/vmware/VMware_Host_auth.txt" -l "CPU"
Please post output of the above command to this post/ticket.
Regards,
Vinh
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Tue Apr 06, 2021 3:15 am
by Mahesh786
HI Vinh,
Thanks for the update.
We have executed run command for CPU and attached the output and below are the command line output.
[root@localhost vmware]# /usr/local/nagios/libexec/check_vmware_api.pl -H "10.105.0.28" -f "/usr/local/nagiosxi/etc/components/vmware/AAM01T05_VH01_auth.txt" -l "CPU"
/usr/bin/perl: symbol lookup error: /usr/lib64/perl5/auto/HTML/Parser/Parser.so: undefined symbol: Perl_Istack_sp_ptr
You have mail in /var/spool/mail/root
[root@localhost vmware]#
Please check and let me know, if you need any more information.
Regards,
Venkata Maheswara Reddy
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Tue Apr 06, 2021 2:08 pm
by vtrac
Hi,
Looks like you might have issue with missing perl modules.
Please run the below command on your XI command prompt, please post outputs to this post/ticket:
Code: Select all
rpm -qf /usr/lib64/perl5/auto/HTML/Parser/Parser.so
Also run this and please post outputs to this post/ticket:
Code: Select all
find /usr -type f -name "Parser.so"
Now, try to install, using yum:
Try the command again. (NOTE: below is a ONE line command):
Code: Select all
/usr/local/nagios/libexec/check_vmware_api.pl -H "10.105.0.28" -f "/usr/local/nagiosxi/etc/components/vmware/AAM01T05_VH01_auth.txt" -l "CPU"
Regards,
Vinh
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Fri Jun 04, 2021 1:28 am
by Mahesh786
Hi,
Please confirm, before executing these commands any backup we need to take.
Regards,
Venkata Reddy
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Fri Jun 04, 2021 9:22 am
by vtrac
Hi Venkata,
The first two commands are used to find where "Parser.so" is located.
The next command is to install missing "perl-HTML-Parser" perl module.
No need to do any backup.
Best Regards,
Vinh
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Mon Jul 05, 2021 2:50 am
by Mahesh786
Hi Vinh,
We have executed the below commands and still issue is persist.
Below are the commands output. Please check and let us what we need to do further.
rpm -qf /usr/lib64/perl5/auto/HTML/Parser/Parser.so:
-------------------------------------------------------
[root@localhost nagiosxi]# rpm -qf /usr/lib64/perl5/auto/HTML/Parser/Parser.so
file /usr/lib64/perl5/auto/HTML/Parser/Parser.so is not owned by any package
You have mail in /var/spool/mail/root
[root@localhost nagiosxi]#
find /usr -type f -name "Parser.so":
------------------------------------------
[root@localhost nagiosxi]# find /usr -type f -name "Parser.so"
/usr/lib64/perl5/vendor_perl/auto/HTML/Parser/Parser.so
/usr/lib64/perl5/auto/HTML/Parser/Parser.so
[root@localhost nagiosxi]#
yum install perl-HTML-Parser:
--------------------------------
[root@localhost nagiosxi]# yum install perl-HTML-Parser
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink | 22 kB 00:00:00
* base: ams.edge.kernel.org
* epel: epel.besthosting.ua
* extras: centos.mirror.liteserver.nl
* updates: centos.mirror.triple-it.nl
base | 3.6 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
nagios-base | 1.5 kB 00:00:00
nagiosxi-deps | 1.5 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(2/2): epel/x86_64/primary_db | 6.9 MB 00:00:00
Package perl-HTML-Parser-3.71-4.el7.x86_64 already installed and latest version
Nothing to do
You have mail in /var/spool/mail/root
[root@localhost nagiosxi]#
/usr/local/nagios/libexec/check_vmware_api.pl -H "10.105.0.28" -f "/usr/local/nagiosxi/etc/components/vmware/AAM01T05_VH01_auth.txt" -l "CPU"
----------------------------------------------------------------------------------------------------------------------------------------------
[root@localhost nagiosxi]# /usr/local/nagios/libexec/check_vmware_api.pl -H "10.105.0.28" -f "/usr/local/nagiosxi/etc/components/vmware/AAM01T05_VH01_auth.txt" -l "CPU"
/usr/bin/perl: symbol lookup error: /usr/lib64/perl5/auto/HTML/Parser/Parser.so: undefined symbol: Perl_Istack_sp_ptr
You have mail in /var/spool/mail/root
[root@localhost nagiosxi]#
Regards,
Venkata Reddy
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Tue Jul 06, 2021 9:41 am
by vtrac
Hi Venkata,
Good morning!! ...
Looks like you have two "Parser.so" files.
Please run the below command to rename the "Parser.so" to "Parser.so.notUsed"
As "root", please run the below ONE line command:
Code: Select all
mv -f /usr/lib64/perl5/auto/HTML/Parser/Parser.so /usr/lib64/perl5/auto/HTML/Parser/Parser.so.notUsed
Now, please re-ran the check command again:
NOTE: The below is a ONE line command
Code: Select all
/usr/local/nagios/libexec/check_vmware_api.pl -H "10.105.0.28" -f "/usr/local/nagiosxi/etc/components/vmware/AAM01T05_VH01_auth.txt" -l "CPU"
Best Regards,
Vinh
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Thu Jul 08, 2021 1:24 am
by Mahesh786
Hi Vinh,
We have executed the requested commends.
Below are the output. Please check and let us know if any other information is needed.
[root@localhost libexec]# ./check_vmware_api.pl -H 10.105.0.28 -u root -p 'Po1ntnext!' -l cpu -s usage -w 80 -c 90
CHECK_VMWARE_API.PL CRITICAL - Server version unavailable at '
https://10.105.0.28:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 734.
[root@localhost libexec]#
Regards,
Venkata Reddy
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Thu Jul 08, 2021 11:17 am
by vtrac
Hi Venkata,
Please NOTE that this plugin is not from Nagios. I checked and the owner of this plugin is "op5", so I will try my best to help you with this ...
Please follow the KB URL below and re-install the followings:
• SDK Prerequisites
• VMware Perl SDK on the Nagios XI server
Important Note: You must download and install VMware SDK version 7.0 if you are installing on a RHEL/CentOS 8 system. For all other supported OS distributions, we recommend downloading and installing WMware SDK version 6.5.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
I googled and found that most people were able to solved the issue by re-installed "VMware-Perl-SDK 6.5".
https://support.nagios.com/forum/viewto ... =7&t=41915
So, please following the KB at the top to re-install both the prerequisites and WMware SDK 6.5
NOTE: If you are on RHEL/CentOS 8, then please use VMware SDK 7.0
Please work with your sys-admin on this as he/she will knows more about their system settings.
Best Regards,
Vinh