Random Project

Unable to connect to ORACLE orcl, error !!!

I am able to get proper output of the command when I am using it from the shell of Nagios server.
But when I am trying get it executed through service in Nagios, it is saying ‘Unable to connect to ORACLE orcl, error !!!’
Is there I am missing something to configure in Nagios?