Nagios Port information

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.
Locked
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Nagios Port information

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Port information

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Re: Nagios Port information

Post by Siddharth Hegde »

Hi,
Can i open port only for select IPs as i don't wan't to expose it?

Regards,
Siddarth Hegde
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Port information

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Re: Nagios Port information

Post by Siddharth Hegde »

Thank You
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Port information

Post by scottwilkerson »

Siddharth Hegde wrote:Thank You
No problem!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked