2012-08-28 65 views
0

我已經在Linux中安裝了Nagios監視工具,它的服務按預期成功運行。未在Windows中安裝NSClient ++

現在根據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'插件一起正確安裝。

在此先感謝!

回答

1

NSClient是過時的和過時。您應該使用NSClient++(AKA nscp),它有一個實際的安裝程序,以及excellent documentation

或者,如果您正在處理超過幾十臺Windows主機,並且正在使用Active Directory,則可能需要考慮Nagios-WSC。不管它是否適合您的需求取決於您希望做什麼樣的檢查。

0

只是一個建議 - 忘記手動安裝) 安裝巧克力

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

重啓PowerShell會話和 安裝nsclient ++

choco install nscp