This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
manish2tiwari
Posts: 31 Joined: Thu Sep 13, 2012 12:48 pm
Post
by manish2tiwari » Sun Sep 23, 2012 12:15 pm
Hi Scott,
The below settings didn't work
Is there anything else i might missing?
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Sun Sep 23, 2012 2:56 pm
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
manish2tiwari
Posts: 31 Joined: Thu Sep 13, 2012 12:48 pm
Post
by manish2tiwari » Mon Sep 24, 2012 6:24 am
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
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Mon Sep 24, 2012 1:56 pm
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?
manish2tiwari
Posts: 31 Joined: Thu Sep 13, 2012 12:48 pm
Post
by manish2tiwari » Mon Sep 24, 2012 5:01 pm
Hi Scott,
yes, we are able to ping the target server from our Nagios Server.
thanks
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Sep 25, 2012 7:31 am
Next step, letstry to connect to port 5666 with telnet from the XI server
manish2tiwari
Posts: 31 Joined: Thu Sep 13, 2012 12:48 pm
Post
by manish2tiwari » Tue Sep 25, 2012 11:10 am
Hi Scott,
Telnet saying:
telnet: connect to address **************** : Connection timed out
telnet: Unable to connect to remote host: Connection timed out
Thanks,
Manish
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Sep 25, 2012 11:15 am
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
manish2tiwari
Posts: 31 Joined: Thu Sep 13, 2012 12:48 pm
Post
by manish2tiwari » Tue Sep 25, 2012 12:57 pm
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
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Sep 25, 2012 1:09 pm
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..