5

Im working on opensuse Leap 42.1. I have installed NRPE on the remote host. I following precisely the installation guide. However, the deaemon runs:

netstat -at | egrep "nrpe|5666"
tcp        0      0 *:nrpe                  *:*                     LISTEN      
tcp        0      0 *:nrpe                  *:*                     LISTEN 

But executing CHECK_NRPE gives me the following error:

/usr/local/nagios/lib/check_nrpe -H localhost
CHECK_NRPE: Error - Could not connect to ::e298:8aF0:2cdf:0: Connection reset by peer

I dont see what is the problem here. I tried the installation several times. Firewall is off, but that shouldn't be the problem. Haven't found the error anywhere else. What am I missing? Thanks

4

2 回答 2

8

我有同样的问题。

只是,看看文件:/etc/xinetd.d/nrpe

现在,找到(几乎在开始时)说

“禁用=是”

并简单地将其更改为“否”,然后:

# systemctl restart xinetd.service

# systemctl restart nrpe# service nrpe restart(如果不是系统)

使用最新的 nrpe 安装指南在 debian 8 上进行测试。

希望能帮助到你!

PS:不要忘记指令。

“only_from = (...)”

编辑:

在 debian 8 上的最后一次 NRPE 安装中,您必须:

编辑:/usr/local/nagios/etc/nrpe.cfg

第 98 行:allowed_hosts=x.x.x.x

并在 /etc/xinetd.d/nrpe 中让指令“ disable”在“ yes”中。(默认)

似乎 nrpe 服务查看 /usr/local/nagios/etc/nrpe.cfg 而不是 /etc/xinetd.d/nrpe 中允许的主机。

因为在 /etc/xinetd.d/nrpe 中有这一行:

 server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd

现在,是的:

# systemctl restart nrpe.service && systemctl restart xinetd.service
于 2017-03-21T18:22:20.243 回答
1

就我而言,问题只是我需要停止 nrpe 进程并重新开始

ps aux | grep nrpe

kill xxxx


run nrpe service

/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
于 2019-12-08T14:25:30.677 回答