Page 1 of 1
NCPA Agent not working on SUSE server
Posted: Tue Oct 19, 2021 3:32 am
by hiremama
Hi Team,
NCPA services are running, but we are getting unknown alerts (UNKNOWN: An error occured connecting to API. (Connection error: '[Errno 111] Connection refused')), attached logs for your references.
Nagios Version - 5.8.3
SUSE Version - Linux SuSE 15.1
Re: NCPA Agent not working on SUSE server
Posted: Tue Oct 19, 2021 2:15 pm
by pbroste
Hello @hiremama
Thanks for reaching out and providing the logs. In review, we see that it has been working up to '
2021-09-22 08:22:15,875 15582 INFO stopped' where we see python related "line" errors.
Do you know what was changed, added, and/or updated on this Suse server on '
2021-09-22 08:22:15,875 15582 INFO stopped'?
Please review and provide
system logs that are related.
Thanks,
Perry
Re: NCPA Agent not working on SUSE server
Posted: Mon Oct 25, 2021 5:47 am
by hiremama
Hello Team,
As checked, there are no changes has been done in the server, Please help here.
Regards,
Mallikarjun S
Re: NCPA Agent not working on SUSE server
Posted: Tue Oct 26, 2021 10:19 am
by pbroste
Hello
@hiremama
Thanks for following up, typically when we see this error the ncpa service is not able to listen as it is unable to connect to the network.
Code: Select all
cat /usr/local/ncpa/etc/ncpa.cfg > /tmp/ncpa.txt
And
Code: Select all
sudo ss -tulpn | grep -Ei 'LISTEN|ESTABLISHED' >> /tmp/ncpa.txt
In the config we want to specify the following:
# IP address and port number for the Listener to use for the web GUI and API
#
# :: allows for dual stack (IPv4 and IPv6 on most linux systems) but will only allow
# for IPv6 connections on Windows
# 0.0.0.0 allows for IPv4 connections only on Windows and most linux systems
#
# Default: ip = ::
# Default (Windows): ip = 0.0.0.0
# Default: port = 5693
#
ip = ::,0.0.0.0
Restart the 'ncpa_listener' and view the status:
Please send the '/tmp/ncpa.txt' so we can review the configuration and info.
Thanks,
Perry