1. 程式人生 > >windows cmd install nscp

windows cmd install nscp

故障:需要在windows 2012 database版本非影象版本安裝nagios client

關鍵步驟:
1.下載最新版本nscp
參考連結:http://www.nsclient.org/nscp/downloads
2.在cmd下進行nscp安裝,安裝引數
msiexec /qn /l log.txt /i NSCP-0.4.3.50-x64.msi INSTALLLOCATION=c:\FooBar CONFIGURATION_TYPE=registry://HKEY_LOCAL_MACHINE/software/NSClient++ ADDLOCAL=ALL REMOVE=PythonScript
3.生成符合本機的nsclient.ini,生成命令(生成時會提示缺少python27.dll檔案,單擊確定,繼續執行即可)
nscp settings --generate --add-defaults --load-all
4.修改nsclient.ini,啟動需要的check_nt模組及其它
[/modules]
CheckDisk = 1
CheckEventLog = 1
CheckExternalScripts = 1
CheckNSCP = 1
CheckHelpers = 1
CheckSystem = 1
NRPEServer = 1
NSCAClient = 1
NSClientServer = 1
; 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.8.200
[/modules]
5.重新啟動服務,命令引數
net stop nscp
net start nscp
6.確認服務啟動狀態,命令引數
netstat -nao | findstr 12489
netsat -nao | findstr 5666
7.安裝完成