我已安装并运行 Nagios 核心,并尝试在 ubuntu server 22 LTS 版本中设置 Nagios 远程主机。我已完成设置远程主机的所有步骤,Nagios 浏览器中也显示相同内容,但显示错误,例如拒绝与端口 5666 的连接。根据教程,我已更改了设置/etc/nagios/nrpe.cfg
server_address= my_nagios_server_ip4address
allowed_hosts=127.0.0.1, my_nagios_server_ip4address
# COMMAND ARGUMENT PROCESSING
dont_blame_nrpe=0
/dev/sda2
之后重启nrpe服务
$service nagios-nrpe-server restart
我尝试添加防火墙规则
To Action From
-- ------ ----
443 ALLOW Anywhere
80/tcp ALLOW Anywhere
22/tcp ALLOW Anywhere
5666 ALLOW Anywhere
5666/tcp ALLOW Anywhere
443 (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
5666 (v6) ALLOW Anywhere (v6)
5666/tcp (v6) ALLOW Anywhere (v6)