使用nsclient ++监视Windows Server 2008的使用情况

我正在为我们的服务器build立一个监控系统。 我在Linux机器上安装了nagios,然后安装了nsclient ++(使用这些指令http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html)(windows server 2008 r2)。 我认为这很容易,但nsclient ++不会与我的nagios盒子通信。 所有服务都closures了。 Nsclient的日志是这个,但我不明白什么是错的。 在这里输入图像说明

从控制台启动nsclient不会给我任何错误,所以它看起来没问题。

更新:由于Rackspacenetworking和防火墙,我发现1错误。 现在,如果我手动运行

/ usr / lib / nagios / plugins / check_nt -H IP -p 12489 -v UPTIME

它工作正常,我设置在Windows.cfgconfiguration文件中使用相同的IP,但在Nagios中一切仍然无法正常工作

你有什么想法吗?

如果命令在命令行中正常工作,请检查nagios服务器的commands.cfg中的check_nt UPTIME服务,并将其复制到服务命令中:

 define command{ command_name check_nt_uptime command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v UPTIME } 

 define service{ use windows.template host_name hostname service_description Uptime check_command check_nt_uptime } 

问候。

而不是使用“日志查看器”。 Idbuild议在“/ test mode”中运行nsclient ++,因为这也将启用debugging日志。

所以请尝试以下操作:

 nsclient++ /stop nsclient++ /test ... ... (run commands from nagios, ans see where what happens...) ... exit nsclient++ /start 

在大多数情况下,这与许多人忘记configuration的内置防火墙有关。