Page 1 of 1

Nagios Port information

Posted: Fri Sep 21, 2018 2:43 am
by Siddharth Hegde
Hello,

I have nagios server and nrpe servers in the same subnet. Can they communicate with each other as they are in the same network? Or should I open port 5666 in all of nrpe servers?

Regards,
Siddarth Hegde

Re: Nagios Port information

Posted: Fri Sep 21, 2018 7:13 am
by scottwilkerson
port 5666 needs to be open on all NRPE servers AND you needs to add the nagios servers IP address to the allowed_hosts field in the nrpe.cfg and restart nrpe

Re: Nagios Port information

Posted: Fri Sep 21, 2018 9:43 am
by Siddharth Hegde
Hi,
Can i open port only for select IPs as i don't wan't to expose it?

Regards,
Siddarth Hegde

Re: Nagios Port information

Posted: Fri Sep 21, 2018 10:42 am
by scottwilkerson
Yes the iptables rule would be something like this on the remote machines

Code: Select all

iptables -I INPUT -p tcp -s xxx.xxx.xxx.xxx --dport 5666 -j ACCEPT

Re: Nagios Port information

Posted: Fri Sep 21, 2018 12:51 pm
by Siddharth Hegde
Thank You

Re: Nagios Port information

Posted: Fri Sep 21, 2018 2:24 pm
by scottwilkerson
Siddharth Hegde wrote:Thank You
No problem!