Nagios xi - New IP and NCPA

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
NVESMM
Posts: 11
Joined: Thu Oct 27, 2022 1:31 pm

Nagios xi - New IP and NCPA

Post by NVESMM »

Hello!

In the event that our Nagios xi instances have to have a new IP address, what would the process be of updating the remote agents' NCPA client to allow the new IP address to connect?

I see the instructions for updating the IP on the Nagios xi servers' Web GUI instance here for "after the restore" https://assets.nagios.com/downloads/nag ... ios-xi.pdf but how would one update the IP on the remote NCPA host with the new IP address of Nagios xi? Are there instructions for that?

We use an API Token with NCPA, but I do not see where we would update with a new IP address in these instructions if the NCPA agent is already installed on the remote agent: https://www.nagios.org/ncpa/getting-started.php
We have Windows, Linux, and AIX systems that we are monitoring in addition to using various plugins.

Thank you!
bbahn
Posts: 318
Joined: Thu Jan 12, 2023 5:42 pm

Re: Nagios xi - New IP and NCPA

Post by bbahn »

Hello NVESMM,

When your xi instance's IP address changes, you will only need to update your NCPA configuration if you've configured it to send passive checks to your xi server. Active checks are sent from your xi server to the NCPA server so these will only need to be updated (on the xi side) if your NCPA's IP address changed.

If you do have passive checks being sent from your NCPA server, you can update the IP address by updating your NCPA configuration. This can be done by SSHing into your remote machine and modifying the configuration file located at /usr/local/ncpa/etc/ncpa.cfg on Linux/Mac and C:\Program Files\Nagios\NCPA\etc\ncpa.cfg on Windows.

In your ncpa.cfg under the [passive] section, you will have handlers set to either nrdp (this is the most likely case) or kafkaproducer. If your configured passive handler is nrdp, you can see the IP address of your xi server's NRDP server (which should be http://<nagios-xi-server-IP-address>/nrdp) as parent = under the [nrdp] section.

There is not a way to update your configuration through the API, but a future version of NCPA 3 will include a page in the NCPA web server UI where you will be able to modify your configuration.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
NVESMM
Posts: 11
Joined: Thu Oct 27, 2022 1:31 pm

Re: Nagios xi - New IP and NCPA

Post by NVESMM »

Hello bbahn,

Thank you for clearing that up. That answers my question.