Page 1 of 1

Check_nrpe .... Socket timeout after 10 seconds.

Posted: Wed Jun 13, 2012 10:01 am
by samton99
Hello,

After looking everywhere on the net I came across this issue. When I check nrpe with the folowing command

/usr/local/nagios/libexec/check_nrpe -H localhost error message
CHECK_NRPE: Socket timeout after 10 seconds.

I discovered it has to do with ssl. Then I tried this command
/usr/local/nagios/libexec/check_nrpe -n -H localhost
and I get the nrpe version means it works.

So i found out through searching the net that I needed the ssl support in nrpe configured.

So I downloaded all the necessary packages and installed them. Then I re ran the nagios plugins and nrpe installation with the ssl option witht he following command
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu

Everything seems to be fine. I ran into the same problem again.

What am I missing? Any help would be appreciated.
Thanks
Ubuntu 12.04 LTS :?

Re: Check_nrpe .... Socket timeout after 10 seconds.

Posted: Wed Jun 13, 2012 10:15 am
by slansing
This error does not always have to do with SSL issues. It could be that a firewall is blocking the connection, or a port is not opened or configured correctly. Have you made sure that it is neither of these? Also check to make sure that the service is running correctly. If it is a windows machine you are monitoring, enter command prompt and input:

Code: Select all

services nscp stop
services nscp start
- Assuming you are using the most recent version as the commands have changed

Then make sure that the service is running by either right clicking Computer > Manage > Services. or Ctrl + Alt + Del and selecting the services tab and searching for NSClient++.

Re: Check_nrpe .... Socket timeout after 10 seconds.

Posted: Wed Jun 13, 2012 10:21 am
by samton99
Sorry my mistake I wasn't clear enough.

I am setting up the nagios server on Ubuntu 12.04LTS.

I have not even started monitoring systems yet. I am trying to setup nagios server itself.

I eventually will monitor a linux smoothwall firewall eventually. This is the reason for setting this up.

I am receiving these errors on the nagios monitoring server.

Re: Check_nrpe .... Socket timeout after 10 seconds.

Posted: Wed Jun 13, 2012 10:42 am
by slansing
Have you made sure that there is a rule to let the check through iptables? And that it is configured though xinetd correctly?

Re: Check_nrpe .... Socket timeout after 10 seconds.

Posted: Wed Jun 13, 2012 10:53 am
by samton99
I have not added a rule to the iptables, How do I do this?

I am pretty sure I did the xinetd, can you tell me how should check it to make sure?

Re: Check_nrpe .... Socket timeout after 10 seconds.

Posted: Wed Jun 13, 2012 10:57 am
by slansing
Yes all of that information is within this document:

http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

If you search "Open Firewall Rules," and "xinetd" you should find what you seek.

Re: Check_nrpe .... Socket timeout after 10 seconds.

Posted: Thu Jun 14, 2012 12:46 pm
by samton99
Well... what i did is run the nrpe install without ssl with this command

./configure -–enable-command-args -–disable-ssl

and it is working fin enow.


thanks