CHECK_NRPE: Socket timeout after 30 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
nikhildhule
Posts: 2
Joined: Tue Feb 07, 2017 12:23 am

CHECK_NRPE: Socket timeout after 30 seconds.

Post by nikhildhule »

Hi Everyone,
Can you please help with the issue related to check_nrpe socket timout?

nagios Server: systemb (RHEL6.2) (10.146.1.100)
nagios Host: systema (Solaris 10) (10.146.1.37)

I tired all the solution provided by standard troubleshooting guideline but still facing the socket timeout issue.

1. Increase Socket Timeout: “connection_timeout=300” and ommand_timeout=60 seconds
2. restart service at server machine: service xinetd status/stop/start
3. check nrpe process: ps -aef | grep nrpe
4. port setting are enabled at both the ends.


Issue I'm facing:

On server machine: 10.146.1.100
command: /usr/local/nagios/libexec/check_nrpe -H 10.146.1.37

Output is : CHECK_NRPE: Socket timeout after 30 seconds.

On host machine: 10.146.1.37
command: /usr/local/nagios/libexec/check_nrpe -H 10.146.1.100

Output is: NRPE v2.14


Please provide me solution for this one directional connection issue?
Also let me know what additional settings/configurations needed to be done to resolve this issue?

Regards,
Nikhil
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: CHECK_NRPE: Socket timeout after 30 seconds.

Post by rkennedy »

Code: Select all

On server machine: 10.146.1.100
command: /usr/local/nagios/libexec/check_nrpe -H 10.146.1.37

Output is : CHECK_NRPE: Socket timeout after 30 seconds.
Is there a reason you're trying to query the host from the server? Generally speaking, the host will just be reaching out to poll the client. I just want to make sure you understand the use of NRPE properly. It appears to be working fine from your host machine to the client, which is what I'd expect.

From the host machine, what is the output of these commands?

Code: Select all

netstat -nap
ps -ef | grep nrpe
From the server machine, what is the output of the following?

Code: Select all

nmap 10.146.1.37
Former Nagios Employee
nikhildhule
Posts: 2
Joined: Tue Feb 07, 2017 12:23 am

Re: CHECK_NRPE: Socket timeout after 30 seconds.

Post by nikhildhule »

Hi,
Please find the output of the following commands

On Host:
root@ssbpEch03:/# netstat -nap
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- -------- ---------------
vnet0 224.0.0.22 255.255.255.255 01:00:5e:00:00:16
vnet0 10.146.1.31 255.255.255.255 o 00:14:4f:fb:f2:f8
vnet0 10.146.1.23 255.255.255.255 00:14:4f:fb:26:63
vnet0 10.146.1.13 255.255.255.255 o 00:14:4f:f8:b7:ea
vnet0 10.146.1.1 255.255.255.255 o 00:10:db:ff:20:60
vnet0 10.146.1.121 255.255.255.255 o 00:14:4f:fb:26:63
vnet0 10.146.1.122 255.255.255.255 o 00:14:4f:fb:c5:2f
vnet0 10.146.1.100 255.255.255.255 o 00:21:28:bc:10:10
vnet1 10.127.8.44 255.255.255.255 SPLA 00:14:4f:fb:8f:f5
vnet0 10.146.1.35 255.255.255.255 o 00:14:4f:f9:ef:6a
vnet1 10.127.63.246 255.255.255.255 18:ef:63:e9:9b:c2
vnet0 10.146.1.37 255.255.255.255 SPLA 00:14:4f:fa:61:de
vnet1 10.127.63.245 255.255.255.255 o 00:00:0c:07:ac:7f
vnet1 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00
vnet0 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00

root@ssbpEch03:/# ps -ef | grep nrpe
nagios 2596 410 0 03:54:11 ? 0:00 nrpe -c /usr/local/nagios/etc/nrpe.cfg -i -n
root 2613 2443 0 03:54:40 pts/1 0:00 grep nrpe
nagios 2598 410 0 03:54:30 ? 0:00 nrpe -c /usr/local/nagios/etc/nrpe.cfg -i -n
nagios 2597 410 0 03:54:22 ? 0:00 nrpe -c /usr/local/nagios/etc/nrpe.cfg -i -n
nagios 2611 410 0 03:54:40 ? 0:00 nrpe -c /usr/local/nagios/etc/nrpe.cfg -i -n


on server machine:
nmap 10.146.1.37 does not work

bash-4.1# nmap 10.146.1.37
-bash: nmap: command not found
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: CHECK_NRPE: Socket timeout after 30 seconds.

Post by rkennedy »

Could you please answer my question? I was asking about your logic here.
Is there a reason you're trying to query the host from the server? Generally speaking, the host will just be reaching out to poll the client. I just want to make sure you understand the use of NRPE properly. It appears to be working fine from your host machine to the client, which is what I'd expect.
Secondly, I don't know Solaris very well, but could you verify that the host machine is listening on port 5666 and show us? Also, please post /usr/local/nagios/etc/nrpe.cfg for us to review.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CHECK_NRPE: Socket timeout after 30 seconds.

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
Locked