Page 1 of 1

Connection Refused NRPE

Posted: Thu Jan 03, 2019 9:32 am
by nexusguy59
Hey Guys,

I have been wrestling with this since 3 am this morning. I am trying this to confirm that NRPE is working properly -> /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_load and i am getting this ->
connect to address 127.0.0.1 port 5666: Connection refused
connect to host 127.0.0.1 port 5666: Connection refused

Here is the config line regarding this
server_address=192.xxx.xxx.xxx
allowed_hosts=127.0.0.1,192.xxx.xxx.xxx

firewall is not on/started so I know that's not it. Also I am on an Ubuntu Server 18.04 LTS

Let me know please,
Thanks,

Re: Connection Refused NRPE

Posted: Thu Jan 03, 2019 12:52 pm
by benjaminsmith
Hello @nexusguy59

Please verify that you've added your Nagios server address in the NRPE configuration file /usr/local/nagios/etc/nrpe.cfg. So if your Nagios core server is 192.168.1.1, edit the following line:

Code: Select all

allowed_hosts=127.0.0.1, 192.168.1.1
Then run a nmap scan to verify that port 5666 is open:

Code: Select all

nmap <remote host ip> -Pn -p 5666s
NRPE - Connection Refused Or Timed Out
https://support.nagios.com/kb/article/n ... t-626.html

Let me know if you're able to get it resolved.