<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: pchelp@xchanging.com <mailto:pchelp@xchanging.com>
<br>E-mail: peter.spatz@xchanging.com
<br>Web:</font></div>
<br><div><hr size=2 width="100%" align=center tabindex=-1>
<font face=Tahoma size=2>
<b>Von</b>: Arthur Franke <arthurjfranke@gmail.com>
<br><b>An</b>: Nagios Plugin Help List <nagiosplug-help@lists.sourceforge.net>
<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>
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">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 class="im"><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">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="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>
<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>