Page 5 of 6
Re: Need plugin information
Posted: Tue Mar 05, 2013 4:06 pm
by ravish78
attached nsc.ini file
Re: Need plugin information
Posted: Tue Mar 05, 2013 4:59 pm
by slansing
What happens when you run the following command, it is the nrpe windows memory check but without the alias:
Code: Select all
./check_nrpe -H IP.OF.WINDOWS.BOX -p 5666 -t 30 -c check_mem -a '-w 20 -c 10'
Re: Need plugin information
Posted: Wed Mar 06, 2013 4:11 pm
by ravish78
tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40 -p 5666 -t 30 -c check_mem -a '-w 20 -c 10'
CHECK_NRPE: Socket timeout after 30 seconds.
Re: Need plugin information
Posted: Wed Mar 06, 2013 5:31 pm
by abrist
Have you tried passing the "no ssl " switch with check_nrpe?
Code: Select all
./check_nrpe -H 13.118.27.40 -p 5666 -t 30 -n -c check_mem -a '-w 20 -c 10'
I ask because ssl is disabled in your nsc.ini file.
Re: Need plugin information
Posted: Wed Mar 06, 2013 5:49 pm
by lmiltchev
2013-03-05 16:02:27: message:modules\NRPEListener\NRPEListener.cpp:370: Could not read a full NRPE packet from socket, only got: 65
Are you sure that nothing else (besides nsclient++) is using port 5666? Can you stop the nsclient++ service, and run in the DOS Command Prompt:
Re: Need plugin information
Posted: Fri Mar 08, 2013 2:30 pm
by ravish78
When stopping nsclient++ and running netstat yield nothing.Nothing runs on this port apart from nsclient++
with no ssl command belwo is the output
tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40 -n -p 5666 -t 30 -n -c check_mem -a '-w 20 -c 10'
UNKNOWN: No handler for that command
Re: Need plugin information
Posted: Fri Mar 08, 2013 2:50 pm
by abrist
First of all, enable ssl in your nsc.ini.
ravish78 wrote:
tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40 -n -p 5666 -t 30 -n -c check_mem -a '-w 20 -c 10'
UNKNOWN: No handler for that command
It does not look like you have a handler configured in your nsc.ini for the check_mem command. Try this command from the command line (note: I removed the "-n" as you should have ssl enabled at this point, if not, add the "-n" to the command):
Code: Select all
./check_nrpe -H 13.118.27.40 -n -p 5666 -t 30 -c checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page
If it works, you just have to create a handler in nsc.ini for it and edit it to your tastes:
Code: Select all
check_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page
Re: Need plugin information
Posted: Tue Mar 12, 2013 10:10 am
by ravish78
getting below output
tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40 -n -p 5666 -t 30 -c checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page
ERROR: Missing argument exception.
Re: Need plugin information
Posted: Tue Mar 12, 2013 10:20 am
by abrist
Are you using ssl (did you enable it as per my last post)? I ask because your command still included the "-n" . . .
Re: Need plugin information
Posted: Tue Mar 12, 2013 10:21 am
by slansing
You need to add an argument flag to that check like so:
Code: Select all
./check_nrpe -H 13.118.27.40 -n -p 5666 -t 30 -c checkMem -a MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page