Page 1 of 1

Windows monitoring using NSClient++

Posted: Thu Sep 27, 2012 10:53 am
by sreesha
Hi,

Can someone please tell me how to add a new custom script(bat/vbs) to monitor on a windows machine.
I have NSClient++ Installed. Please tell me where the script needs to be added and where the configuration needs to be made to call this script.
I have a vague understanding that the script needs to be in the scripts folder under NSClient++ and the configurations need to be made under NSC.ini file.. but i'm not clear on how this needs to be done.. what should the commands be to call these scripts and where exactly in the .ini file should these commands be written.

Re: Windows monitoring using NSClient++

Posted: Sat Sep 29, 2012 10:40 pm
by mmccune
Put the script under the scripts directory under the nsclient++ directory. Add this to the NSC.ini:

command[Name_of_command]=scripts\name_of_command.bat $ARG1$ $ARG2$

Re: Windows monitoring using NSClient++

Posted: Mon Oct 01, 2012 2:59 pm
by slansing
The above is correct, for more detail please visit:

http://www.nsclient.org/nscp/wiki/NRPEListener

And look at the NRPE Handler section.