We are getting error while executing the following. check_oracle is the plugin and step is the ORACLE_SID
[[email protected]]# /usr/bin/env LD_LIBRARY_PATH=/opt/oracle/product/12.2.0/db_2/lib ORACLE_HOME=/opt/oracle/product/12.2.0/db_2 /opt/nagios/libexec/check_oracle --login step
Cannot determine ORACLE_HOME for sid step
Please help me in fixing this.
Cannot determine ORACLE_HOME for sid
Re: Cannot determine ORACLE_HOME for sid
I think env just echos environment variables so I'm not sure what it's purpose is.
Maybe try
expoert LD_LIBRARY_PATH=/opt/oracle/product/12.2.0/db_2/lib; export ORACLE_HOME=/opt/oracle/product/12.2.0/db_2; /opt/nagios/libexec/check_oracle --login step
Or that and set ORACLE_ADMIN at the same time to point to tnsnames.ora as well.
Maybe try
expoert LD_LIBRARY_PATH=/opt/oracle/product/12.2.0/db_2/lib; export ORACLE_HOME=/opt/oracle/product/12.2.0/db_2; /opt/nagios/libexec/check_oracle --login step
Or that and set ORACLE_ADMIN at the same time to point to tnsnames.ora as well.