Check_nrpe .... Socket timeout after 10 seconds.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
samton99
Posts: 45
Joined: Wed Jun 13, 2012 9:53 am

Check_nrpe .... Socket timeout after 10 seconds.

Post 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 :?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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++.
samton99
Posts: 45
Joined: Wed Jun 13, 2012 9:53 am

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

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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?
samton99
Posts: 45
Joined: Wed Jun 13, 2012 9:53 am

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

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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.
samton99
Posts: 45
Joined: Wed Jun 13, 2012 9:53 am

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

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