Page 1 of 1

Oracle services :(Return code of 25 is out of bounds)

Posted: Thu Jun 16, 2016 1:54 am
by abodage
Hi Team,

We are monitoring oracle parameters,
Oracle.PNG
and I getting "Return code of 25 is out of bounds" error for most parameter.

Please help.
Thanks

Re: Oracle services :(Return code of 25 is out of bounds)

Posted: Thu Jun 16, 2016 9:47 am
by rkennedy
Can you attempt to run the check over the CLI, and let us know the full input/output? I'd like to see the actual error that is occurring. I've seen this happen in a past when too many queries are directed at one server.

Re: Oracle services :(Return code of 25 is out of bounds)

Posted: Fri Jun 17, 2016 1:24 am
by abodage
Hi,
Below is the output on CLI

Code: Select all

]
[root@nagiosxi00 ~]# /bin/env LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib ORACLE_HOME=/usr/lib/oracle/11.2/client64 /usr/local/nagios/libexec/check_oracle_health --connect xxx.xxx.xxx.xxx:1521/JDAQA' --username 'abc123' --password 'anc123' --mode flash-recovery-area-usage --warning 90 --critical 98
Setuid/gid script is writable by world.

Re: Oracle services :(Return code of 25 is out of bounds)

Posted: Fri Jun 17, 2016 12:33 pm
by tgriep
It looks like the plugin is having issues with the superuser bit being enabled. Run the following to remove it and see if that resolves the issue.

Code: Select all

chmod ugo-s /usr/local/nagios/libexec/check_oracle_health
chmod ugo+x /usr/local/nagios/libexec/check_oracle_health
If it still fails, run the following command and post the output.

Code: Select all

ls -l /usr/local/nagios/libexec/check_oracle_health

Re: Oracle services :(Return code of 25 is out of bounds)

Posted: Tue Jun 21, 2016 1:00 am
by abodage
Hi team,

Its working now after running below commands,

Code: Select all

chmod ugo-s /usr/local/nagios/libexec/check_oracle_health
chmod ugo+x /usr/local/nagios/libexec/check_oracle_health
Thanks.

Re: Oracle services :(Return code of 25 is out of bounds)

Posted: Tue Jun 21, 2016 9:05 am
by mcapra
Is it ok if we lock this thread and mark the issue as resolved?

Re: Oracle services :(Return code of 25 is out of bounds)

Posted: Fri Jul 08, 2016 1:11 am
by abodage
Thanx team,

It works for me.