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.
Locked
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

My RHEL server is connected to Nagios server and it has running 14 services. All services status in Nagios server is showing as "CHECK_NRPE: Socket timeout after 20 seconds. "

Action done :
1. netstat -at | grep check_nrpe - Client side it's listening.

Kindly help me to resolve this.
Attachments
Reference attachment
Reference attachment
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by slansing »

I'd check out the common issues "timeout after n seconds" section here:

http://assets.nagios.com/downloads/nagi ... utions.pdf

It was written more from XI's perspective, but it will still work fine for Core.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Thx for response slan

Let me know where i can get "configure" Tab on my nagios core home page.
Attachments
configure Tab
configure Tab
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by slansing »

You cannot get it in Core, as I was mentioning, the document was written for Nagios XI, but the changes you can make to commands, services, and generally everything mentioned in it, can be done with Core. The only thing is you need to do them manually with your .cfg files instead of using the web frontend that XI gives you.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

I made the changes but still the issue is existing.

I hope it might be any network issue. can you plz guide me to resolve this.
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 »

Is port 5666 open? Run the following commands from the CLI on the nagios server and show us the output:

Code: Select all

./check_nrpe -H <client ip>
nmap <client ip> -p 5666
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,
Below is the output.

[root@nagiosserver]# nmap -p 5666 10.174.16.11(client ip)

Starting Nmap 5.51 ( http://nmap.org ) at 2014-09-26 12:01 IST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for BUGZILLABCK (10.174.16.11)
Host is up (0.039s latency).
PORT STATE SERVICE
5666/tcp filtered nrpe


Nmap done: 1 IP address (1 host up) scanned in 0.54 seconds
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by sreinhardt »

Filtered generally means that nmap got a valid connection, but was rejected from any further communication. Do you have the nagios system added to the allowed_hosts directive in /etc/xinet.d/nrpe? If so, have you restarted xinetd (service xinetd restart)? Has this worked ever, or is this a new setup and you are still trying to get it working for the first time?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

cat /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 192.168.30.38[NagiosServer]
}
[root@BUGZILLABCK ~]# service xinetd status
xinetd (pid 24981) is running...
[root@BUGZILLABCK ~]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@BUGZILLABCK ~]# service xinetd status
xinetd (pid 5197) is running...

After performing above action also i am facing same issue. ******CHECK_NRPE: Socket timeout after 20 seconds.******
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by sreinhardt »

OK, that looks good for xinetd profile. How about iptables?

Code: Select all

iptables -L -n
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked