Yes, the script runs fine w/ Nagios user as stated.<br><br><div class="gmail_quote">On Tue, Nov 17, 2009 at 11:49 AM, Morris, Patrick <span dir="ltr"><<a href="mailto:patrick.morris@hp.com">patrick.morris@hp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Steve Shepherd wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
Using NRPE 2.12 and have an issue with a variable from a perl script not being printed.<br>
<br>
The script works fine when executed manually using the 'nagios' user which NRPE is running as:<br>
<br>
sh-2.05a$ /usr/local/nagios/libexec/check_apache<br>
<br>
OK - 68 requests being processed.<br>
<br>
<br>
However, via NRPE:<br>
<br>
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_apache<br>
 OK -  requests being processed.<br>
<br>
<br>
Below is the script.  I've tried many different code variations, but end result is the same.  I appreciate any insight as to what the issue could be.  Thanks!<br>
</blockquote>
<br></div>
When you test at the command line, are you doing it as the nagios user?  Looks like it could easily be a permissions issue.<br>
</blockquote></div><br>