CHECK_NRPE: Socket timeout after 20 seconds.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Hi srein find below out put
[root@BUGZILLABCK ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Everything is fine but i don't know the reasons to get CHECK_NRPE: Socket timeout after 20 seconds error
Whether this is any
1. Nagios server issue
2. Nagios client issue
3. Network issue
4. Other issue
[root@BUGZILLABCK ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Everything is fine but i don't know the reasons to get CHECK_NRPE: Socket timeout after 20 seconds error
Whether this is any
1. Nagios server issue
2. Nagios client issue
3. Network issue
4. Other issue
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Did you run the following command on the Nagios server or on the client?
Can you temporarily disable the iptables on both boxes for testing purposes and try your check again?
Also, did you add the "[NagiosServer]" to the "only_from" line for the "clarity" sake or you actually have this line in the "/etc/xinetd.d/nrpe"?
What is the output from running the following command on the nagios server?
Code: Select all
iptables -L -n
Also, did you add the "[NagiosServer]" to the "only_from" line for the "clarity" sake or you actually have this line in the "/etc/xinetd.d/nrpe"?
Code: Select all
only_from = 127.0.0.1 192.168.30.38[NagiosServer]
Code: Select all
./check_nrpe -H <client ip>
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Hi,
We have multiple client servers. So, We specified in client as
only_form=127.0.0.1 192.168.30.38.....Is there any mistake ????
Below is the client status on nagios server.
[root@nagiosserver]# nmap -p 5666 10.174.16.11(client ip)
Starting Nmap 5.51 ( http://nmap.org ) at 2014-10-01 09:30 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
We have multiple client servers. So, We specified in client as
only_form=127.0.0.1 192.168.30.38.....Is there any mistake ????
Below is the client status on nagios server.
[root@nagiosserver]# nmap -p 5666 10.174.16.11(client ip)
Starting Nmap 5.51 ( http://nmap.org ) at 2014-10-01 09:30 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
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Did you restart xinetd after specifying:
?
Additionally, there is a typo in that line:
Should be:
Code: Select all
only_form=127.0.0.1 192.168.30.38
Additionally, there is a typo in that line:
Code: Select all
only_form=127.0.0.1 192.168.30.38
Code: Select all
only_from=127.0.0.1 192.168.30.38
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.
"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.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Hi,
only_form its my mistake while typing but its perfect in conf file.
Can any one help to resolve my issue ????
only_form its my mistake while typing but its perfect in conf file.
Can any one help to resolve my issue ????
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Yes, we have been trying to assist you.
Looks like 5666 may not be open, nmap shows it as filtered rather than open. I'd check that as it could be the culprit.5666/tcp filtered nrpe
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Thanks slan
Let me know the necessary action to show the status as open for 5666/tcp
Let me know the necessary action to show the status as open for 5666/tcp
Re: CHECK_NRPE: Socket timeout after 20 seconds.
That would be a configuration that needs to be made on the remote machine. Could the admin of the remote machine be contacted about opening port 5666 for connections?
Former Nagios employee
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Hi,
Kindly check earlier posts
1. No. 9 for nrpe status for 5666/tcp on remote machine .
2. No. 10 for iptables status for 5666/tcp on remote machine.
Let me know any modifications on nrpe conf file.
Kindly check earlier posts
1. No. 9 for nrpe status for 5666/tcp on remote machine .
2. No. 10 for iptables status for 5666/tcp on remote machine.
Let me know any modifications on nrpe conf file.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Can you run the following commands on the client (remote box) and show us the output?
Code: Select all
ps axuw | grep nrpe
netstat -at | grep nrpe
sestatus
Be sure to check out our Knowledgebase for helpful articles and solutions!