Return code of 127 is out of bounds. Check if plugin exists
Return code of 127 is out of bounds. Check if plugin exists
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
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
You do not have the required permissions to view the files attached to this post.
Re: Return code of 127 is out of bounds. Check if plugin exi
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
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
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
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
You do not have the required permissions to view the files attached to this post.
Re: Return code of 127 is out of bounds. Check if plugin exi
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:
Also run this and please post outputs to this post/ticket:
Now, try to install, using yum:
Try the command again. (NOTE: below is a ONE line command):
Regards,
Vinh
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
Code: Select all
find /usr -type f -name "Parser.so"
Code: Select all
yum install perl-HTML-Parser
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
Hi,
Please confirm, before executing these commands any backup we need to take.
Regards,
Venkata Reddy
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
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
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
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
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
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:
Now, please re-ran the check command again:
NOTE: The below is a ONE line command
Best Regards,
Vinh
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
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
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
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
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
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