CHECK_NRPE: Socket timeout after 20 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.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

find below outputs from client side.

[root@BUGZILLABCK ~]# ps auxw | grep nrpe
root 13783 0.0 0.0 103240 868 pts/0 S+ 15:07 0:00 grep nrpe

[root@BUGZILLABCK ~]# netstat -at | grep nrpe
tcp 0 0 bugzillabck:nrpe 10.174.0.38:45881 SYN_ RECV
tcp 0 0 bugzillabck:nrpe 10.174.0.38:45877 SYN_ RECV
tcp 0 0 bugzillabck:nrpe 10.174.0.38:45884 SYN_ RECV
tcp 0 0 bugzillabck:nrpe 10.174.0.38:45888 SYN_ RECV
tcp 0 0 bugzillabck:nrpe 10.174.0.38:45876 SYN_ RECV
tcp 0 0 bugzillabck:nrpe 10.174.0.38:45879 SYN_ RECV
tcp 0 0 *:nrpe *:* LISTEN


[root@BUGZILLABCK ~]# sestatus
SELinux status: disabled
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by Box293 »

From your remote server, can you please get these files and post them as attachments.
Please post them as attachments to prevent any copy / paste problems.

/etc/xinetd.d/nrpe
/usr/local/nagios/etc/nrpe.cfg
ALL Files in /usr/local/nagios/etc/nrpe/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi Box293,

Sorry for the delay. I have attached nrpe and nrpe.cfg conf files which you asked. I hope you will give positive response to me.
Attachments
nrpe.cfg.txt
(9.8 KiB) Downloaded 216 times
nrpe.txt
(489 Bytes) Downloaded 233 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by Box293 »

I believe this is your problem:

In your /etc/xinetd.d/nrpe file:

Code: Select all

only_from = 127.0.0.1 192.168.30.38[NagiosServer]
Change it to:

Code: Select all

only_from = 127.0.0.1 192.168.30.38
Then:

Code: Select all

service xinetd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi Box293,

I made a note for your reference only. Actual file is same as what you mentioned.

Kindly go through both files again let me know any changes. This issue is facing since 1month. plz do the needful.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by lmiltchev »

Are you using TCP wrappers? Do you have anything in "/etc/hosts.allow" or/and "/etc/hosts.deny"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

Where i need to check either server or client.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by tmcdonald »

If NRPE is blocking Nagios then you would want to check hosts.allow and hosts.deny on the NRPE machine.
Former Nagios employee
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

[root@BUGZILLABCK ~]# cat /etc/hosts.allow
#
# hosts.allow This file contains access rules which are used to
# allow or deny connections to network services that
# either use the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
nrpe: 192.168.30.38 son1840

***************************************************************
/etc/hosts.deny file is empty
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by abrist »

Are you using tcpd wrappers or xinetd?
What do your iptables rules look like?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked