我试图在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完整的文件可以找到这里。
任何指导都将是非常有帮助和感激的。
发布于 2020-03-24 10:52:05
对于allowed hosts侦听器,NSClient值正确吗?这是一个常见的错误,因为您需要“白名单”谁可以调用它并运行命令。
https://serverfault.com/questions/1001817
复制相似问题