Ssl – “Error: Could not complete SSL handshake. 5” in syslog of otherwise fine Nagios monitored host

monitoringnagiossslsyslog

I have a nagios server on ubuntu that monitors many other ubuntu servers. They have configured with chef, and they are correctly monitoring things over NRPE (i.e. the NRPE checks work. When something breaks, I get an alert). Everything is fine.

Except that syslog on my monitored hosts has lots of these error messages:

Jul 20 15:07:10 HOSTNAME nrpe[26360]: Error: Could not complete SSL handshake. 5

Every ~5 minutes or so, syslog will get another one of these messages. There is no failing test. I have about 20 monitored hosts, and they all have something like this in their syslog's.

Update: The nagios server's IP address is listed in the allowed_hosts, and has been like that for ages.

How can I stop this message from bring printed into syslog?

Best Answer

When you monitor the NRPE port using check_tcp then it cause the error.

The check can not initialize successful connection with NRPE and the client log it in syslog.