Port 5666 : connection refused

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Re: Port 5666 : connection refused

Postby gormank » Thu May 28, 2020 2:42 pm

Did you check the post by ssax above about nrpe being installed?
gormank
 
Posts: 667
Joined: Tue Dec 02, 2014 12:00 pm

Re: Port 5666 : connection refused

Postby benjaminsmith » Thu May 28, 2020 3:04 pm

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!
User avatar
benjaminsmith
 
Posts: 2727
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Port 5666 : connection refused

Postby smeyichou » Fri Jun 05, 2020 2:49 am

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

Re: Port 5666 : connection refused

Postby jdunitz » Fri Jun 05, 2020 2:14 pm

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

Re: Port 5666 : connection refused

Postby smeyichou » Mon Jun 08, 2020 2:05 am

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

Postby smeyichou » Wed Jun 10, 2020 8:28 am

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

Previous

Return to Community Support

Who is online

Users browsing this forum: fripoll, Google [Bot] and 26 guests