Page 1 of 1

Problem with running Oracle plugin in CCM

Posted: Thu Jan 14, 2021 7:45 am
by dzek112233
Hello,
I am having difficulties with check_oracle_health plugin setup using CCM.

If I run the command using terminal:
. /usr/local/nagiosxi/etc/configwizards/oracle/oracle && /usr/local/nagios/libexec/check_oracle_health --connect 'X.X.X.X:1521/SID' --username 'nagios_mon' --password '***' --mode asm-diskgroup-usage

OK - dg DATA usage is 43.25%, dg RECV usage is 42.48% | 'dg_data_usage_pct'=43.25%;90;98 'dg_data_usage'=44284MB;92156;100348;0;102396 'dg_data_size'=102396MB 'dg_recv_usage_pct'=42.48%;90;98 'dg_recv_usage'=43497MB;92159;100351;0;102399 'dg_recv_size'=102399MB

I get the results as expected.

But when trying to test the setup via CCM, using . /usr/local/nagiosxi/etc/configwizards/oracle/oracle && $USER1$/check_oracle_health $ARG1$

And $ARG1$ are: --connect 'X.X.X.X:1521/SID' --username 'nagios_mon' --password '***' --mode asm-diskgroup-usage

No results are returned under Run Check Command.

Could somebody please assist? Thank you in advance.

Kind Regards, Jakob

Re: Problem with running Oracle plugin in CCM

Posted: Thu Jan 14, 2021 6:29 pm
by ssax
Please send me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*​​
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip​ file.​

If the profile script fails, please include the ENTIRE output.

If you apply configuration and force a check, does it work then?

Does this file match the proper ORACLE_HOME and LD_LIBRARY_PATH locations?

Code: Select all

cat /usr/local/nagiosxi/etc/configwizards/oracle/oracle