Page 8 of 15
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 1:12 pm
by ofadl
sorry, forgot to add the endings, so i ran this:
./check_nrpe -H 10.100.50.15 -c alias_cpu
and got this:
UNKNOWN: No handler for that command
and tried to run this:
./check_nt -H 10.100.50.15 -p 12489 PROCSTATE -1 explore.exe -d SHOWALL
and got this:
check_nt: Could not parse arguments
Usage:
check_nt -H host -v variable [-p port] [-w warning] [-c critical]
[-l params] [-d SHOWALL] [-u] [-t timeout]
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 1:15 pm
by slansing
Change the -1 to a -l as it is shown in the previous post.
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 1:28 pm
by ofadl
the host ip u specified, is that for the nagios server or for the remote host? Im getting the same output for remote host, even after changing the 1 to an l, then tried to run this:
./check_nt -H 10.200.40.96 -p 12489 -v PROCSTATE -l explorer.exe -d SHOWALL
and got :
Connection refused
could not fetch information from server
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 2:01 pm
by yancy
You need to uncomment NSClientListener.dll from NSC.ini if using check_nt
restart nsclientpp service once that line has been uncommitted.
-Yancy
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 2:32 pm
by ofadl
ok, i did that, and reset service and tried giving it another go, but now with an invalid password error when i run it.
./check_nt -H 10.100.50.15 -p 12489 -v PROCSTATE -l explorer.exe -d SHOWALL
NSClient - ERROR: Invalid password.
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 2:43 pm
by abrist
You need to specify a password.
Code: Select all
./check_nt -H 10.100.50.15 -p 12489 -s "password" -v PROCSTATE -l explorer.exe -d SHOWALL
You will also need to set that password in you nsclient conifg:
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 2:49 pm
by ofadl
ok i did and ran and got this:
Explorer.EXE: Running
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 3:04 pm
by abrist
Then it is working

Re: Check Windows Processes
Posted: Wed Jul 10, 2013 3:10 pm
by ofadl
correct, but that is not what i want. Like i mentioned earlier in the thread, i want specific services to be run, each server with specific processes. We used this to run:
./check_nrpe -H 10.100.50.15 -p 5666 -c check_procs_from_file -a
i just ran it, and got this:
Could not construct return packet in NRPE handler check client side (nsclient.log) logs...
i checked the log files, and got this as output:
2013-07-10 16:07:00: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.327 2011-08-16
2013-07-10 16:07:00: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: C:\Program Files\NSClient++\\nsclient.log
2013-07-10 16:07:00: error:modules\NRPEListener\NRPEListener.cpp:422: Request contained arguments (not currently allowed, check the allow_arguments option).
2013-07-10 16:07:00: error:modules\NRPEListener\NRPEListener.cpp:320: Exception handling NRPE packet
i remember you guys mentioning something about changing the argument to true, and even then after i changed it and did a reset, get the same error.
Re: Check Windows Processes
Posted: Wed Jul 10, 2013 3:16 pm
by yancy
Would the file with the list of processes be on Nagios? Or is this a file that exists on the Windows Server?
Was your former method used for Linux instead of Windows?
-Yancy