Windows monitoring using NSClient++

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sreesha
Posts: 19
Joined: Wed Jun 13, 2012 12:18 pm

Windows monitoring using NSClient++

Post 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.
mmccune
Posts: 3
Joined: Sat Sep 29, 2012 4:56 pm

Re: Windows monitoring using NSClient++

Post 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$
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Windows monitoring using NSClient++

Post 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.
Locked