I am trying to configure this to run.
According to other users comments it should work, but I am keep getting annoying error
Code: Select all
[root@localhost ~]# /usr/local/nagios/libexec/check_nrpe -H xx.xx.xx.xx -c check_ms_win_tasks -a '-H localhost'
The string starting:
At line:1 char:3
+ ? <<<< "
is missing the terminator: ".
At line:1 char:4
+ ?" <<<<
+ CategoryInfo : ParserError: (:String) [], ParentContainsErrorRe
cordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
[root@localhost ~]#nsclient .ini file has correct entry (as described by author)
Code: Select all
[External Scripts]
check_ms_win_tasks=cmd /c echo scripts\powershell\check_ms_win_tasks.ps1 $ARG1$; exit $LastExitCode | powershell.exe -command -All this lead me to believe that I overlooked something else
command defined as $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 60 -c check_ms_win_tasks -a $ARG1$
Command type: check command.
Appreciate any pointers that will help me solve this.
P.S.
I saw this error reported by some other unrelated nagios checks, but no resolution.