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
Nagios Port information
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios Port information
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
-
- Posts: 70
- Joined: Mon Aug 07, 2017 4:19 am
Re: Nagios Port information
Hi,
Can i open port only for select IPs as i don't wan't to expose it?
Regards,
Siddarth Hegde
Can i open port only for select IPs as i don't wan't to expose it?
Regards,
Siddarth Hegde
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios Port information
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
-
- Posts: 70
- Joined: Mon Aug 07, 2017 4:19 am
Re: Nagios Port information
Thank You
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios Port information
No problem!Siddharth Hegde wrote:Thank You