Page 3 of 7

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Fri Oct 10, 2014 5:05 am
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

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Fri Oct 10, 2014 4:52 pm
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/

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Wed Oct 15, 2014 7:08 am
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.

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Wed Oct 15, 2014 9:44 am
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

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Thu Oct 16, 2014 12:08 am
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.

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Thu Oct 16, 2014 10:21 am
by lmiltchev
Are you using TCP wrappers? Do you have anything in "/etc/hosts.allow" or/and "/etc/hosts.deny"?

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Fri Oct 17, 2014 1:38 am
by kakaluru
Hi,

Where i need to check either server or client.

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Fri Oct 17, 2014 10:20 am
by tmcdonald
If NRPE is blocking Nagios then you would want to check hosts.allow and hosts.deny on the NRPE machine.

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Mon Oct 20, 2014 8:17 am
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

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Mon Oct 20, 2014 5:22 pm
by abrist
Are you using tcpd wrappers or xinetd?
What do your iptables rules look like?