CHECK_NRPE: Error – Could Not Complete SSL Handshake
CHECK_NRPE: Error – Could Not Complete SSL Handshake error pops up in Nagios console after setting up NRPE agent in Linux server.
Nagios product team have given NRPE troubleshooting steps in a pdf and in one of them they clarly explain on what could be the problem. Follow those steps and the issue will be resolved.
1. Login to the Linux server where NRPE is installed.
2. Open the nrpe configuration file, /usr/local/nagios/etc/nrpe.cfg
3. Modify allowed_hosts attribute as shown below,
allowed_hosts=127.0.0.1,<nagios server ip> –> Nagios server IP needs to be provided here.
The allowed_hosts is a comma-separated list of IP addresses which can execute NRPE commands.
4. Edit the nrpe daemon file by as
vi /etc/xinetd.d/nrpe
5. For only_from attribute, make sure that Nagios server IP is included there as shown below,
only_from = 127.0.0.1 <Nagios server ip> –> Nagios server IP needs to be provided here.
Note:
only_from is a space-delimited list.
allowed_hosts has comma separated IPs.
6. restart xinetd service as, service xinetd restart
This will resolve the problem.
Nagios Link for reference.
