温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

windows cmd install nscp

发布时间:2020-06-23 10:01:24 来源:网络 阅读:535 作者:zhouzx 栏目:系统运维

故障:需要在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.安裝完成

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI