title: Nagios/NRPE giving a "No output returned from plugin" error
body: <p>Getting a  "No output returned from plugin" error message from a Nagios/NRPE script</p>
  
  <p>1) Running Nagios v3.2.3 and NRPE v2.12</p>
  
  <p>2) The script:</p>
  
  <pre><code>   OK_STATE=0
     UNAME=/bin/uname -r       
     echo "OK: Kernel Version=$UNAME"       
     exit $OK_STATE
  </code></pre>
  
  <p>2) Command line results on the Nagios Server using NRPE</p>
  
  <ul>
  <li>Same OK results for both the root and nagios users:</li>
  </ul>
  
  <blockquote>
    <p>[nagios@cmonmm03 libexec]$ ./check_nrpe -H dappsi01b.dev.screenscape.local -c check_kernel
    OK: Kernel Version=2.6.18-194.11.3.el5 </p>
  </blockquote>
  
  <p>When I run the check_kernel.sh script on the machine's local command line it works there to.</p>
  
  <p>Help, any thoughts or known solution regarding this would be appreciated?</p>
  
  <p>Thank you</p>