Like this? <br><br>ajfranke@dcmonitoring:~$ sudo su - nagios<br>nagios@dcmonitoring:~$ /usr/lib/nagios/plugins/check_nrpe -H remote.host -c check_foo<br>NRPE: Unable to read output<br>nagios@dcmonitoring:~$ /usr/lib/nagios/plugins/check_nrpe -H remote.host -c check_procs<br>
PROCS OK: 93 processes<br>nagios@dcmonitoring:~$ /usr/lib/nagios/plugins/check_nrpe -H remote.host<br>NRPE v2.8.1<br><br>Thanks for the help. Any ideas?<br><br>-Arthur<br><br><br><div class="gmail_quote">On Thu, Aug 12, 2010 at 1:51 PM, Kyle Smith <span dir="ltr"><<a href="mailto:kyles@apple.com">kyles@apple.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 style="word-wrap: break-word;">Couple things...<div><br></div><div>- ensure you are doing this as the nagios user on the server</div>
<div>- running "/usr/lib/nagios/plugins/check_nrpe -H remote.host" should return the nrpe version running on your remote.host, something like "NRPE v2.12"</div><div><br></div><font color="#888888"><div>
kyle</div></font><div><div></div><div class="h5"><div><br><div><div>On Aug 12, 2010, at 10:37 AM, Arthur Franke wrote:</div><br><blockquote type="cite">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 <a href="http://SF.net" target="_blank">SF.net</a> 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>
------------------------------------------------------------------------------<br>This <a href="http://SF.net" target="_blank">SF.net</a> 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>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></blockquote></div><br></div></div></div></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">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>