Enable firewall linux/Ubuntu for nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Enable firewall linux/Ubuntu for nagios XI

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Enable firewall linux/Ubuntu for nagios XI

Post 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.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Enable firewall linux/Ubuntu for nagios XI

Post 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...
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Enable firewall linux/Ubuntu for nagios XI

Post by dwhitfield »

Are you running NRPE or NCPA?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Enable firewall linux/Ubuntu for nagios XI

Post 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.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Enable firewall linux/Ubuntu for nagios XI

Post by Naveed »

I am using NRPE on both linux and Ubuntu

Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Enable firewall linux/Ubuntu for nagios XI

Post by rkennedy »

Then the port is 5666 that Nagios will be accessing the client machines on.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Enable firewall linux/Ubuntu for nagios XI

Post by Naveed »

Thanks
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Enable firewall linux/Ubuntu for nagios XI

Post by dwhitfield »

Did opening that port work for you?
Locked