加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows cmd install nscp

发布时间:2020-12-14 02:40:44 所属栏目:Windows 来源:网络整理
导读:故障:需要在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
故障:需要在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=PythonScript3.生成符合本機的nsclient.ini,生成命令(生成時會提示缺少python27.dll文件,單擊確定,繼續執行即可)nscp settings --generate --add-defaults --load-all4.修改nsclient.ini,啟動需要的check_nt模塊及其它[/modules]CheckDisk = 1CheckEventLog = 1CheckExternalScripts = 1CheckNSCP = 1CheckHelpers = 1CheckSystem = 1NRPEServer = 1NSCAClient = 1NSClientServer = 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 nscpnet start nscp6.確認服務啟動狀態,命令參數netstat -nao | findstr 12489netsat -nao | findstr 56667.安裝完成

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读