Page 2 of 3
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Wed Jul 21, 2021 3:33 am
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
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Wed Jul 21, 2021 4:26 pm
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
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Wed Jul 21, 2021 9:59 pm
by Mahesh786
Hi gsmith,
We have attached the output. Please check and let us know.
Regards,
Venkata Reddy
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Thu Jul 22, 2021 10:54 am
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
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Thu Jul 22, 2021 11:11 am
by Mahesh786
Hi gsmith,
Please let me know if any backups we need to take before executing the command.
Regards,
Venkata Reddy
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Thu Jul 22, 2021 12:39 pm
by gsmith
Hey Venkata,
No backups required.
Thanks
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Fri Jul 30, 2021 2:32 am
by Mahesh786
HI Team,
after executing the steps, still we are getting the same error.
Output has been attached.
Regards,
Venkata Reddy
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Fri Jul 30, 2021 9:55 am
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
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Tue Aug 31, 2021 3:27 am
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
Re: Return code of 127 is out of bounds. Check if plugin exi
Posted: Tue Aug 31, 2021 10:21 am
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!