Windows NCPA issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Windows NCPA issues

Post by jsalsbury »

Good morning
We recently rolled out the NCPA using bigfix to about 90 machines in out enterprise, the agents are up and running, however when I attempt to connect them using the NCPA wizard I am getting.

Unable to contact server at https://156.81.18.134:5693/testconnect? ... Monitoring.

And when I try to run a check on the system in the console I get :


An error occurred:<urlopen error [Errno 111] Connection refused>

This is the command I am using
/usr/local/nagios/libexec/check_ncpa.py -H XXXXX -t XXXXXX-P 5693 -M 'disk/logical/|/used_percent' -w 80 -c 90 -v (XXX's are replaced with real information. )

I think perhaps there might be a firewall issue but I am unsure. My FW team are telling me its open bi directionally.

thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Windows NCPA issues

Post by lmiltchev »

I am not familiar with bigfix and not sure if NCPA got installed properly, but let's check a few things.

1. Run the following commands from the command line on the Nagios XI server against one of the failing machines:

Code: Select all

nmap <clinet ip> -p 5693
/usr/local/nagios/libexec/check_ncpa.py -H XXXXX -t 'XXXXXX' -P 5693 -M system/agent_version
/usr/local/nagios/libexec/check_ncpa.py -H XXXXX -t XXXXXX-P 5693 -M 'disk/logical/C:|/used_percent' -w 80 -c 90
2. Upload the following files from the client (same machine you ran the checks against):
- ncpa.cfg (usually in C:\Program Files (x86)\Nagios\NCPA\etc)
- ncpa_listener.log and win32service_ncpalistener.log (usually in C:\Program Files (x86)\Nagios\NCPA\var\log)

3. Open the CMD prompt as administrator on the client machine, run the following commands, and show the output:

Code: Select all

net start | find "ncpa"
netstat -abn | find "5693"
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: Windows NCPA issues

Post by jsalsbury »

So after doing some more troubleshooting
It would appear that the command line install of the Windows NCPA agent won't let us talk to the server.
However if I install the NCPA agent manually. I.e. using the Wizard it works fine.

These are the commands we are using when install command line.

ncpa-2.1.6.exe /S /TOKEN='ISGNagiosXIMonitoring'

any thoughts on how we could get this to work in a package? Otherwise we are stuck installing manually.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Windows NCPA issues

Post by lmiltchev »

Do you have the following line in the ncpa.cfg file?

Code: Select all

ip =0.0.0.0
I am not sure if this is added during the silent install, that's why I wanted to see the NCPA config.

Have you tried running this?

Code: Select all

ncpa-2.1.6.exe /S /TOKEN='ISGNagiosXIMonitoring' /IP='0.0.0.0'
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: Windows NCPA issues

Post by jsalsbury »

ok it looks like we have found out the issue.

ncpa-2.1.6.exe /S /TOKEN='ISGNagiosXIMonitoring' /IP='0.0.0.0'
that is the following command that we got to work.

The online documentation says the IP variable defaults however that did not seems to be working so when we tried the above command it does appear to be working.

¯\_(ツ)_/¯

So I guess this can be closed? hah

thanks
Jason
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Windows NCPA issues

Post by lmiltchev »

I am glad I could help! :)

I am closing this topic now. If you have any further questions, please start a new thread. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked