Page 2 of 2

Re: port 5666: Connection refused SAVE ME , I tried everythi

Posted: Wed Feb 14, 2018 3:56 pm
by lmiltchev
Is 192.168.0.93 the correct IP address of your nagios server? Have you restarted xinetd after modifying the nrpe file, so that the changes can take effect? have you tried stopping the iptables temporarily just in case, and running your check again?

Re: port 5666: Connection refused SAVE ME , I tried everythi

Posted: Mon Feb 19, 2018 9:28 pm
by pohlin
yes 192.168.0.93 is the correct ip adress of the nagios server.
Yup, restarted.
tried stopping iptables ,output still the same.

Re: port 5666: Connection refused SAVE ME , I tried everythi

Posted: Tue Feb 20, 2018 5:05 pm
by lmiltchev
Are you using TCP wrappers? Do you have host.allow or host.deny configured on this system? Run the following commands on the remote box, and show the output:

Code: Select all

ip a
uname -a
cat /etc/*release
netstat -anp | grep 5666
/usr/local/nagios/bin/nrpe -V
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
Also, upload the nrpe.cfg file on the forum. Thank you!

Re: port 5666: Connection refused SAVE ME , I tried everythi

Posted: Tue Feb 20, 2018 8:52 pm
by pohlin
im sorry, i am new to everything..so i dont know if im using a tcp wrapper or not, and also dont know i have host.deny or host.allow... :cry:
here are the screenshot and file, thank you for trying to help me
n1.png
n2.png
nrpe.cfg
(7.05 KiB) Downloaded 510 times

Re: port 5666: Connection refused SAVE ME , I tried everythi

Posted: Wed Feb 21, 2018 1:27 pm
by npolovenko
@pohlin, I looked at your nrpe.cfg config file and the line:

Code: Select all

allowed_hosts=127.0.0.1
Doesn't have the entry for the Nagios server. Please change it to:

Code: Select all

allowed_hosts=127.0.0.1,192.168.0.93
Exit out of the file and restart nrpe with:

Code: Select all

service nrpe restart
Then, from the nagios server run the following command:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.0.137

Re: port 5666: Connection refused SAVE ME , I tried everythi

Posted: Thu Feb 22, 2018 7:56 am
by pohlin
HI everyone ,thank you so much for helping me, but i've moved on to install nagios core on an real server, ubuntu 14.04, and i am still facing connection refuse issue. i have posted a new thread : https://support.nagios.com/forum/viewto ... 20&t=47623

Re: port 5666: Connection refused SAVE ME , I tried everythi

Posted: Thu Feb 22, 2018 11:17 am
by tmcdonald
I will be closing this thread and we will continue in the other.