Redhat配置nagios-配置windows被監(jiān)控機
作者:wonitazansa1
Redhat配置nagios:Nagios是監(jiān)控系統(tǒng),Nagios能監(jiān)控所指定的本地或遠程主機以及服務,同時提供異常通知功能等。這篇文章講述的是Redhat配置nagios,配置windows被監(jiān)控機
配置windows被監(jiān)控機(客戶端)
本文講述的是:Redhat配置nagios。返回大綱。
Windows監(jiān)控需要在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)
【編輯推薦】
責任編輯:zhaolei
來源:
csdn