Page 1 of 2

RESOLVED: New install of Nagios XI - What next for Windows Monitoring

Posted: Tue Mar 11, 2025 11:57 am
by LACMAIS
Hello everyone.

I installed and updated Nagios XI last week with the OVA file onto my VMWare server. With that completed, I installed the NCPA client onto a Windows VM, per the YouTube guide, and then created the host to be monitored via the wizard.

Unfortunately, I cannot get a successful monitor to work. I can access the client via its port but the Nagios server does not seem to be able to interact. Is there some other installation step I'm missing? There error points to plug ins not being installed, but there is no direction to do so, and the plugins that appear to be there in the UI also seem to be in the correct directory when looking through the CLI.

I created a topic about this earlier, but it seems to have stalled, and I'm hoping to get the POC going. Thank you for any assistance.

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Tue Mar 11, 2025 3:30 pm
by jmichaelson
First of all, what's happening as the wizard completes? Do you get a host and services configured within Nagios XI?

When you say you can access the NCPA client from its port, do you mean via a browser from a different system?

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Tue Mar 11, 2025 5:53 pm
by DoubleDoubleA
What is the exact error you are getting in XI?

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Tue Mar 11, 2025 6:34 pm
by LACMAIS
jmichaelson wrote: Tue Mar 11, 2025 3:30 pm First of all, what's happening as the wizard completes? Do you get a host and services configured within Nagios XI?

When you say you can access the NCPA client from its port, do you mean via a browser from a different system?
Yes, I get to pick services and such to be monitored, so the communication between the Nagios server and the host to be monitored is working. Also affirmative, if I browse to https://host:5693 and use the token I see the information there from the client.

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Tue Mar 11, 2025 6:51 pm
by LACMAIS
DoubleDoubleA wrote: Tue Mar 11, 2025 5:53 pm What is the exact error you are getting in XI?
The error I receive is "Return code of 127 is out of bounds. Check if plugin exists"

Below is a screenshot.
https://drive.google.com/file/d/19O3L4d ... sp=sharing

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Wed Mar 12, 2025 9:24 am
by DoubleDoubleA
Likely answer is the link to python is missing for some reason.

In a root shell, run

Code: Select all

ln -s /usr/bin/python3 /usr/bin/python
Aaron

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Wed Mar 12, 2025 10:43 am
by LACMAIS
DoubleDoubleA wrote: Wed Mar 12, 2025 9:24 am Likely answer is the link to python is missing for some reason.

In a root shell, run

Code: Select all

ln -s /usr/bin/python3 /usr/bin/python
Aaron
Thank you Aaron, unfortunately, the response was
ln: failed to create symbolic link '/usr/bin/python': File exists

I then entered

Code: Select all

ls -la python*
and as part of the return:
python -> ./python3
python3 -> python3.9

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Wed Mar 12, 2025 1:49 pm
by lgute
Hi @LACMAIS,

Thanks for reaching out.

What response do you get when you run the check_ncpa.py plugin from the command line?

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <NCPA IP ADDRESS> -t <NCPA COMMUNITY STRING> -P 5693 -M cpu/

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Wed Mar 12, 2025 4:20 pm
by LACMAIS
lgute wrote: Wed Mar 12, 2025 1:49 pm Hi @LACMAIS,

Thanks for reaching out.

What response do you get when you run the check_ncpa.py plugin from the command line?

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <NCPA IP ADDRESS> -t <NCPA COMMUNITY STRING> -P 5693 -M cpu/
Thank you, Laura. I entered the command with the IP address where stated, and I put the NCPA token I created in the NCPA Community String area and the command returned a list of options as though I had not entered it properly,

Code: Select all

Usage: check_ncpa.py [options]
and shows

Code: Select all

check_ncpa.py: error: No metric given, if you want to list all possible items use --list

Re: New install of Nagios XI - What next for Windows Monitoring

Posted: Thu Mar 13, 2025 4:00 pm
by lgute
Hi @LACMAIS,

Do you have any special characters in your NCPA Community string/Token?