Nagios NRPE服务器上的SSL握手错误



我在centos服务器上安装了nrpe(nrpe v4.0.3)。我用普罗米修斯监视nrpe检查。npe -export作为docker容器运行,但我在npe -export容器日志中看到以下错误

level=error ts=2022-05-15T02:45:21.361955654Z caller=nrpe_exporter.go:72 msg="Error running command" command=check_load err="nrpe: error while reading"
level=error ts=2022-05-15T02:45:34.398684293Z caller=nrpe_exporter.go:72 msg="Error running command" command=check_load err="read tcp 192.168.70.50:44606->192.168.70.50:5666: read: connection reset by peer"
level=error ts=2022-05-15T02:45:34.783260075Z caller=nrpe_exporter.go:72 msg="Error running command" command=check_load err="read tcp 127.0.0.1:35428->127.0.0.1:5666: read: connection reset by peer"

我进入/etc/nagios/npe。cfg检查允许nagios服务器ip但当我检查/var/run/npe。log时,我看到这个错误

[1652582524] Error: (!log_opts) Could not complete SSL handshake with 192.168.70.50: 1
[1652582524] Error: (!log_opts) Could not complete SSL handshake with 127.0.0.1: 1

没有/etc/xinetd.d/nrpe文件

当我直接执行命令时,它们工作得很好

[root@dev ~]# /usr/lib64/nagios/plugins/check_nrpe -H dev
NRPE v4.0.3
[root@dev ~]# /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.04, 0.07, 0.12|load1=0.040;15.000;30.000;0; load5=0.070;10.000;25.000;0; load15=0.120;5.000;20.000;0;

找到问题了

我做了以下更改并重新启动了nrpe服务,我能够看到结果

[root@dev ~]# vi /etc/sysconfig/nrpe
NRPE_SSL_OPT="-n"

相关内容

最新更新