<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Elizar M. Palad wrote:
<blockquote cite="mida829e8ca05091416412549dc8e@mail.gmail.com"  type="cite">
  <div><br clear="all">
Hi all! Me again! :-)</div>
  <div> </div>
  <div> </div>
  <div>I just installed nrpe both on local nagios machine and</div>
  <div>to the remote host.</div>
  <div> </div>
  <div>I get a "CHECK_NRPE: Received 0 bytes. Are we allowed to connect
to the host? "</div>
  <div>with these definition:</div>
  <div> </div>
  <div>define service{<br>
        use                             generic-service         ; Name
of service template to use<br>
        host_name                       2 FTPTEST<br>
        check_command              check_nrpe!check_ftp
  <br>
        }<br>
 </div>
  <div>define command{<br>
        command_name    check_nrpe<br>
        command_line    /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$<br>
        }<br>
 </div>
</blockquote>
Here's your problem, you aren't passing the arguments to check_nrpe,
only the Hostname<br>
<br>
The 'command_line' should read something like this:<br>
<br>
<br>
command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 30 -c
$ARG1$<br>
<br>
<br>
The check "check_ftp" must also be defined in your NRPE config file
nrpe.cfg<br>
<br>
If this does not make sense to you, then you need to read the manual on
how NRPE works<br>
<br>
<blockquote cite="mida829e8ca05091416412549dc8e@mail.gmail.com"  type="cite"><>Then i get: Socket timeout 10sec with this definition:</>
  <div> </div>
  <div>define service{<br>
        use                             generic-service         ; Name
of service template to use<br>
        host_name                       2 FTPTEST<br>
        check_command              check_nrpe!ftptest!21!check_ftp
  <br>
        }<br>
 </div>
  <div>define command{<br>
        command_name    check_nrpe<br>
        command_line    /usr/local/nagios/libexec/check_nrpe -H $ARG1$
-p $ARG2$ -c $ARG3$<br>
        }</div>
  <p>could someone guide me on this one? Thanks in advance! </p>
</blockquote>
<br>
This looks better but you are still sending some incorrect arguments,
see above.  You need to understand how the flags work such as -H and
how the ! separator works with $ARGx$ arguments.<br>
<br>
rob.<br>
<br>
</body>
</html>