nagios 報 CHECK_NRPE Error – Could not complete SSL handshake 錯誤.
在 nagios 站羣服務器端:
# /usr/local/nagios/libexec/check_nrpe -H  IP(被監控端 IP)
CHECK_NRPE: Error – Could not complete SSL handshake.
徹底這種問題, 需要檢查以下幾點:
<1>檢查 nagios 站羣服務器端、被監控端 openssh 、 openssl 、 openssl-devel 服務是否安裝, 且版本是否相同.
可以通過 yum search openssh openssl openssl-devel 檢視是否安裝.
可以通過 yum -y install openssh openssl openssl-devel 安裝服務
<2>被監控端, 檢查 nrpe 配置檔案中是否加入了 nagios 站羣服務器端的 IP, 如下:
#vi /etc/xinetd.d/nrpe
only_from 127.0.0.1 IP(nagios 服務段 IP)
#vi /usr/local/nagios/etc/nrpe.cfg
allowed_hosts 127.0.0.1 IP(nagios 服務段 IP)
然後重啓 xinetd 服務
service xinetd restart
<3>被監控端, 檢查防火牆設定, 看 nagios 站羣服務器 IP 是否加入防火牆 (iptables) 允許列表. 或者安裝 csf, 在/etc/csf/csf.allow 中新增 nagios 站羣服務器 IP.
在 nagios 站羣服務器端:
# /usr/local/nagios/libexec/check_nrpe -H  IP(被監控端 IP)
NRPE v2.12
這樣表示測試連線正常了.