Page 2 of 2

Re: Port 5666 : connection refused

Posted: Thu May 28, 2020 2:42 pm
by gormank
Did you check the post by ssax above about nrpe being installed?

Re: Port 5666 : connection refused

Posted: Thu May 28, 2020 3:04 pm
by benjaminsmith
Hello,
On the remote server, it doesn't find me anything
It doesn't look like the NRPE service is installed and running properly on the remote hosts. If the following command does not return anything,

Code: Select all

find / -name nrpe.cfg
then I would try to re-install the agent. Take a snapshot or backup before making any changes.

https://assets.nagios.com/downloads/nag ... _Agent.pdf

Re: Port 5666 : connection refused

Posted: Fri Jun 05, 2020 2:49 am
by smeyichou
I just found on the remote server (the one who gives me trouble) that in /etc/nagios there is this file called nrpe.cfg.rpmsave

Is it the file that we were looking for? Should i rename it to nrpe.cfg ? I'm not the one who set up this server so I don't know why the .rpmsave at the end of the file

Re: Port 5666 : connection refused

Posted: Fri Jun 05, 2020 2:14 pm
by jdunitz
Hi smeyichou!

Do you know if you installed nrpe on your client machine from an RPM or some other way?

What do you get if you do "rpm -qa | grep nrpe"?

--Jeffrey

Re: Port 5666 : connection refused

Posted: Mon Jun 08, 2020 2:05 am
by smeyichou
Hi !

This command gives me nothing, and i tried it on both servers.

For information, it's for a private company, so i know they install their software via proprietary packages, so maybe that's why.

Re: Port 5666 : connection refused

Posted: Wed Jun 10, 2020 8:28 am
by smeyichou
For your information, from the main server, when i try to connect to the remote server giving me trouble with this command :

Code: Select all

nmap <ipadress> -p 5666
it gives me this

Code: Select all

PORT             STATE          SERVICE
   5666/tcp        closed         nrpe

Could it be because the nrpe.cfg file on the remote server is called nrpe.cfg.rpmsave that i face this problem?