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.
I´ve found a solution posted on another board where a reference is made to "c:\nrpe\bin". i don´t have an NRPE folder but only the NSClient++ dir under program files. With which program can i test the script local?
You were so close, the command should look something like this:
command[check_windows_updates]=cscript.exe //T:30 //NoLogo scripts\check_windows_updates.wsf /w:0 /c:1
The command[] part is optional, I normally leave it in to keep it in line with the Linux NRPE, cscript acts as a wrapper for executing the script the //T:30 is a 30 second time out for the script and NoLogo suppresses some unnecessary cscript output. The scripts\scriptname is the path to the script, you could alternatively use "C:\Program Files\NSClient++\scripts\check_windows_updates.wsf" explicitly if you didn't want to use a relative path.
thank you. Now i got the command tested and running local. Can you tell me with which plugin on the nagios-server can i test the functionality? Is it check_nrpe? since i read that nrpe is integrated in nsclient++