0.5.0.62 Failed to bind .. forbidden by its access permissions


#1

Hi. I’m successfully running the latest version of NSClient++ on Windows Server 2012r2 with basic check_nt commands to a NagiosXI server. I want to run some more advanced checks that require check_nrpe but I’ve run into a brickwall and have spent several hours trying to resolve it without luck. The initial symptom is from the Nagios server:

check_nrpe -H x.x.x.x

CHECK_NRPE: Error - Could not complete SSL handshake.

check_nrpe -n -H x.x.x.x

CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

So I check through the log and when I start/stop the service I see these entries every time and wondering if this is my problem.

2016-11-03 13:48:46: error:c:\source\master\include\socket/server.hpp:198: Failed to bind 0.0.0.0:5666(ipv4): An attempt was made to access a socket in a way forbidden by its access permissions 2016-11-03 13:48:46: error:c:\source\master\include\socket/server.hpp:146: Failed to setup endpoint 2016-11-03 13:52:01: error:c:\source\master\include\socket/server.hpp:198: Failed to bind 0.0.0.0:5666(ipv4): An attempt was made to access a socket in a way forbidden by its access permissions 2016-11-03 13:52:01: error:c:\source\master\include\socket/server.hpp:146: Failed to setup endpoint

Here’s my ini if this helps:

[/settings/default] password = xxxxxxx allowed hosts = 127.0.0.1,10.0.0.23,10.0.0.24 use ssl = false

[/settings/NRPE/server] verify mode = none insecure = true

[/modules] CheckExternalScripts = 1 CheckHelpers = 0 CheckNSCP = 0 CheckDisk = 1 CheckSystem = 1 NSClientServer = 1 CheckEventLog = 0 NSCAClient = 0 WEBSErver = 1 NRPEServer = 1


#2

Oy nevermind this can be disregarded. There is a java app that is hogging the port … always the lowest common denominator. Now to find what this app is and if I can redirect it to another.

netstat -a -b

Revealed the process that owned it as java.exe can’t say how many times I’ve overlooked the results …