Problem with running Oracle plugin in CCM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dzek112233
Posts: 1
Joined: Tue Dec 29, 2020 8:56 am

Problem with running Oracle plugin in CCM

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problem with running Oracle plugin in CCM

Post 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
Locked