Connection error: '[Errno 111] Connection refused'

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Connection error: '[Errno 111] Connection refused'

Post by RIDS_I2MP »

Hello,

We have recently installed NCPA agent on multiple servers. All the servers are Windows 2003 or Windows 2008. All servers we are able to ping from Nagios. We are getting below error for all the servers:

UNKNOWN: An error occured connecting to API. (Connection error: '[Errno 111] Connection refused')

We have already checked all the details like nrdp url, nrdp token, everything seems to be fine. I am unable to understand why this error is coming.

Below are the details:
Nagios Xi version: Nagios XI 5.7.1
NCPA: latest version

Please help us to resolve this.

Thanks in advance!!
Thanks & Regards,
I2MP Team.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Connection error: '[Errno 111] Connection refused'

Post by mbellerue »

Connection refused often means there's a firewall between Nagios XI and NCPA. Check the Windows systems to make sure that the Windows firewall is either disabled, or that the NCPA firewall rule was configured when NCPA was installed and is still allowing traffic on port 5693.

Also check the NCPA configuration file, specifically the allowed_hosts setting. Make sure it includes XI's IP address.

And finally, check the logs for NCPA. Usually located at C:\Program Files (x86)\nagios\NCPA\var\log\.

Also, do be aware that NCPA was meant to work with Windows Vista/Server 2008 and forward. It may work on Windows Server 2003, but no guarantees.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Connection error: '[Errno 111] Connection refused'

Post by RIDS_I2MP »

Hello,

I checked all the possibilities.

Firewall is already disabled.
NCPA configuration file has all the proper data along with allowed_host detail.
There are only a few servers with Windows 2003. Most of the servers are 2008 and above servers.

I am attaching logfile output here. We noticed some Import Error related to Python.

Please help us on the same on priority, we are facing this issue on almost 100 plus servers.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Connection error: '[Errno 111] Connection refused'

Post by mbellerue »

Do the Windows Server 2008 machines have the same errors in their log files? Can I get a screenshot of those? I'd like to troubleshoot the Windows Server 2008 machines first, since they're supported by NCPA.

Specifically we'll want to look at the win32service_ncpalistener.log file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Connection error: '[Errno 111] Connection refused'

Post by RIDS_I2MP »

Hello,

Could you please let us know if any specific NCPA version will work on Windows 2003 servers?
We are good to use old version as well.
Thanks & Regards,
I2MP Team.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Connection error: '[Errno 111] Connection refused'

Post by benjaminsmith »

HI,

I looked this up and while it's been requested, we currently do not provide builds for this version since the vendor has stopped providing support.

See: NCPA Support for windows 2003 server

If you have test system, it's worthing trying the 32 bit Windows package.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Connection error: '[Errno 111] Connection refused'

Post by RIDS_I2MP »

Hello,

We have many Windows 2003 servers. NCPA is not working for us but we want to monitor them using Nagios. Please suggest what would be the best option to do the same.
Thanks & Regards,
I2MP Team.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Connection error: '[Errno 111] Connection refused'

Post by benjaminsmith »

Hi,

One option would be to give NSClient a try It's a native windows application and therefore it supports a wider variety of Windows operating systems.

https://www.nsclient.org/nsclient/

In the latest version of Nagios XI, 5.7.2, you'll find a built-in NSClient Wizard available for use with version 0.4.4.

References:
Installing The Windows Agent: NSClient++
Monitoring Windows Using NSClient++

Let me know if you have any questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked