Page 2 of 2
Re: check_nrpe socket timeout after n seconds
Posted: Sun Sep 23, 2012 12:15 pm
by manish2tiwari
Hi Scott,
The below settings didn't work
Is there anything else i might missing?
Re: check_nrpe socket timeout after n seconds
Posted: Sun Sep 23, 2012 2:56 pm
by scottwilkerson
To see if we are barking up the right tree, could we stop iptables temporarily
and run the following from the Nagios Server
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H host.ip.address.here
then to re-enable iptables
Re: check_nrpe socket timeout after n seconds
Posted: Mon Sep 24, 2012 6:24 am
by manish2tiwari
Hi Scott,
I stopped the iptables then:
When i ran /usr/local/nagios/libexec/check_nrpe -H host.ip.address.here , below are the results i got:
IF host.ip.address = NAGIOS IP ADDRESSS , it is showing couldn't complete SSL handshake
IF host.ip.address = Target server which i want to monitor, it is showing socket timeout.
IF host.ip.address = localhost, it is showing NRPE v2.12.
Then I started the iptables.
Thanks,
Manish
Re: check_nrpe socket timeout after n seconds
Posted: Mon Sep 24, 2012 1:56 pm
by scottwilkerson
manish2tiwari wrote:IF host.ip.address = Target server which i want to monitor, it is showing socket timeout.
This is the one we are interested in and it appears something is blocking between the 2 machines.
Can you ping the target server from your XI server?
Re: check_nrpe socket timeout after n seconds
Posted: Mon Sep 24, 2012 5:01 pm
by manish2tiwari
Hi Scott,
yes, we are able to ping the target server from our Nagios Server.
thanks
Re: check_nrpe socket timeout after n seconds
Posted: Tue Sep 25, 2012 7:31 am
by scottwilkerson
Next step, letstry to connect to port 5666 with telnet from the XI server
Re: check_nrpe socket timeout after n seconds
Posted: Tue Sep 25, 2012 11:10 am
by manish2tiwari
Hi Scott,
Telnet saying:
telnet: connect to address **************** : Connection timed out
telnet: Unable to connect to remote host: Connection timed out
Thanks,
Manish
Re: check_nrpe socket timeout after n seconds
Posted: Tue Sep 25, 2012 11:15 am
by scottwilkerson
Ok, so earlier I had you run this on the remote machine
Which you did and the port was open.
So if you cannot telnet to the port you must have a firewall somewhere between the 2 machines that is blocking port 5666
Re: check_nrpe socket timeout after n seconds
Posted: Tue Sep 25, 2012 12:57 pm
by manish2tiwari
Hi Scott,
the machine which i am trying to connect is showing below results FOR netstat -lnp |grep 5666:
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 31397/nrpe
Thanks,
Manish
Re: check_nrpe socket timeout after n seconds
Posted: Tue Sep 25, 2012 1:09 pm
by scottwilkerson
Correct. So it is listening, but as per your telnet test you cannot connect to that port, which means that there is something blocking the port between the 2 machines, like a firewall or router configuration..