我正在尝试配置 Nagios 命令以使用 NRPE 插件检查远程 Windows 主机上的物理内存状态。我在 Ubuntu Server v14.10 和 NSClient++ 0.4.3 的最新稳定版本上使用 Nagios v3.0.6。以下是配置文件中的片段:
define command {
command_name check_ph_mem
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckMEM -a MaxWarn=$ARG1$% MaxCrit=$ARG2$% ShowAl$
}
Run Code Online (Sandbox Code Playgroud)
和
define service{
host_name remote-win-host
service_description Check Memory NRPE
check_command check_ph_mem
use generic-service
}
Run Code Online (Sandbox Code Playgroud)
Nagios 无法从此命令检索任何信息,因为当我执行
/usr/lib/nagios/plugins/check_nrpe -H 192.168.1.150
Run Code Online (Sandbox Code Playgroud)
它返回以下错误:
CHECK_NRPE: Error - Could not complete SSL handshake.
Run Code Online (Sandbox Code Playgroud)
我尝试通过C:\Program Files\NSClient++\nsclient.ini以下方式重新配置部分:
[/settings/NRPE/server]
allow arguments = true
allowed hosts = 192.168.1.15
port = 5666
Run Code Online (Sandbox Code Playgroud)
但它返回相同的错误。我已经阅读了几十个类似的主题并尝试了不同的建议,但我仍然遇到同样的问题。
你知道如何解决这个问题吗?