NSClient++ 拒绝连接或无法发送信息

NSClient++ 拒绝连接或无法发送信息

我正在尝试在 Windows 端点机器上进行一些主动检查,NSClient++ 在我的 Windows 服务器上运行良好,但是当检查任何端点时,我得到的唯一响应是 或could not fetch information from serverCRITICAL - Socket timeout我检查了我的防火墙、端点的防火墙和 AV 保护、Nagios 服务器上的配置文件和文件nsclient.ini,这是我的文件的内容ini

; Undocumented section
[/modules]

; NRPE server - A simple server that listens for incoming NRPE connection and handles them.
NRPEServer = enabled

; NSClient server - A simple server that listens for incoming NSClient (check_nt) connection and handles them. Although NRPE is the preferred method NSClient is fully supported and can be used for simplicity or for compatibility.
NSClientServer = enabled


; Undocumented section
[/settings/default]

; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges.
allowed hosts = 192.168.x.x

[/settings/NRPE/server]

; Undocumented key
verify mode = none

; Undocumented key
insecure = true

完整文件可以在这里找到这里

任何指导都将非常有帮助并值得感激。

答案1

对于 NSClient 侦听器来说,该值是否allowed hosts正确?这是一个常见错误,因为您需要将允许调用它并运行命令的人列入“白名单”。

相关内容