iptables and NCPA Client on RHEL6

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
juana
Posts: 44
Joined: Thu Nov 01, 2012 4:53 pm
Location: Monterey, CA

iptables and NCPA Client on RHEL6

Post by juana »

NCPA client on RHEL6 and iptables on does not work for me. If I stop iptables service, then the '/etc/init.d/ncpa_listener restart' works. Otherwise, the Nagios master node gets UNKNOWN errors from client. Is there a special rule I need to add to allow NCPA to talk to master node while iptables is enabled?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: iptables and NCPA Client on RHEL6

Post by slansing »

Port 5693 by default needs to be open, what to you get when you run this from the XI server?:

Code: Select all

nmap -sU -p 5693 addr.of.remote.ncpa.box
juana
Posts: 44
Joined: Thu Nov 01, 2012 4:53 pm
Location: Monterey, CA

Re: iptables and NCPA Client on RHEL6

Post by juana »

# nmap -sU -p 5693 my.hostname.ext

Starting Nmap 5.51 ( http://nmap.org ) at 2014-04-28 11:14 PDT
Nmap scan report for my.hostname.ext (xx.xx.xx.xx)
Host is up (0.00021s latency).
PORT STATE SERVICE
5693/udp filtered unknown

Nmap done: 1 IP address (1 host up) scanned in 2.08 seconds
#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: iptables and NCPA Client on RHEL6

Post by slansing »

Looks like you have not provided a firewall rule for NCPA, it is still filtered. That is up to you or your sysadmins to take care of. Without that port open, or the port that you set NCPA to use, you will not be able to send or receive over it.
juana
Posts: 44
Joined: Thu Nov 01, 2012 4:53 pm
Location: Monterey, CA

Re: iptables and NCPA Client on RHEL6

Post by juana »

Thanks, I ran the below and all is well:

Code: Select all

 /sbin/iptables -I INPUT -p tcp -m tcp --dport 5693 -j ACCEPT
/sbin/service iptables save
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: iptables and NCPA Client on RHEL6

Post by tmcdonald »

If all is well for you then all is well for us. I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked