Hi Team,
Sorry for delay in response, was stuck on other task..
continuing on this Post..
-> we are able to execute the check_oracle_health plugin from CMD and getting tns,login,tablespace result but when we setup alert in GUI we are getting below error.
CRITICAL - cannot connect to 00.00.00.00:1528/T12ARG. install_driver(Oracle) failed: Can't load '/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libocci.so.18.1: cannot open shared object file: No such file or directory at /usr/
at (eval 14) line 3.
Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where expected
at /usr/local/nagios/libexec/check_oracle_health line 6151.
As per below doc. have set valuable and export the variables for nagios user on both worker server and Nagios server.
export ORACLE_HOME=/usr/lib/oracle/18.3/client64
export LD_LIBRARY_PATH=/usr/lib/oracle/18.3/client64/lib
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Just to Note : on CMD command result are working fine with nagios user but when we trying with root user getting same error mentioned above. and after exporting below path on root profile. CMD result is fine but still GUI throwing same error. Also if we are exit from root and again establish the session we have to export variable every time to make it work.
export ORACLE_HOME=/usr/lib/oracle/18.3/client64
export LD_LIBRARY_PATH=/usr/lib/oracle/18.3/client64/lib