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
================
請教一下~ 是我哪裡沒設定好 還是參數設錯~~~感謝。
页:
[1]