<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
Have you try to execute this from command line of nagios server :<br>
<br>
./check_nrpe -H hostaddress -n -c <span class="564332912-13072004"><font
 face="Courier New" size="2"><big>check_load</big><br>
<br>
<br>
<big>I note that </big></font></span><big><small>it misses a space<span
 class="564332912-13072004"><font face="Courier New" size="2"> </font></span></small><span
 class="564332912-13072004"><font><font face="Courier New" size="2"><big>after
the '-c' option in : command_line $USER1$/check_nrpe -H $HOSTADDRESS$
-n -c$ARG1$<br>
<br>
Perhaps </big></font></font></span></big>that l   error comes from there.<br>
<br>
Chris Jackson-CHRJ002 wrote:<br>
<blockquote type="cite"
 cite="mid21A8A2085689D8118A63000E7F206F7B158587@049701-RACdd7a01d940.baseng.comm.mot.com">
  <meta http-equiv="Content-Type" content="text/html; ">
  <title>Message</title>
  <meta content="MSHTML 6.00.2800.1400" name="GENERATOR">
  <div><span class="564332912-13072004"><font face="Arial"
 color="#0000ff" size="2">Hi Carole, </font></span></div>
  <div><span class="564332912-13072004"></span> </div>
  <div><span class="564332912-13072004"><font face="Arial"
 color="#0000ff" size="2">Here is the information you requested,</font></span></div>
  <div><span class="564332912-13072004"></span> </div>
  <div><span class="564332912-13072004"><font face="Arial"
 color="#0000ff" size="2">From services.cfg</font></span></div>
  <div><span class="564332912-13072004"></span> </div>
  <div><span class="564332912-13072004"><font face="Courier New"
 size="2">define service{<br>
        use                             linux-servers<br>
        host_name                       "server-name"  (sorry,
company policy!!!)      <br>
        contact_groups                  ecrl-admin<br>
        notification_options            c,u,r<br>
        service_description             LOAD_NRPE<br>
        check_command                   check_nrpe_nossl!check_load<br>
}<br>
define service{<br>
        use                             linux-servers<br>
        host_name                       "server-name"<br>
        contact_groups                  ecrl-admin<br>
        notification_options            c,u,r<br>
        service_description             DISK_NRPE<br>
        check_command                   check_nrpe_nossl!check_disk<br>
}<br>
define service{<br>
        use                             linux-servers<br>
        host_name                       "server-name"        <br>
        contact_groups                  ecrl-admin<br>
        notification_options            c,u,r<br>
        service_description             ZOMBIE_PROCS_NRPE<br>
        check_command                  
check_nrpe_nossl!check_zombie_procs<br>
}<br>
define service{<br>
        use                             linux-servers<br>
        host_name                       "server-name"</font></span></div>
  <div><span class="564332912-13072004"><font face="Courier New"
 size="2">        contact_groups                  ecrl-admin<br>
        notification_options            c,u,r<br>
        service_description             TOTAL_PROCS_NRPE<br>
        check_command                  
check_nrpe_nossl!check_total_procs<br>
}</font></span></div>
  <div><span class="564332912-13072004"></span> </div>
  <div><span class="564332912-13072004"><font face="Courier New"
 size="2"><font face="Arial" color="#0000ff">From checkcommands.cfg</font></font></span></div>
  <div><span class="564332912-13072004"></span> </div>
  <div><span class="564332912-13072004"><font><font face="Courier New"
 size="2">define command{<br>
        command_name check_nrpe_nossl<br>
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c$ARG1$<br>
}</font></font></span></div>
  <div><font> </font></div>
  <div><font><font face="Arial" color="#0000ff" size="2"><span
 class="564332912-13072004">I included the nossl version which is
working more than the one trying to use SSL.  The commands called
relate to the commands in the nrpe.cfg file, these are included
below:  </span></font></font></div>
  <div><font><font face="Arial" color="#0000ff" size="2"><span
 class="564332912-13072004"></span></font> </font></div>
  <div><font><font face="Courier New" size="2"><span
 class="564332912-13072004"># The following examples use hardcoded
command arguments...</span></font></font></div>
  <div><font> </font></div>
  <div><font><font face="Courier New" size="2"><span
 class="564332912-13072004">command[check_users]=/usr/local/nagios/libexec/check_users
-w 5 -c 10<br>
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c
30,25,20<br>
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 10 -c 5 -X
nfs <br>
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5
-c 10 -s Z<br>
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150
-c 200</span></font></font></div>
  <div><font><font face="Arial" color="#0000ff" size="2"><span
 class="564332912-13072004"></span></font> </font></div>
  <div><font><font face="Arial" color="#0000ff" size="2"><span
 class="564332912-13072004">As I said before, the commands above when
run from the command line of the remote host work perfectly.  If you
need any more information please let me know,</span></font></font></div>
  <div><font><font face="Arial" color="#0000ff" size="2"><span
 class="564332912-13072004"></span></font> </font></div>
  <div><font><font face="Arial" color="#0000ff" size="2"><span
 class="564332912-13072004">Many thanks for your help,</span></font></font></div>
  <div><font><font face="Arial" color="#0000ff" size="2"><span
 class="564332912-13072004"></span></font> </font></div>
  <div><font><font face="Arial" color="#0000ff" size="2"><span
 class="564332912-13072004">Chris</span></font></font></div>
  <div><font><font face="Courier New"> </font></font></div>
  <div><font><font face="Courier New"><font size="2"><br>
  </font></font></font></div>
  <blockquote dir="ltr" style="margin-right: 0px;">
    <div class="OutlookMessageHeader" lang="en-us" dir="ltr"
 align="left"><font face="Tahoma" size="2">-----Original Message-----<br>
    <b>From:</b> carole verdon   [<a class="moz-txt-link-freetext" href="mailto:verdon@cict.fr">mailto:verdon@cict.fr</a>] <br>
    <b>Sent:</b> 13 July 2004 13:21<br>
    <b>To:</b> Chris Jackson-CHRJ002<br>
    <b>Subject:</b> Re: [Nagios-users] NRPE   Problems<br>
    <br>
    </font></div>
Can you post your command definition of   check_nrpe in command.cfg
and the services definition which using check_nrpe   in service.cfg,
please?<br>
    <br>
It's perhaps a history of   arguments.<br>
    <br>
Chris Jackson-CHRJ002 wrote:<br>
    <blockquote
 cite="mid21A8A2085689D8118A63000E7F206F7B158586@049701-RACdd7a01d940.baseng.comm.mot.com"
 type="cite">
      <meta content="MSHTML 6.00.2800.1400" name="GENERATOR">
      <div><span class="221093011-13072004"><font face="Arial"
 color="#0000ff" size="2">Hi     Carole,</font></span></div>
      <div><span class="221093011-13072004"></span> </div>
      <div><span class="221093011-13072004"><font face="Arial"
 color="#0000ff" size="2">Once again you come to my rescue!!</font></span></div>
      <div><span class="221093011-13072004"></span> </div>
      <div><span class="221093011-13072004"><font face="Arial"
 color="#0000ff" size="2">I     did what you said and added a -n
switch to the command, this fixed the     Handshake problems but now I
just get an UNKNOWN Error receiving data from     Daemon.</font></span></div>
      <div><span class="221093011-13072004"></span> </div>
      <div><span class="221093011-13072004"><font face="Arial"
 color="#0000ff" size="2">Both host and remote host are running
Mandrake Linux however one is     v10 and one is v9.2, but when I
execute the plugin locally on the remote     host it works perfectly. 
I can only assume that either the command is     not being processed
by the nrpe daemon correctly or that data is not being     succesfully
returned.  I looked in syslog but can't find any     clues.</font></span></div>
      <div><span class="221093011-13072004"></span> </div>
      <div><span class="221093011-13072004"><font face="Arial"
 color="#0000ff" size="2">A     netstat -pta returns nrpe listening on
port 5666 as     expected.</font></span></div>
      <div><span class="221093011-13072004"></span> </div>
      <div><span class="221093011-13072004"><font face="Arial"
 color="#0000ff" size="2">If     you could help me with this problem I
would be most     grateful!</font></span></div>
      <div><span class="221093011-13072004"></span> </div>
      <div><span class="221093011-13072004"><font face="Arial"
 color="#0000ff" size="2">Chris</font></span></div>
      <blockquote dir="ltr" style="margin-right: 0px;">
        <div class="OutlookMessageHeader" lang="en-us" dir="ltr"
 align="left"><font face="Tahoma" size="2">-----Original Message-----<br>
        <b>From:</b> carole       verdon [<a
 class="moz-txt-link-freetext" href="mailto:verdon@cict.fr">mailto:verdon@cict.fr</a>]<br>
        <b>Sent:</b> 13 July 2004 08:42<br>
        <b>To:</b> Chris Jackson-CHRJ002<br>
        <b>Cc:</b> <a class="moz-txt-link-abbreviated"
 href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
        <b>Subject:</b> Re: [Nagios-users] NRPE Problems<br>
        <br>
        </font></div>
It seems to me that       your nrpe on nagios server is compiled with
ssl. Is right?<br>
        <br>
If it's       the case, you can use, i believe, the '-n' option of
check_nrpe to disable       ssl. Otherwise, you must compile again
nrpe on nagios server with <big>'<span
 class="127032216-12072004"><font face="Arial" size="2"><big>--enable-ssl'
option. Then, you can call the new check_nrpe as      
check_nrpe_nossl to not confuse with the </big></font></span></big><big><span
 class="127032216-12072004"><font face="Arial" size="2"><big>check_nrpe
compiling with ssl support.<br>
        <br>
        <br>
I       see also that you copied some plugins on remote host. Is it
the same       version of OS? Normally, you must compile plugins
directly on remote host.       Perhaps, the error </big></font></span></big>comes
from there.<br>
        <br>
I       hope that help you.<br>
        <br>
Carole.<br>
        <br>
Chris Jackson-CHRJ002 wrote:<br>
        <blockquote
 cite="mid21A8A2085689D8118A63000E7F206F7B15857A@049701-RACdd7a01d940.baseng.comm.mot.com"
 type="cite">
          <meta content="MSHTML 6.00.2800.1400" name="GENERATOR">
          <div><span class="127032216-12072004"><font face="Arial"
 size="2">Hi,</font></span></div>
          <div><span class="127032216-12072004"></span> </div>
          <div><span class="127032216-12072004"><font face="Arial"
 size="2">I'm having         some difficulty setting up nrpe on my
network.</font></span></div>
          <div><span class="127032216-12072004"></span> </div>
          <div><span class="127032216-12072004"><font face="Arial"
 size="2">I have         downloaded and compiled the client on the
remote host in question with         ./configure --enable-ssl</font></span></div>
          <div><span class="127032216-12072004"></span> </div>
          <div><span class="127032216-12072004"><font face="Arial"
 size="2">I have         followed all the instructions to make the
nrpe daemon run with xinetd         and netstat -pta shows nrpe
listening.  I set nagios host to use         check_nrpe to execute
some plugins I copied to the remote box but I'm         getting the
error Could not complete SSL handshake.  I'm sure its        
something to do with me missing out some SSL configuration somewhere
but         I can't see where I've gone wrong.</font></span></div>
          <div><span class="127032216-12072004"></span> </div>
          <div><span class="127032216-12072004"><font face="Arial"
 size="2">I'm not         really clued up on SSL and found the
instructions for installing with         SSL support a bit confusing. 
Can anyone help me troubleshoot and         work out why the handshake
keeps failing?</font></span></div>
          <div><span class="127032216-12072004"></span> </div>
          <div><span class="127032216-12072004"><font face="Arial"
 size="2">Thanks in         advance,</font></span></div>
          <div><span class="127032216-12072004"></span> </div>
          <div><span class="127032216-12072004"><font face="Arial"
 size="2">Chris</font></span></div>
        </blockquote>
      </blockquote>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
**********************************
VERDON Carole
Ingénieur Système
CICT - Université Paul Sabatier
118, route de Narbonne
31062 Toulouse Cedex
Tél.: 05.61.36.60.44
Fax: 05.61.52.14.58
Mail: <a class="moz-txt-link-abbreviated" href="mailto:verdon@cict.fr">verdon@cict.fr</a>
**********************************      
    </pre>
  </blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
**********************************
VERDON Carole
Ingénieur Système
CICT - Université Paul Sabatier
118, route de Narbonne
31062 Toulouse Cedex
Tél.: 05.61.36.60.44
Fax: 05.61.52.14.58
Mail: <a class="moz-txt-link-abbreviated" href="mailto:verdon@cict.fr">verdon@cict.fr</a>
**********************************      
</pre>
</body>
</html>