NSClient Works From Command Line But Not Nagios!


#1

Hi all,

I am just starting to look into using NSClient++ with NRPE for getting performance counter information from my Windows servers but am getting stuck once I create the command in Nagios.

I run the following directly from /usr/local/nagios/libexec/:

I get the following result which is correct:

However, when I create this as a command within nagios (actually through NagiosQL) I get the following within the nsclient.log file on the remote Windows server:

It appears to be adding a $ at the end of the command but am not sure why! Here is the command:

And here is $ARG1$:

Anyone got any ideas where I am going wrong?

Thanks.

Pete.