I am embarrassed.  I was not giving the correct path in the nrpe_local.cfg file, which I did not realize until looking at the output in the log file, as per Mr. Spatz's suggestion.  I must have looked at this config file 100 times without noticing.  It's even in my first email: "/usr/nagios/plugins" in the check_foo definition should be "/usr/lib/nagios/plugins".  After making this change, it works fine.<br>
<br>I apologize for taking up so many people's time.  <br><br>-Arthur<br><br><br><div class="gmail_quote">On Thu, Aug 12, 2010 at 1:42 PM, Peter Spatz <span dir="ltr"><<a href="mailto:peter.spatz@xchanging.com" target="_blank">peter.spatz@xchanging.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><font size="2" color="navy" face="Arial">
Activate debug mode in nrpe.cfg an have a look on your syslog what's happening when the check is called.
<br>
<br>Mit freundlichen Grüßen / Best Regards
<br>
<br> 
<br>
<br>Peter Spatz
<br>IT Networks & Support – Data Center Services
<br>
<br>Xchanging Transaction Bank GmbH
<br>Wilhelm-Fay-Straße 31-37
<br>65936 Frankfurt
<br>Germany
<br>
<br>IT Service Desk:        +49 (0) 69 12012 64446
<br>Facsimile:              +49 (0) 69 12012 68825
<br>Hotline Mailbox:        <a href="mailto:pchelp@xchanging.com" target="_blank">pchelp@xchanging.com</a> <mailto:<a href="mailto:pchelp@xchanging.com" target="_blank">pchelp@xchanging.com</a>> 
<br>E-mail:                 <a href="mailto:peter.spatz@xchanging.com" target="_blank">peter.spatz@xchanging.com</a>
<br>Web:</font></div>
<br><div><hr align="center" size="2" width="100%">
<font size="2" face="Tahoma">
<b>Von</b>: Arthur Franke <<a href="mailto:arthurjfranke@gmail.com" target="_blank">arthurjfranke@gmail.com</a>>
<br><b>An</b>: Nagios Plugin Help List <<a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a>>
<br><b>Gesendet</b>: Thu Aug 12 19:37:17 2010<br><b>Betreff</b>: Re: [Nagiosplug-help] Problem with NRPE and check_procs with -C or-a usage
<br></font><br></div><div><div></div><div>
Thanks for the reply.  Yes, many times.<br><br>-Arthur<br><br><br><div class="gmail_quote">On Thu, Aug 12, 2010 at 12:29 PM, Michael Saldivar <span dir="ltr"><<a href="mailto:mike.saldivar@advocatecreditrepair.com" target="_blank">mike.saldivar@advocatecreditrepair.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote">On Tue, Aug 10, 2010 at 7:07 PM, Arthur Franke <span dir="ltr"><<a href="mailto:arthurjfranke@gmail.com" target="_blank">arthurjfranke@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<div><br><br>I'm trying to check for the presence of a particular process on a remove machine using NRPE and check_procs with a -a or -C argument.  I have defined on the remote machine's nrpe_local.cfg:<br>



<br>command[check_foo]=/usr/nagios/plugins/check_procs -c 1:1 -C foo<br><br>Running a similar command locally on that machine works fine:<br><br>$ /usr/lib/nagios/plugins/check_procs -c 1:1 -C foo<br>PROCS OK: 1 process with command name 'foo'<br>




<br>But when I try to run the command from the Nagios server, I get the following result:<br><br>$ /usr/lib/nagios/plugins/check_nrpe -H remote.host -c check_foo<br>NRPE: Unable to read output<br><br>Whereas other monitored services work fine:<br>




$ /usr/lib/nagios/plugins/check_nrpe -H remote.host -c check_procs<br>PROCS OK: 97 processes<br></div></blockquote><div><br><br> Just to be certain, did you restart the nrpe daemon on remote.host after modifying its nrpe.cfg file?<br>



</div></div><br><br clear="all"><br>-- <br>Mike Saldivar<br>
<br>------------------------------------------------------------------------------<br>
This SF.net email is sponsored by<br>
<br>
Make an app they can't live without<br>
Enter the BlackBerry Developer Challenge<br>
<a href="http://p.sf.net/sfu/RIM-dev2dev" target="_blank">http://p.sf.net/sfu/RIM-dev2dev</a> <br>_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br></blockquote></div><br><div style="display: inline;"></div>

</div></div><div>
Xchanging Transaction Bank GmbH - HRB 58 951 - Sitz Frankfurt - Amtsgericht Frankfurt am Main<br>
Vorsitzender des Aufsichtsrats: Andreas Povel - Geschaeftsfuehrer: Richard Breitenbuecher, Matthias Sohler<br>
<br>
<br>
-----------------------------------------------------------------------------------------------<br>
"Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.<br>


<br>
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden."<br>


-----------------------------------------------------------------------------------------------<br>
</div>
<br>------------------------------------------------------------------------------<br>
This SF.net email is sponsored by<br>
<br>
Make an app they can't live without<br>
Enter the BlackBerry Developer Challenge<br>
<a href="http://p.sf.net/sfu/RIM-dev2dev" target="_blank">http://p.sf.net/sfu/RIM-dev2dev</a> <br>_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br></blockquote></div><br><div style="display: inline;"></div>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>