Port 5666 : connection refused

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Port 5666 : connection refused

Post by gormank »

Did you check the post by ssax above about nrpe being installed?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Port 5666 : connection refused

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
smeyichou
Posts: 9
Joined: Wed May 20, 2020 3:03 am

Re: Port 5666 : connection refused

Post 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
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Port 5666 : connection refused

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
smeyichou
Posts: 9
Joined: Wed May 20, 2020 3:03 am

Re: Port 5666 : connection refused

Post 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.
smeyichou
Posts: 9
Joined: Wed May 20, 2020 3:03 am

Re: Port 5666 : connection refused

Post 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?
Locked