【问题标题】:NSClient++ not getting installed in windowsNSClient++ 未安装在 Windows 中
【发布时间】:2012-08-28 06:21:22
【问题描述】:

我已经在linux中安装了Nagios监控工具,服务运行正常。

现在根据 NSClient 文档,没有安装 windows 部分。 所需的步骤是:

(a) Copy pNSClient.exe, pdh.dll, psapi.dll and counters.defs in any directory on the machine you want to monitor. ie. (c:\nsclient).
(b) Open a dos prompt in the installation directory
(c) Run the following command : >pNSClient.exe /install
(d) Type 'net start nsclient' on the command line or start the service 'Nagios Agent' in the services applet of the control panel.

安装将在注册表中为服务创建一个条目,并创建一个新密钥来存储参数。创建的密钥如下:

HKEY_LOCAL_MACHINE\SOFTWARE\NSClient


问题在于按照第一步进行安装,并且“net start nsclient”命令未在命令提示符下执行,它显示服务名称无效

对此有任何帮助吗? M 在 Windows 7 上安装它。 仅剩下 NSClient 的 windows 安装部分,但 linux 部分已与“check_nt”插件一起正确安装。

提前致谢!!

【问题讨论】:

    标签: windows linux nagios


    【解决方案1】:

    NSClient 已过时且已弃用。您应该使用NSClient++ (AKA nscp),它有一个实际的安装程序,以及excellent documentation。

    或者,如果您正在处理几十个 Windows 主机,并且正在使用 Active Directory,您可能需要考虑Nagios-WSC。不过,它是否适合您的需求取决于您希望进行哪种检查。

    【讨论】:

      【解决方案2】:

      该文档可能已过时。尝试使用以下文档安装 NSClient++。该文档适用于 Nagios XI,但代理说明应该相同。 http://assets.nagios.com/downloads/nagiosxi/docs/Installing_The_XI_Windows_Agent.pdf

      否则,您也可以尝试:

        net start nsclient++
      

      【讨论】:

        【解决方案3】:

        只是一个建议 - 忘记手动安装) 安装巧克力

        iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
        

        重新启动 powershell 会话并 安装nsclient++

        choco install nscp
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-07-25
          • 1970-01-01
          • 1970-01-01
          • 2014-05-10
          • 1970-01-01
          相关资源
          最近更新 更多