Page 1 of 1

ncpa running, port opened, but via browser is not reachable

Posted: Tue Mar 19, 2019 10:11 am
by realtebo
I succesfully installed NCPA on a Debian 9.4.

I see

Code: Select all

# /etc/init.d/ncpa_listener status
NCPA Listener: Service is running. (pid 16681)
And

Code: Select all

# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:5693

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
But from browser, when I try to reach the api server at <ip>:5693 i got
ERR_CONNECTION_RESET
So, not a 404, or a 500. Connection is completely refused. What am I doing wrong in my config?

Also: in the ncpa.cfg file, on the remote host, I see

Code: Select all

logfile = var/log/ncpa_listener.log
but this logfile is NOT created at all so I have no idea of how to debug this problem.

Re: ncpa running, port opened, but via browser is not reacha

Posted: Tue Mar 19, 2019 10:23 am
by realtebo
Resolved:

I must explicitly connect using https:

Code: Select all

https://<ip>:5693
And not to

Code: Select all

http://<ip>:5693

Re: ncpa running, port opened, but via browser is not reacha

Posted: Tue Mar 19, 2019 2:46 pm
by benjaminsmith
Hi @realtebo,

Thanks for the update. Is it ok to close this forum thread? Please let me know.

Re: ncpa running, port opened, but via browser is not reacha

Posted: Tue Apr 09, 2019 5:09 am
by realtebo
Yes, you can close

Re: ncpa running, port opened, but via browser is not reacha

Posted: Tue Apr 09, 2019 9:13 am
by benjaminsmith
Yes, you can close.
Closing. Thank you for using the Nagios Support Forum.