Page 1 of 1

Error when trying to monitor Linux VM with NCPA

Posted: Fri Jan 17, 2025 11:39 am
by k234
Hello,

I am working on trying to monitor my Linux VM with NCPA. I have used both the NCPA configuration wizard and the Linux Server wizard to try to accomplish this, but both methods have come up with errors when I try to go to the next step of the configuration wizard. Specifically, I get a red error box at the top that says XI is "Unable to contact server."

I got the IP of my CentOS VM by getting the IP from the terminal, and I put that IP into the address field of the NCPA/Linux Server wizard, I used my NCPA token (which is the correct token because I was able to use it to monitor a Windows machine), and then I selected "CentOS" as the System. Once I hit "next" to go to the next step of the wizard though, the first page of the wizard shows up again, except with the error at the top. Not sure what I'm doing wrong or what is triggering the error or if there is a different, better way to approach this.

Details:
I am using Nagios XI 2024R1.3.2.
I am using a 64bit CentOS 9 Linux Distribution on VMware workstation.

Thank you

Re: Error when trying to monitor Linux VM with NCPA

Posted: Fri Jan 17, 2025 12:12 pm
by jsimon
Hi @k234,

I'm a little unclear on exactly what you're trying to monitor here. The error you're getting in the wizard indicates that there is a connection problem between your Nagios XI server and the server you're inputting info for. The NCPA token you need to enter here is the token from the NCPA client on the machine you're trying to monitor. Each NCPA client you install on a remote host will have a unique token by default, so the token for your Windows machine will not be the same token as your CentOS machine unless you set them up to be identical.

Hopefully this is helpful, but please let us know if you have any other questions or need further clarification. I've included a link to our NCPA documentation for reference.

Re: Error when trying to monitor Linux VM with NCPA

Posted: Fri Jan 17, 2025 3:49 pm
by baronit
Have you ensured that port 5693 is open in any firewalls between your Nagios install and the system you are trying to monitor? Most times this is the source of a connection error.
I believe CentOS uses firewalld so you can check on the system you're trying to monitor by running

Code: Select all

sudo firewall-cmd --list-all
If you don't see port 5693 listed in the ports or NCPA listed in the services you can add it by running:

Code: Select all

sudo firewall-cmd --zone=public --add-port=5693/tcp --permament && sudo firewall-cmd --reload