Tag Archives: Operations management

centos nagios CHECK_NRPE: Error – Could not complete SSL handshake

Whether port 0 and 5666 have been opened
Yum install Telnet
Telnet 172.16.1.1 5666

1. Confirm that OpensSL has been installed
#yum install openssl

2. Modify allowed_hosts of NRPE. CFG
vim /usr/local/nagios/etc/nrpe.cfg
Wildcards are not supported for #allowed_hosts and multiple ips are separated by commas
172.16.1.1 allowed_hosts = 127.0.0.1

3. Modify the IP for xinetd startup configuration (if starting with xinetd)
vim /etc/xinetd.d/nrpe
Only_from = 127.0.0.1 172.16.1.1

4. Restart NRPE service
/usr/local/nagios/bin/nrpe - c /usr/local/nagios/etc/nrpe CFG - d


5. Test and display the version description successfully
#/usr/lib/nagios/plugins/check_nrpe - H 172.16.1.1
# NRPE v2.13