Return code of 127 is out of bounds. Check if plugin exists

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Mahesh786
Posts: 30
Joined: Mon Apr 05, 2021 9:21 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by Mahesh786 »

Hi Vinh,

Thanks for the update..

There is no issue with old Esx servers.

We are facing issue with new Esx servers. Please let me know why it is causing the issue.

Regards,
Venkata Reddy
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by gsmith »

Hi

Please run the following and send me the output:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -h

Thank you
Mahesh786
Posts: 30
Joined: Mon Apr 05, 2021 9:21 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by Mahesh786 »

Hi gsmith,

We have attached the output. Please check and let us know.

Regards,
Venkata Reddy
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by gsmith »

Hi

Try this please:

Code: Select all

sudo perl -MCPAN -e shell
cpan[1]> install GAAS/libwww-perl-5.837.tar.gz
quit
Now try your 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"
Let me know how it works please.

Thanks
Mahesh786
Posts: 30
Joined: Mon Apr 05, 2021 9:21 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by Mahesh786 »

Hi gsmith,

Please let me know if any backups we need to take before executing the command.

Regards,
Venkata Reddy
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by gsmith »

Hey Venkata,

No backups required.

Thanks
Mahesh786
Posts: 30
Joined: Mon Apr 05, 2021 9:21 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by Mahesh786 »

HI Team,

after executing the steps, still we are getting the same error.

Output has been attached.

Regards,
Venkata Reddy
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by gsmith »

Hi

Run the following:

Code: Select all

yum install perl-Nagios-Plugin -y
cpan -i Nagios::Monitoring::Plugin
If you get any errors send them to me please. If you don't then
please test from the command line:

Code: Select all

./check_vmware_api.pl -H 10.105.0.28 -u root -p 'Po1ntnext!' -l cpu -s usage -w 80 -c 90
Thanks
Mahesh786
Posts: 30
Joined: Mon Apr 05, 2021 9:21 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by Mahesh786 »

Hi Team,

After executing the provided commands, still issue is persist. Please verifiy and resolve the issue.


[root@localhost ~]# ./check_vmware_api.pl -H 10.105.0.28 -u root -p 'Po1ntnext!' -l cpu -s usage -w 80 -c 90
-bash: ./check_vmware_api.pl: No such file or directory
[root@localhost ~]#

Regards,
Venkata Reddy
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Return code of 127 is out of bounds. Check if plugin exi

Post by gsmith »

Hi

Sorry about that. Please try this from the CLI:

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H 10.105.0.28 -u root -p 'Po1ntnext!' -l cpu -s usage -w 80 -c 90
Let me know the results please.

Thank you!
Locked