title: [Error]: Error - Could not complete SSL handshake. ON LOCALHOST
body: <p>All of the questions about this error show people running <code>check_nrpe -H [some_remote_ip]</code>, in contrast to an error-free run on localhost.</p>
  
  <p>I, however, can't even get this to run on localhost:</p>
  
  <pre><code>$&gt; ./check_nrpe -H localhost
  CHECK_NRPE: Error - Could not complete SSL handshake.
  </code></pre>
  
  <p>The service does appear to be up and running:</p>
  
  <pre><code>$&gt; sudo netstat -apn | grep :5666
  tcp        0      0 0.0.0.0:5666            0.0.0.0:*        LISTEN      5847/nrpe
  tcp6       0      0 :::5666                 :::*             LISTEN      10216/nrpe
  </code></pre>
  
  <p>And the daemon returns no errors</p>
  
  <pre><code>$&gt; sudo service nagios-nrpe-server status
  * nagios-nrpe is running
  </code></pre>
  
  <p>My <code>nrpe.cfg</code> file has <code>allowed_hosts</code> set correctly:</p>
  
  <pre><code>allowed_hosts=127.0.0.1,10.0.1.2,0.0.0.0
  </code></pre>
  
  <p>Contents of <code>/var/log/syslog</code> with debugging turned on:</p>
  
  <pre><code>Nov  1 22:54:44 &lt;MYHOST&gt; nrpe[11156]: Connection from ::1 port 6601
  Nov  1 22:54:44 &lt;MYHOST&gt; nrpe[11156]: Host ::1 is not allowed to talk to us!
  Nov  1 22:54:44 &lt;MYHOST&gt; nrpe[11156]: Connection from ::1 closed.
  </code></pre>
  
  <p>Does anyone have any idea what's going on, this seems almost nonsensical. Thanks!</p>