NCPA connection issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

NCPA connection issue

Post by snapon_admin »

Last topic was locked, likely due to inactivity. This issue got put on the back burner due to COVID and it being a low priority. Please see thread below for the issue. We have updated the NCPA agent to the latest version and are still having issues.

https://support.nagios.com/forum/viewto ... 4&start=10
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA connection issue

Post by ssax »

What does this show on the remote NCPA host?

For Windows:

Code: Select all

netstat -ano | find "5693"
For Linux:

Code: Select all

netstat -ano | grep 5693
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NCPA connection issue

Post by tgriep »

I have a question, is your desktop on the same network as the XI server?
From what you described in the other post, I would guess that they are different network as the desktop can connect but the XI server shows the port as down.

Verify that there is no firewalls or IDS system that are blocking the access to the NCPA agent.

Another question, does the Windows system have multiple network adapters and is the routing setup for all of the interfaces to respond to the correct networks?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: NCPA connection issue

Post by snapon_admin »

What is the windows command for say a CPU check? I'm trying to manually add an NCPA check in for this host so we can tail a log file and find out where it's getting blocked.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: NCPA connection issue

Post by snapon_admin »

Nevermind I think I figured out the command and yeah, it's getting connection refused. We're tailing the logs on our firewalls while running the checks and not seeing anything there. I"ll try to get some of that info from the PC side and get back to you.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NCPA connection issue

Post by tgriep »

If you are not seeing anything in the firewall logs connecting to port 5693, then is may be blocked somewhere else.

What do you see when you run this command as an administrator on the Windows system?

Code: Select all

netstat -ano | find "5693"
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: NCPA connection issue

Post by snapon_admin »

We were able to get this sorted out. There was a firewall that we don't manage (it's managed locally) that this perticular PC sits behind that was blocking it. It was put in place before our currecnt LCON started so he was not aware of how locked down it was. Thanks for all of your help with this. I do have one other question, though. With NSClient++ we us an uptime check that was one of the default checks when using the config wizard. Does NCPA have a similar check as well?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA connection issue

Post by lmiltchev »

I am glad your original issue was resolved!

On your question:
I do have one other question, though. With NSClient++ we us an uptime check that was one of the default checks when using the config wizard. Does NCPA have a similar check as well?
I don't see an uptime check included in the wizard yet. This is something that I believe could be added easily as NCPA has the ability to check uptime under the system API Endpoint. For the time being, you could add a check manually. The command would look something like this:

Example:

Code: Select all

./check_ncpa.py -H x.x.x.x -t mytoken -P 5693 -M system/uptime
OK: Uptime was 45 days 22 minutes 54 seconds | 'uptime'=3889374.12s;;;
You could also use a PS script, that is located on your Windows machine, and call it via check_ncpa.py plugin.

Example script (that could get you started):

Code: Select all

function Get-Uptime {
	$os = Get-WmiObject win32_operatingsystem
	$uptime = (Get-Date) - ($os.ConvertToDateTime($os.lastbootuptime))
	$display = "Uptime: " + $Uptime.Days + " days, " + $Uptime.Hours + " hours, " + $Uptime.Minutes + " minutes"
	Write-Output $display
}

Get-Uptime
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked