歡迎您光臨本站 註冊首頁

nagios使用.ps1問題

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

nagios使用.ps1問題

小弟依照nagios exchange plugin 內容 放入
Add to nsclient.ini:

check_ad_account=lotp_check_ad_accounts.ps1 $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$
執行check_nrpe -H 1.1.1.1  -c check_ad_account   
回應UNKNOWN: No handler for that command
===============================
到NSClinet++ 的文檔使用ps1腳本的方法

ps1=cmd /c echo scripts\\%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command -
我照上面的方式執行
check_ad_account=cmd /c echo scripts\lotp_check_ad_accounts.ps1; exit($lastexitcode) | powershell.exe -command -
執行了以後UNKNOWN: No handler for that command
================
請教一下~ 是我哪裡沒設定好 還是參數設錯~~~感謝。



[火星人 ] nagios使用.ps1問題已經有633次圍觀

http://coctec.com/docs/service/show-post-76.html