![NSClient++ 拒绝连接或无法发送信息](https://linux22.com/image/748166/NSClient%2B%2B%20%E6%8B%92%E7%BB%9D%E8%BF%9E%E6%8E%A5%E6%88%96%E6%97%A0%E6%B3%95%E5%8F%91%E9%80%81%E4%BF%A1%E6%81%AF.png)
我正在尝试在 Windows 端点机器上进行一些主动检查,NSClient++ 在我的 Windows 服务器上运行良好,但是当检查任何端点时,我得到的唯一响应是 或could not fetch information from server
。CRITICAL - 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
正确?这是一个常见错误,因为您需要将允许调用它并运行命令的人列入“白名单”。