Page 3 of 6

Re: Need plugin information

Posted: Mon Feb 18, 2013 4:09 pm
by CGraham
He means for you to post your NSC.ini but to obfuscate any information you might deem sensitive.

Re: Need plugin information

Posted: Mon Feb 18, 2013 5:12 pm
by scottwilkerson
thx CGraham

Re: Need plugin information

Posted: Tue Feb 19, 2013 9:35 am
by ravish78
attached

Re: Need plugin information

Posted: Tue Feb 19, 2013 9:57 am
by yancy
ravish78,

uncomment NRPEListener.dll

Code: Select all

[modules]

NSClientListener.dll
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NRPEListener.dll
also enable ssl under the [nrpe] section

Code: Select all

 use_ssl=1 
next restart service and see if nrpe can connect

Code: Select all

 ./check_nrpe -H 13.129.109.69 
-Yancy

Re: Need plugin information

Posted: Tue Feb 19, 2013 10:08 am
by ravish78
Done below steps as suggested.

Executed below commands on nagios server.

tmproot@usa0300lv846>./check_nrpe -H 13.129.109.69
CHECK_NRPE: Error - Could not complete SSL handshake.

tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40
CHECK_NRPE: Socket timeout after 10 seconds.


Note:
13.129.109.69-nagios server(linux)
13.118.27.40-nagios client (windows)

Re: Need plugin information

Posted: Tue Feb 19, 2013 10:35 am
by slansing
I just want to verify you are using a "NSC.INI" file and not trying to use a "NSC.TXT" file.

Re: Need plugin information

Posted: Tue Feb 19, 2013 11:17 am
by CGraham
I did a diff of your ini file to mine. Here's the differences.

NSClientListener.dll <-- this needs to be uncommented

[NSClient]
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon.
; If you leave this blank the global version will be used instead.
allowed_hosts=13.129.109.69
;
;# NSCLIENT PORT NUMBER
; This is the port the NSClientListener.dll will listen to.
port=5666 <---- This should be 12489

I think the issue is you have NSClient and NRPE trying to listen on the same port. Uncomment NSClientListener.dll, change the NSClient port to 12489, restart the service and try again.

Re: Need plugin information

Posted: Tue Feb 19, 2013 1:40 pm
by lmiltchev
To CGraham:
;# NSCLIENT PORT NUMBER
; This is the port the NSClientListener.dll will listen to.
port=5666 <---- This should be 12489
Nice catch! :)

To ravish78:

Let us know if CGraham's suggestion fixed your issue.

Re: Need plugin information

Posted: Tue Feb 19, 2013 1:48 pm
by CGraham
I've verified this on one of my servers. They bind in order, NSClient (check_nt agent) then the NRPE (check_nrpe agent). So your NRPE won't bind if you set them both to the same port.

Re: Need plugin information

Posted: Tue Feb 19, 2013 3:57 pm
by abrist
Eureka! Let us know if changing the port number for nsclient resolves your issues.