<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Chris,<br>
<br>
That was it thanks, you nailed it.&nbsp; I was missing the fact that NRPE
prints out only that version message if you connect remotely and don't
specify a command for it to run.&nbsp; I had the check_nrpe command
configured wrong in the Nagios server's commands.cfg.&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; check_nrpe<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; /usr/nagios/libexec/check_nrpe -H $HOSTADDRESS$
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; check_nrpe<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; /usr/nagios/libexec/check_nrpe -H $HOSTADDRESS$
-c $ARG1$<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
<br>
[root@nagios]# /usr/nagios/libexec/check_nrpe -H remote.host.IP -c
check_md_raid<br>
OK - Checked 1 arrays.<br>
<br>
Thanks it's all working fine now,<br>
Jim<br>
<br>
-- <br>
Jim Ockers, P.E., P.Eng. (<a class="moz-txt-link-abbreviated" href="mailto:ockers@ockers.net">ockers@ockers.net</a>)<br>
Contact info: <a class="moz-txt-link-freetext" href="http://www.ockers.net/">http://www.ockers.net/</a><br>
<br>
Christopher Cross wrote:
<blockquote
 cite="mid:CANMPyz8akT81H0XjHzXojGG0H5UFhVzWLwTSG-o-ETYA=GMFfg@mail.gmail.com"
 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&nbsp;relevant&nbsp;parts of your Nagios config files. The host, service,
and commands parts should provide enough info.
  <div><br clear="all">
Christopher Cross<br>
  <a moz-do-not-send="true" 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:11 PM, Jim Ockers <span
 dir="ltr">&lt;<a moz-do-not-send="true" 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'll keep this simple since I hope it's a simple question. I set up
nagios and it's monitoring a remote system to make sure the RAID array
is OK. I'm using the NRPE (remote) plugin because the /proc/mdstat file
contains the RAID array health information, and it's not readable from
my Nagios server.&nbsp; In the web interface the status is shown (OK,
critical, etc) but no further command output is shown.<br>
    <br>
There's a whole "Status Information" column in the web interface and
instead of showing some useful command output it shows only "NRPE
v2.13".&nbsp; When I click on the service to drill into the status further,
the "Performance Data" is blank where the status output should be.&nbsp; 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.&nbsp; In the web/GUI interface
for "Services" it shows OK but the only status information is "NRPE
v2.13" instead of the "OK - Checked 1 arrays." command output like it
shows for every other non-remote Nagios command.<br>
    <br>
Help please?&nbsp; How can I get the remote command output shown in the web
interface?&nbsp; Believe it or not I've tried a variety of google searches
for this and got nothing, so help me CLUE you're my only hope!<br>
    <br>
Thanks,<br>
Jim<span class="HOEnZb"><font color="#888888"><br>
    </font></span></tt></font><span class="HOEnZb"><font color="#888888">
    <pre cols="72">-- 
Jim Ockers, P.E., P.Eng. (<a moz-do-not-send="true"
 href="mailto:ockers@ockers.net" target="_blank">ockers@ockers.net</a>)
Contact info: <a moz-do-not-send="true" href="http://www.ockers.net/"
 target="_blank">http://www.ockers.net/</a>
    </pre>
    </font></span></div>
  </blockquote>
  </div>
  </div>
</blockquote>
<br>
</body>
</html>