Glad it was an easy fix. I manage the Nagios system at work so I recognized that output.<div><br></div><div>Here is a nice Nagios tip. You can make custom checks easily in bash (or anything else). Just use the exit code to tell Nagios what the status is and any output will be on the status line. Define the script as a command and use it in a service definition.</div>
<div><br></div><div>exit 0 = OK</div><div>exit 1 = Warning</div><div>exit 2 = Critical</div><div><br></div><div>Sometimes this is easier than trying to figure out someone else&#39;s plugin that is way more complex than you need or if you just have a very unique system to monitor.</div>
<div><div>  </div><div>Christopher Cross<br><a href="mailto:g1ccross@gmail.com">g1ccross@gmail.com</a><br>(310)536-6392<br>
<br><br><div class="gmail_quote">On Fri, May 25, 2012 at 3:48 PM, Jim Ockers <span dir="ltr">&lt;<a href="mailto:ockers@ockers.net" target="_blank">ockers@ockers.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>


  

<div bgcolor="#ffffff" text="#000000">
Hi Chris,<br>
<br>
That was it thanks, you nailed it.  I was missing the fact that NRPE
prints out only that version message if you connect remotely and don&#39;t
specify a command for it to run.  I had the check_nrpe command
configured wrong in the Nagios server&#39;s commands.cfg.  In my ignorance
I did it wrong when I defined the command.<br>
<br>
This config snippet causes it to generate the NRPE v2.13 output (note
no $ARG1$):<br>
<br>
define command{<br>
        command_name    check_nrpe<br>
        command_line    /usr/nagios/libexec/check_nrpe -H $HOSTADDRESS$
<br>
        }<br>
<br>
[root@nagios]# /usr/nagios/libexec/check_nrpe -H remote.host.IP<br>
NRPE v2.13<br>
<br>
<br>
I changed the config to this and now NRPE and my plugins generate the
command output I expected:<br>
<br>
define command{<br>
        command_name    check_nrpe<br>
        command_line    /usr/nagios/libexec/check_nrpe -H $HOSTADDRESS$
-c $ARG1$<br>
        }<br>
<br>
[root@nagios]# /usr/nagios/libexec/check_nrpe -H remote.host.IP -c
check_md_raid<div class="im"><br>
OK - Checked 1 arrays.<br>
<br></div>
Thanks it&#39;s all working fine now,<div class="im"><br>
Jim<br>
<br>
-- <br>
Jim Ockers, P.E., P.Eng. (<a href="mailto:ockers@ockers.net" target="_blank">ockers@ockers.net</a>)<br>
Contact info: <a href="http://www.ockers.net/" target="_blank">http://www.ockers.net/</a><br>
<br></div><div><div class="h5">
Christopher Cross wrote:
<blockquote type="cite">It sounds like you are only checking the npre plugin
version and not the raid check command in your Nagios config. Can you
post the relevant parts of your Nagios config files. The host, service,
and commands parts should provide enough info.
  <div><br clear="all">
Christopher Cross<br>
  <a href="mailto:g1ccross@gmail.com" target="_blank">g1ccross@gmail.com</a><br>
<a href="tel:%28310%29536-6392" value="+13105366392" target="_blank">(310)536-6392</a><br>
  <br>
  <br>
  <div class="gmail_quote">On Fri, May 25, 2012 at 3:11 PM, Jim Ockers <span dir="ltr">&lt;<a href="mailto:ockers@ockers.net" target="_blank">ockers@ockers.net</a>&gt;</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 bgcolor="#ffffff" text="#000000"><font size="+1"><tt>Hi
CLUEbies,<br>
    <br>
I&#39;ll keep this simple since I hope it&#39;s a simple question. I set up
nagios and it&#39;s monitoring a remote system to make sure the RAID array
is OK. I&#39;m using the NRPE (remote) plugin because the /proc/mdstat file
contains the RAID array health information, and it&#39;s not readable from
my Nagios server.  In the web interface the status is shown (OK,
critical, etc) but no further command output is shown.<br>
    <br>
There&#39;s a whole &quot;Status Information&quot; column in the web interface and
instead of showing some useful command output it shows only &quot;NRPE
v2.13&quot;.  When I click on the service to drill into the status further,
the &quot;Performance Data&quot; is blank where the status output should be.  I
think it would be a lot better if the actual plugin output was shown in
the web interface.<br>
    <br>
When I run the local command it displays this:<br>
    <br>
[root]# /usr/nagios/libexec/check_md_raid <br>
OK - Checked 1 arrays.<br>
    <br>
When I run the remote command from the nagios monitoring server it
displays this:<br>
    <br>
[root@nagios ~]# /usr/nagios/libexec/check_nrpe -H remote.host.IP -c
check_md_raid<br>
OK - Checked 1 arrays.<br>
    <br>
&gt;From this I know the remote command is working as configured, and
the
command output is seen on the nagios server when it runs the remote
command because it picks up the OK status.  In the web/GUI interface
for &quot;Services&quot; it shows OK but the only status information is &quot;NRPE
v2.13&quot; instead of the &quot;OK - Checked 1 arrays.&quot; command output like it
shows for every other non-remote Nagios command.<br>
    <br>
Help please?  How can I get the remote command output shown in the web
interface?  Believe it or not I&#39;ve tried a variety of google searches
for this and got nothing, so help me CLUE you&#39;re my only hope!<br>
    <br>
Thanks,<br>
Jim<span><font color="#888888"><br>
    </font></span></tt></font><span><font color="#888888">
    <pre cols="72">-- 
Jim Ockers, P.E., P.Eng. (<a href="mailto:ockers@ockers.net" target="_blank">ockers@ockers.net</a>)
Contact info: <a href="http://www.ockers.net/" target="_blank">http://www.ockers.net/</a>
    </pre>
    </font></span></div>
  </blockquote>
  </div>
  </div>
</blockquote>
<br>
</div></div></div>

<br>_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br></blockquote></div><br></div></div>