Check oracle monitoring errors

Hello guys,

I have configured a new icinga cluster in my environment and i ran into some issues with check oracle health command.
The weird thing is that if i run the command from the icinga2 server the command executes just as i expected, however when checking the monitoring result of the same command on my icingaweb2 server i encounter the following error: “cannot connect to xxxx.yyyy ora-12154: TNS: could not resolve the connect identifier specified (DBD ERROR: OciServerAttach)”.

This issue got me really confused.
Would appreciate your help.

Thanks in advance,

Please run the command on your icinga2 server

sudo -u icinga /usr/lib64/nagios/plugin/check_oracle_health…

Though more information will be helpful but hope you are already doing the above.