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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
abodage
Posts: 29
Joined: Tue Feb 16, 2016 1:45 am

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

Post 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
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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.
Former Nagios Employee
abodage
Posts: 29
Joined: Tue Feb 16, 2016 1:45 am

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

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
abodage
Posts: 29
Joined: Tue Feb 16, 2016 1:45 am

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

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post by mcapra »

Is it ok if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
abodage
Posts: 29
Joined: Tue Feb 16, 2016 1:45 am

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

Post by abodage »

Thanx team,

It works for me.
Locked