配置windows被监控机(客户端)
本文讲述的是:Redhat配置nagios。返回大纲。
Windows监控需要在windows安装一个插件nsclient,
下载后解压到c盘
- C:\NSClient>nsclient++ /install
- Service NSClientpp installed...
- l NSClient++.cpp(227) Service installed!
用记事本编辑nsc.ini,去掉注释符号”;”除了CheckWMI.dll和RemoteConfiguration.dll
- [modules]
- FileLogger.dll
- CheckSystem.dll
- CheckDisk.dll
- NSClientListener.dll
- NRPEListener.dll
- SysTray.dll
- CheckEventLog.dll
- CheckHelpers.dll
- ;CheckWMI.dll
- CheckExternalScripts.dll
- NSCAAgent.dll
- LUAScript.dll
- ;RemoteConfiguration.dll
- NRPEClient.dll
- CheckTaskSched.dll
- [Settings]
- allowed_hosts=10.155.2.65/32
- [NSClient]
- port=12489
- C:\NSClient>NSClient++ -start
- Starting NSClientpp
- C:\NSClient>netstat -an | more
- Active Connections
- Proto Local Address Foreign Address State
- TCP 0.0.0.0:5666 0.0.0.0:0 LISTENING
- TCP 0.0.0.0:12489 0.0.0.0:0 LISTENING
服务器
- [root@localhost ~]# vi /usr/local/nagios/etc/nagios.cfg
- # Definitions for monitoring a Windows machine
- cfg_file=/usr/local/nagios/etc/objects/windows.cfg
- [root@localhost ~]# vi /usr/local/nagios/etc/objects/windows.cfg
windows.cfg没有什么可改的,只是把hostname和ip改了就行了(图5)
【编辑推荐】