CHECK_NRPE: Socket timeout after 20 seconds.
CHECK_NRPE: Socket timeout after 20 seconds.
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.
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.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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.
http://assets.nagios.com/downloads/nagi ... utions.pdf
It was written more from XI's perspective, but it will still work fine for Core.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Thx for response slan
Let me know where i can get "configure" Tab on my nagios core home page.
Let me know where i can get "configure" Tab on my nagios core home page.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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.
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.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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!
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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
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
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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.******
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.******
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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.