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.
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

CHECK_NRPE: Socket timeout after 30 seconds

Post by miyappan »

hi ,

i have configured nagios server. then i have added client machine into the nagios server but after adding client machine i am getting error.Please find the attachment.

CHECK_NRPE: Socket timeout after 30 seconds.
Attachments
Nagios Chech NRPE.PNG
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by nozlaf »

try and turn selinux off on both machines
echo 0 >/selinux/enforce
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by bwallace »

Just want to add that if the previous suggestion does not resolve the issue, then follow the steps outlined in this doc. Section IV addresses this situation directly.

https://assets.nagios.com/downloads/nag ... utions.pdf
Be sure to check out the Knowledgebase for helpful articles and solutions!
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by miyappan »

nozlaf wrote:try and turn selinux off on both machines
echo 0 >/selinux/enforce

Still i am facing the same issue.
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by miyappan »

bwallace wrote:Just want to add that if the previous suggestion does not resolve the issue, then follow the steps outlined in this doc. Section IV addresses this situation directly.

https://assets.nagios.com/downloads/nag ... utions.pdf
still i am facing the same issue.
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by miyappan »

still i am facing the same issue.anyone can help on this.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by rkennedy »

Can you please post your service definition from the Nagios machine, and your NRPE configuration file from the client machine?

Also, on the client machine please run netstat -anp|grep 5666, and on the Nagios machine run nmap ipofclientmachine - post both results back here.
Former Nagios Employee
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by miyappan »

rkennedy wrote:Can you please post your service definition from the Nagios machine, and your NRPE configuration file from the client machine?

Also, on the client machine please run netstat -anp|grep 5666, and on the Nagios machine run nmap ipofclientmachine - post both results back here.
Hi , please find the below updates.
client machine :

[root@ept74 ~]# netstat -anp|grep 5666
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 24017/nrpe
tcp 0 0 :::5666 :::* LISTEN 24017/nrpe

Nagios Machine :

[root@AIPL-CHE-NAGIOS ~]# nmap 192.168.100.21

Starting Nmap 5.51 ( http://nmap.org ) at 2016-03-07 12:07 IST
Nmap scan report for 192.168.100.21
Host is up (0.0080s latency).
Not shown: 995 filtered ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp closed http
113/tcp closed auth
443/tcp closed https
8080/tcp closed http-proxy

Nmap done: 1 IP address (1 host up) scanned in 4.76 seconds
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by miyappan »

Hi , please find the below updates.
client machine :

[root@ept74 ~]# netstat -anp|grep 5666
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 24017/nrpe
tcp 0 0 :::5666 :::* LISTEN 24017/nrpe

Nagios Machine :

[root@AIPL-CHE-NAGIOS ~]# nmap 192.168.100.21

Starting Nmap 5.51 ( http://nmap.org ) at 2016-03-07 12:07 IST
Nmap scan report for 192.168.100.21
Host is up (0.0080s latency).
Not shown: 995 filtered ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp closed http
113/tcp closed auth
443/tcp closed https
8080/tcp closed http-proxy

Nmap done: 1 IP address (1 host up) scanned in 4.76 seconds
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: CHECK_NRPE: Socket timeout after 30 seconds

Post by hsmith »

Can you please try the following?

On the Nagios server:

Code: Select all

yum -y install telnet
telnet 192.168.100.21 5666
Former Nagios Employee.
me.
Locked