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.安裝完成

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章