CHECK_NRPE: Socket timeout after 20 seconds.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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
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
- 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.
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/
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.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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.
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
- 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.
I believe this is your problem:
In your /etc/xinetd.d/nrpe file:
Change it to:
Then:
In your /etc/xinetd.d/nrpe file:
Code: Select all
only_from = 127.0.0.1 192.168.30.38[NagiosServer]
Code: Select all
only_from = 127.0.0.1 192.168.30.38
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.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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.
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.
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!
Re: CHECK_NRPE: Socket timeout after 20 seconds.
Hi,
Where i need to check either server or client.
Where i need to check either server or client.
Re: CHECK_NRPE: Socket timeout after 20 seconds.
If NRPE is blocking Nagios then you would want to check hosts.allow and hosts.deny on the NRPE machine.
Former Nagios employee
Re: CHECK_NRPE: Socket timeout after 20 seconds.
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
[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.
Are you using tcpd wrappers or xinetd?
What do your iptables rules look like?
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.
"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.