I have a custom powershell defined in NSC.INI
; custom checks
get-active-vdi-sessions=cmd /c type "C:\Program Files\Opsview Agent\scripts\custom\get-active-vdi-sessions.ps1"; | powershell.exe -command -
It returns performance data and exit codes just fine to Opsview.
But how do pass command line parameters from opsview to the powershell script ?
The service check uses check_nrpe with the following -H $HOSTADDRESS$ -c get-active-vdi-sessions
Does anybody have a working example,
the stuff I find on Internet do not work.