<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
What I meant was:  On the nagios server, log in as the 'nagios' user,
and run the command just as nagios might run it... for example:<br>
<br>
/usr/local/nagios/libexec/check_nrpe -H some.host.somewhere.com -c
check_disk<br>
<br>
And see what happens.  Maybe your SSL libraries aren't in your ld.so
path or something, or you have some other problem executing the NRPE
plugin which will show up if you run the command yourself.<br>
<br>
If that fails, then you may want to recompile NRPE and make sure you
have the check_nrpe and the nrpe daemon copied onto both systems (you
may have a mismatched copy, the client with SSL, the check program
without).<br>
<br>
Cheers<br>
rob<br>
<br>
Matt Wells wrote:
<blockquote cite="mid7a8040aff959844c06e26811a354b1a0@open.wells.vg"   type="cite">
  <meta http-equiv="Content-Type" content="text/html;">
  <meta content="Group-Office 2.13" name="GENERATOR">
I am able to run the command and get a perfect reply.  <br>
I get the nrpe[25392]: Error: Could not complete SSL handshake. 5 every
3 minutes on the second.<br>
  <blockquote   style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(34, 67, 127); border-width: 0pt 0pt 0pt 2px; margin: 0px 0px 0px 5px; padding: 0px 0px 0px 5px;"><font   face="verdana" size="2">----- Original Message -----<br>
    <b>Subject: </b>Re: [Nagios-users] NRPE SSL Error<br>
    <b>From:  </b>Rob Moss <a class="moz-txt-link-rfc2396E" href="mailto:robmossrm@aol.com"><robmossrm@aol.com></a><br>
    <b>To: </b>Undisclosed reciepent<br>
    <b>CC: </b><a class="moz-txt-link-rfc2396E" href="mailto:nagios-users@lists.sourceforge.net">"nagios-users@lists.sourceforge.net"</a>
<a class="moz-txt-link-rfc2396E" href="mailto:nagios-users@lists.sourceforge.net"><nagios-users@lists.sourceforge.net></a><br>
    <b>Date: </b>09-09-2005 12:26<br>
    </font><br>
    <br>
Matt Wells wrote:<br>
    <blockquote type="cite"   cite="http://open.wells.vg/modules/email/mid3547eb108fe6e419ee7a21adcb6ba471@open.wells.vg">
By default now it compiles with SSL enabled.. at least it said so in
the configure file.<br>
      <blockquote   style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(34, 67, 127); border-width: 0pt 0pt 0pt 2px; margin: 0px 0px 0px 5px; padding: 0px 0px 0px 5px;"><font   face="verdana" size="2">----- Original Message -----<br>
        <b>Subject: </b>Re: [Nagios-users] NRPE SSL Error<br>
        <b>From: </b>martin hudec <a href="mailto:corwin@aeternal.net"   class="moz-txt-link-rfc2396E"><corwin@aeternal.net></a><br>
        <b>To: </b>"Matt Wells" <a href="mailto:chroot@wells.vg"   class="moz-txt-link-rfc2396E"><chroot@wells.vg></a><br>
        <b>CC: </b><a href="mailto:nagios-users@lists.sourceforge.net"   class="moz-txt-link-abbreviated">nagios-users@lists.sourceforge.net</a><br>
        <b>Date: </b>09-09-2005 11:51<br>
        </font><br>
        <br>
Hello,<br>
        <br>
On Fri, Sep 09, 2005 at 11:33:26AM -0700 or thereabouts, Matt Wells
wrote:<br>
> Martin thank you for such a fast reply. I compiled the v2 on the<br>
> server and copied the check_nrpe to the libexec dir. This is from<br>
> the same compile as the clients. Other than the check_nrpe does the<br>
> Nagios Server need anything else running that perhaps I've not
run? <br>
> The clients have the /usr/local/nagios/nrpe -c<br>
> /usr/local/nagios/nrpe.cfg -d for the client.<br>
> The clients are in /usr/local/nagios and within this folder is<br>
> nrpe<br>
> nrpe.cfg<br>
> libexec/<br>
> libexec/check_lots_of_checks_here<br>
        <br>
Well I am actually interested in way how was nrpe compiled (you said<br>
that all nrpe are from the same compile), so look for compile<br>
options.. This was exactly what I was missing (to enable ssl during<br>
configuration before compilation).. I am using FreeBSD, so I used<br>
WITH_SSL=yes as compile option for nrpe port. So check your operating<br>
system and its package system for any configurable options for nrpe<br>
package.<br>
        <br>
I am leaving from work, so I won't be online until morning. I hope my<br>
few lines will actually do some help.<br>
      </blockquote>
    </blockquote>
Most of the SSL errors I get are related to the <br>
    <br>
allowed_hosts<br>
    <br>
option. Check that your Nagios server IP address is on that line
(separated by commas).<br>
    <br>
Also, on your nagios server, run the check_nrpe command as the nagios
user with exactly the same arguments as the Nagios server would have
and display the error to us.<br>
    <br>
Cheers.<br>
rob.<br>
    <br>
  </blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Rob Moss
Unix   Systems    Admin
Hosting & DB Operations
Hammersmith, London, UK
Phone: +44 20 7348 8629
</pre>
</body>
</html>