Page 1 of 1

Enable firewall linux/Ubuntu for nagios XI

Posted: Wed Oct 19, 2016 9:05 am
by Naveed
Hello,

I am monitoring my linux/ubuntu servers with nagios XI, those are monitoring perfectly fine.

This time I have disabled the iptables/ufw in both Operating systems,

Can you suggest me a way to monitor these servers with firewall enabled on it.

What changes I will have to made in iptables to get this done.

Thanks

Re: Enable firewall linux/Ubuntu for nagios XI

Posted: Wed Oct 19, 2016 9:36 am
by rkennedy
This is beyond the scope of support we can provide. You'll need to have your network team open up the ports accordingly.

If you're using NRPE, then Nagios will use port 5666, and if you have other checks going on you'll need to see which ports you are checking.

Re: Enable firewall linux/Ubuntu for nagios XI

Posted: Wed Oct 19, 2016 11:17 am
by Naveed
Thanks,

I will add all respective ports, but my question was that where do we need to add these ports added in iptables.

on nagios server or linux clients...

Re: Enable firewall linux/Ubuntu for nagios XI

Posted: Wed Oct 19, 2016 2:02 pm
by dwhitfield
Are you running NRPE or NCPA?

Re: Enable firewall linux/Ubuntu for nagios XI

Posted: Wed Oct 19, 2016 2:14 pm
by rkennedy
You need to add them on the client side, so that the port is OPEN incoming, that way Nagios can probe the machine on the port.

Re: Enable firewall linux/Ubuntu for nagios XI

Posted: Thu Oct 20, 2016 9:16 am
by Naveed
I am using NRPE on both linux and Ubuntu

Thanks

Re: Enable firewall linux/Ubuntu for nagios XI

Posted: Thu Oct 20, 2016 11:30 am
by rkennedy
Then the port is 5666 that Nagios will be accessing the client machines on.

Re: Enable firewall linux/Ubuntu for nagios XI

Posted: Fri Oct 21, 2016 7:00 am
by Naveed
Thanks

Re: Enable firewall linux/Ubuntu for nagios XI

Posted: Fri Oct 21, 2016 9:40 am
by dwhitfield
Did opening that port work for you?