title: Nagios bash script returns no output when executed through check_nrpe
body: <p>My nagios bash script works fine from the client's command line.
  When I execute the same script through check_nrpe from the nagios server it returns the following message "CHECK_NRPE: No output returned from daemon."</p>
  
  <p>Seems like a command in the bash script is not being executed. </p>
  
  <pre><code>arrVars=(`/usr/bin/ipmitool sensor | grep "&lt;System sensor&gt;"`)
  
  #echo "Hello World!!"
  myOPString=""
  &lt;Process array and determine string to echo along with exit code&gt;
  
  echo $myOPString
  if [[ $flag == "False" ]]; then
          exit 1
  else
          exit 0
  fi
  </code></pre>
  
  <p>"Hello World" shows up on the nagios monitoring screen if I uncomment the echo statement.
  I am new to linux but seems like the nagios user isn't able to execute ipmitool</p>