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.
Windows monitoring using NSClient++
Re: Windows monitoring using NSClient++
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$
command[Name_of_command]=scripts\name_of_command.bat $ARG1$ $ARG2$
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Windows monitoring using NSClient++
The above is correct, for more detail please visit:
http://www.nsclient.org/nscp/wiki/NRPEListener
And look at the NRPE Handler section.
http://www.nsclient.org/nscp/wiki/NRPEListener
And look at the NRPE Handler section.