所有关于此错误的问题都显示人们正在运行check_nrpe -H [some_remote_ip]
,与在 localhost 上无错误运行形成对比。
但是,我什至无法让它在 localhost 上运行:
$> ./check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
该服务似乎已启动并正在运行:
$> 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
并且守护进程没有返回错误
$> sudo service nagios-nrpe-server status
* nagios-nrpe is running
我的nrpe.cfg
文件已allowed_hosts
正确设置:
allowed_hosts=127.0.0.1,10.0.1.2,0.0.0.0
/var/log/syslog
打开调试的内容:
Nov 1 22:54:44 <MYHOST> nrpe[11156]: Connection from ::1 port 6601
Nov 1 22:54:44 <MYHOST> nrpe[11156]: Host ::1 is not allowed to talk to us!
Nov 1 22:54:44 <MYHOST> nrpe[11156]: Connection from ::1 closed.
有谁知道发生了什么,这似乎几乎是荒谬的。谢谢!