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!!
Connection error: '[Errno 111] Connection refused'
Connection error: '[Errno 111] Connection refused'
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Connection error: '[Errno 111] Connection refused'
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Connection error: '[Errno 111] Connection refused'
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.
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.
I2MP Team.
Re: Connection error: '[Errno 111] Connection refused'
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Connection error: '[Errno 111] Connection refused'
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.
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.
I2MP Team.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Connection error: '[Errno 111] Connection refused'
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Connection error: '[Errno 111] Connection refused'
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.
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.
I2MP Team.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Connection error: '[Errno 111] Connection refused'
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!