Page 10 of 15

Re: Check Windows Processes

Posted: Thu Jul 11, 2013 1:29 pm
by ofadl
in the NSClient++ folder

Re: Check Windows Processes

Posted: Thu Jul 11, 2013 1:38 pm
by lmiltchev
It should be in "C:\Program Files\NSClient++\scripts".

Re: Check Windows Processes

Posted: Thu Jul 11, 2013 1:46 pm
by ofadl
ok, i added the file check_process_instances_from_file.wsf into C:\Program Files\NSClient++\scripts. Ran again :

./check_nrpe -H 10.100.50.15 -p 5666 -c check_procs_from_file -a c:\Program Files\NSClient++\scripts\\host.proclist.txt

and got :

ExternalCommands: failed to create process (scripts\cscript.exe //NoLogo //T:60 scripts\check_process_instances_from_file.wsf $ARG1$): 2: The system cannot find the file specified.

Re: Check Windows Processes

Posted: Fri Jul 12, 2013 9:35 am
by sreinhardt
./check_nrpe -H 10.100.50.15 -p 5666 -c check_procs_from_file -a c:\Program Files\NSClient++\scripts\\host.proclist.txt

Needs to be changed to:

./check_nrpe -H 10.100.50.15 -p 5666 -c check_procs_from_file -a "C:\Program Files\NSClient++\scripts\host.proclist.txt"

The C in C:\ must be capitol, and since program files has a space it must be quoted. Also are you certain that the user nsclient is running as has access to this file?

Re: Check Windows Processes

Posted: Fri Jul 12, 2013 11:00 am
by ofadl
i am still getting the same error, with the capitalized C and the quotation marks. Also, what do you mean by the user nsclient running has access to this file??

Re: Check Windows Processes

Posted: Fri Jul 12, 2013 2:08 pm
by abrist
ofadl wrote:i am still getting the same error, with the capitalized C and the quotation marks.
Could you post the current version of your command?
ofadl wrote:Also, what do you mean by the user nsclient running has access to this file??
If the file is owned by a different user that the user that nsclient is running as, and the nsclient user does not have privileges to that file, then nsclient will not be able to check it. What user is nsclient running as? What permissions are on the file in question?

Re: Check Windows Processes

Posted: Fri Jul 12, 2013 3:12 pm
by ofadl
./check_nrpe -H 10.100.50.15 -p 5666 -c check_procs_from_file -a "C:\Program Files\NSClient++\scripts\host.proclist.txt"

how do i check what user the nsclient is running as / and the permissions that are on that file?

Re: Check Windows Processes

Posted: Mon Jul 15, 2013 9:24 am
by abrist
Right click on the file in windows, select "properties" and then click the security tab.

Re: Check Windows Processes

Posted: Tue Jul 16, 2013 8:55 am
by ofadl
ok so the users in the security tab of the properties of the file are as follows:

Administrator(SFINP204\Administrators)
Power Users(SFINP204/Power Users)
SYSTEM
TERMINAL SERVER USER
USERS(SFINP204/USRRS)


P.S SFINP204 is the server im trying to monitor the processes

Re: Check Windows Processes

Posted: Tue Jul 16, 2013 10:27 am
by abrist
That looks about right, but for now, give "everyone" full access to the file just for testing purposes.