Need plugin information

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need plugin information

Post by ravish78 »

attached nsc.ini file
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Need plugin information

Post 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'
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need plugin information

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Need plugin information

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need plugin information

Post 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:

Code: Select all

netstat -an | Find "5666"
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need plugin information

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Need plugin information

Post by abrist »

First of all, enable ssl in your nsc.ini.

Code: Select all

line 137:  use_ssl=1
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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need plugin information

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Need plugin information

Post by abrist »

Are you using ssl (did you enable it as per my last post)? I ask because your command still included the "-n" . . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Need plugin information

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