Need plugin information
Re: Need plugin information
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
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
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.
CHECK_NRPE: Socket timeout after 30 seconds.
Re: Need plugin information
Have you tried passing the "no ssl " switch with check_nrpe?
I ask because ssl is disabled in your nsc.ini file.
Code: Select all
./check_nrpe -H 13.118.27.40 -p 5666 -t 30 -n -c check_mem -a '-w 20 -c 10'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.
"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.
Re: Need plugin information
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:2013-03-05 16:02:27: message:modules\NRPEListener\NRPEListener.cpp:370: Could not read a full NRPE packet from socket, only got: 65
Code: Select all
netstat -an | Find "5666"Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Need plugin information
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
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
First of all, enable ssl in your nsc.ini.
If it works, you just have to create a handler in nsc.ini for it and edit it to your tastes:
Code: Select all
line 137: use_ssl=1It 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):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
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=pageCode: Select all
check_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=pageFormer 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.
"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.
Re: Need plugin information
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.
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
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.
"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
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